From 8569a1244c4985db879f8aeeea2a2430808077cf Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Wed, 13 Nov 2024 10:26:36 +0100 Subject: [PATCH] chore(core): add mock display driver for T3W1 [no changelog] --- .../xdisplay/st7785ma/display_driver.c | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 core/embed/trezorhal/stm32u5/xdisplay/st7785ma/display_driver.c diff --git a/core/embed/trezorhal/stm32u5/xdisplay/st7785ma/display_driver.c b/core/embed/trezorhal/stm32u5/xdisplay/st7785ma/display_driver.c new file mode 100644 index 000000000..58d65e3f7 --- /dev/null +++ b/core/embed/trezorhal/stm32u5/xdisplay/st7785ma/display_driver.c @@ -0,0 +1,29 @@ + +#include +#include +#include + +#include "display.h" + +#ifdef KERNEL_MODE +void display_init(display_content_mode_t mode) {} + +void display_deinit(display_content_mode_t mode) {} + +void display_set_unpriv_access(bool unpriv) {} + +int display_set_backlight(int level) { return level; } + +int display_get_backlight(void) { return 0; } + +int display_set_orientation(int angle) { return angle; } +int display_get_orientation(void) { return 0; } +bool display_get_frame_buffer(display_fb_info_t *fb) { return true; } + +void display_refresh(void) {} +void display_fill(const gfx_bitblt_t *bb) {} +void display_copy_rgb565(const gfx_bitblt_t *bb) {} +void display_copy_mono4(const gfx_bitblt_t *bb) {} +void display_copy_mono1p(const gfx_bitblt_t *bb) {} + +#endif