fixup! feat(core): refactor display drivers

cepetr 3 weeks ago
parent f085c50931
commit b7a45a0b6b

@ -91,7 +91,6 @@ SOURCE_MOD += [
'embed/lib/buffers.c',
'embed/lib/colors.c',
'embed/lib/display_utils.c',
'embed/lib/dma2d_emul.c',
'embed/lib/fonts/font_bitmap.c',
'embed/lib/fonts/fonts.c',
'embed/lib/gl_color.c',
@ -122,6 +121,7 @@ if NEW_RENDERING:
else:
SOURCE_MOD += [
'embed/lib/display_draw.c',
'embed/lib/dma2d_emul.c',
]
if TREZOR_MODEL in ('1', ):

@ -444,6 +444,7 @@ if NEW_RENDERING:
else:
SOURCE_MOD += [
'embed/trezorhal/unix/display-unix.c',
'embed/lib/dma2d_emul.c',
]
@ -462,10 +463,6 @@ if DMA2D:
'USE_DMA2D',
]
SOURCE_UNIX += [
'embed/lib/dma2d_emul.c',
]
TRANSLATION_DATA = [
"translations/en.json",

@ -20,8 +20,6 @@
#include "colors.h"
#include "display.h"
#ifndef NEW_RENDERING
typedef enum {
DMA2D_LAYER_FG = 1,
DMA2D_LAYER_BG = 0,
@ -144,5 +142,3 @@ void dma2d_start_blend(uint8_t* overlay_addr, uint8_t* bg_addr,
void dma2d_wait_for_transfer(void) {
// done in place when emulating, so no need for wait here
}
#endif

Loading…
Cancel
Save