video_output: remove redundant header includes
This commit is contained in:
parent
38c274b1d7
commit
71fb02e03d
@ -9,7 +9,6 @@
|
||||
|
||||
#include "video_output.hpp"
|
||||
#include "video_output_mode.inc"
|
||||
#include "video_output.hpp"
|
||||
|
||||
namespace video_output {
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "core_bits.hpp"
|
||||
|
||||
namespace video_output {
|
||||
|
||||
struct mode {
|
||||
|
@ -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
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user