fixup! feat(core): refactor display drivers

cepetr 1 month ago
parent b9526236fd
commit b0f7cc7ef4

@ -133,7 +133,7 @@ void gl_draw_bar(gl_rect_t rect, gl_color_t color);
// Draws a bitmap into the specified rectangle. // Draws a bitmap into the specified rectangle.
// //
// The destination rectangle may not be fully filled if the source bitmap // The destination rectangle may not be fully filled if the source bitmap
// is smaller then destination rectangle or if the bitmap is translated by // is smaller than destination rectangle or if the bitmap is translated by
// an offset partially or completely outside the destination rectangle. // an offset partially or completely outside the destination rectangle.
// //
// Currently, we use `gl_draw_bitmap` exclusively for text rendering. // Currently, we use `gl_draw_bitmap` exclusively for text rendering.

@ -37,8 +37,6 @@
#include "bg_copy.h" #include "bg_copy.h"
#endif #endif
#ifdef XFRAMEBUFFER
#ifndef STM32U5 #ifndef STM32U5
#error Framebuffer only supported on STM32U5 for now #error Framebuffer only supported on STM32U5 for now
#endif #endif
@ -218,5 +216,3 @@ void display_copy_mono4(const gl_bitblt_t *bb) {
gl_rgb565_copy_mono4(&bb_new); gl_rgb565_copy_mono4(&bb_new);
} }
#endif // XFRAMEBUFFER

@ -19,8 +19,6 @@
#include TREZOR_BOARD #include TREZOR_BOARD
#ifdef XFRAMEBUFFER
#include <xdisplay.h> #include <xdisplay.h>
#include "display_io.h" #include "display_io.h"
@ -103,5 +101,3 @@ void display_copy_mono4(const gl_bitblt_t* bb) {
src_row += bb->src_stride / sizeof(*src_row); src_row += bb->src_stride / sizeof(*src_row);
} }
} }
#endif // XFRAMEBUFFER

@ -42,7 +42,6 @@ def configure(
] ]
if "new_rendering" in features_wanted: if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"] sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_nofb.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_nofb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"]

@ -49,7 +49,6 @@ def configure(
if "new_rendering" in features_wanted: if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"] sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_fb.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_nofb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_panel.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_panel.c"]

@ -50,7 +50,6 @@ def configure(
if "new_rendering" in features_wanted: if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"] sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_fb.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_nofb.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_panel.c"] sources += ["embed/trezorhal/stm32f4/display/st-7789/display_panel.c"]

Loading…
Cancel
Save