1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-05 13:26:57 +00:00

fixup! feat(core): refactor display drivers

This commit is contained in:
cepetr 2024-05-03 09:47:31 +02:00
parent d2ffa287cc
commit 4715cfa8e8
41 changed files with 30 additions and 30 deletions

View File

@ -1 +0,0 @@
../../stm32f4/display/st-7789

View File

@ -1 +0,0 @@
../../stm32f4/display/vg-2864

View File

@ -0,0 +1 @@
../../stm32f4/xdisplay/st-7789

View File

@ -0,0 +1 @@
../../stm32f4/xdisplay/vg-2864

View File

@ -40,9 +40,9 @@ def configure(
if "new_rendering" in features_wanted:
sources += [
"embed/trezorhal/xdisplay_legacy.c",
"embed/trezorhal/stm32f4/display/stm32f429i-disc1/display_driver.c",
"embed/trezorhal/stm32f4/display/stm32f429i-disc1/display_ltdc.c",
"embed/trezorhal/stm32f4/display/stm32f429i-disc1/ili9341_spi.c",
"embed/trezorhal/stm32f4/xdisplay/stm32f429i-disc1/display_driver.c",
"embed/trezorhal/stm32f4/xdisplay/stm32f429i-disc1/display_ltdc.c",
"embed/trezorhal/stm32f4/xdisplay/stm32f429i-disc1/ili9341_spi.c",
]
else:
sources += [f"embed/trezorhal/stm32f4/displays/{display}"]

View File

@ -47,9 +47,9 @@ def configure(
if "new_rendering" in features_wanted:
sources += [
"embed/trezorhal/xdisplay_legacy.c",
"embed/trezorhal/stm32u5/display/stm32u5a9j-dk/display_driver.c",
"embed/trezorhal/stm32u5/display/stm32u5a9j-dk/display_fb.c",
"embed/trezorhal/stm32u5/display/stm32u5a9j-dk/display_ltdc_dsi.c",
"embed/trezorhal/stm32u5/xdisplay/stm32u5a9j-dk/display_driver.c",
"embed/trezorhal/stm32u5/xdisplay/stm32u5a9j-dk/display_fb.c",
"embed/trezorhal/stm32u5/xdisplay/stm32u5a9j-dk/display_ltdc_dsi.c",
]
else:
sources += [

View File

@ -44,7 +44,7 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/vg-2864/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/vg-2864/display_driver.c"]
else:
sources += [f"embed/trezorhal/stm32f4/displays/{display}"]

View File

@ -44,7 +44,7 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/ug-2828/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/ug-2828/display_driver.c"]
else:
sources += [f"embed/trezorhal/stm32f4/displays/{display}"]

View File

@ -44,7 +44,7 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/vg-2864/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/vg-2864/display_driver.c"]
else:
sources += [f"embed/trezorhal/stm32f4/displays/{display}"]

View File

@ -44,7 +44,7 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32f4/display/vg-2864/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/vg-2864/display_driver.c"]
else:
sources += [f"embed/trezorhal/stm32f4/displays/{display}"]

View File

@ -42,21 +42,21 @@ def configure(
]
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.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_io.c"]
sources += ["embed/trezorhal/stm32f4/display/st-7789/display_panel.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/st-7789/display_nofb.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32f4/xdisplay/st-7789/display_panel.c"]
sources += [
"embed/trezorhal/stm32f4/display/st-7789/panels/tf15411a.c",
"embed/trezorhal/stm32f4/xdisplay/st-7789/panels/tf15411a.c",
]
sources += [
"embed/trezorhal/stm32f4/display/st-7789/panels/154a.c",
"embed/trezorhal/stm32f4/xdisplay/st-7789/panels/154a.c",
]
sources += [
"embed/trezorhal/stm32f4/display/st-7789/panels/lx154a2411.c",
"embed/trezorhal/stm32f4/xdisplay/st-7789/panels/lx154a2411.c",
]
sources += [
"embed/trezorhal/stm32f4/display/st-7789/panels/lx154a2422.c",
"embed/trezorhal/stm32f4/xdisplay/st-7789/panels/lx154a2422.c",
]
else:

View File

@ -48,12 +48,12 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_panel.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_panel.c"]
sources += [
"embed/trezorhal/stm32u5/display/st-7789/panels/lx154a2422.c",
"embed/trezorhal/stm32u5/xdisplay/st-7789/panels/lx154a2422.c",
]
else:
sources += [f"embed/trezorhal/stm32u5/displays/{display}"]

View File

@ -49,12 +49,12 @@ def configure(
if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32u5/display/st-7789/display_panel.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_fb.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_driver.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_io.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/st-7789/display_panel.c"]
sources += [
"embed/trezorhal/stm32u5/display/st-7789/panels/lx154a2422.c",
"embed/trezorhal/stm32u5/xdisplay/st-7789/panels/lx154a2422.c",
]
else: