mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-12 17:38:13 +00:00
fixup! refactor(core): extract framebuffer queue for reuse
This commit is contained in:
parent
9d02fa6dff
commit
d89736b87b
@ -167,6 +167,7 @@ bool display_get_frame_buffer(display_fb_info_t *fb) {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef BOARDLOADER
|
||||||
// Copies the frame buffer with the given index to the display
|
// Copies the frame buffer with the given index to the display
|
||||||
static void copy_fb_to_display(uint8_t index) {
|
static void copy_fb_to_display(uint8_t index) {
|
||||||
uint16_t *fb = (uint16_t *)get_fb_ptr(index);
|
uint16_t *fb = (uint16_t *)get_fb_ptr(index);
|
||||||
@ -190,6 +191,7 @@ static void wait_for_te_signal(void) {
|
|||||||
while (GPIO_PIN_RESET == HAL_GPIO_ReadPin(DISPLAY_TE_PORT, DISPLAY_TE_PIN)) {
|
while (GPIO_PIN_RESET == HAL_GPIO_ReadPin(DISPLAY_TE_PORT, DISPLAY_TE_PIN)) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void display_refresh(void) {
|
void display_refresh(void) {
|
||||||
display_driver_t *drv = &g_display_driver;
|
display_driver_t *drv = &g_display_driver;
|
||||||
|
Loading…
Reference in New Issue
Block a user