video_output: remove redundant header includes

This commit is contained in:
Zack Buhman 2024-10-24 04:54:12 -05:00
parent 38c274b1d7
commit 71fb02e03d
4 changed files with 2 additions and 14 deletions

View File

@ -9,7 +9,6 @@
#include "video_output.hpp"
#include "video_output_mode.inc"
#include "video_output.hpp"
namespace video_output {

View File

@ -2,6 +2,8 @@
#include <cstdint>
#include "core_bits.hpp"
namespace video_output {
struct mode {

View File

@ -1,8 +1,3 @@
#include <cstdint>
#include "core_bits.hpp"
#include "video_output.hpp"
namespace video_output {
const struct mode vga = {
.fb_r_ctrl = fb_r_ctrl::vclk_div::pclk_vclk_1

View File

@ -119,13 +119,6 @@ def render_namespace(modes, max_len):
yield from render_modes(modes, max_len)
yield "}"
def render_header():
yield "#include <cstdint>"
yield ""
yield '#include "core_bits.hpp"'
yield '#include "video_output.hpp"'
yield ""
def max_length(regs):
max_length = 0
for register, *_ in regs:
@ -142,6 +135,5 @@ if __name__ == "__main__":
modes = transpose_by_name(format_names, regs)
max_length = max_length(regs)
render, out = renderer()
render(render_header())
render(render_namespace(modes, max_length))
sys.stdout.write(out.getvalue())