Skip to content

Commit

Permalink
chore(core): support new rendering on T3B1
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
TychoVrahe committed Aug 1, 2024
1 parent 182f8d9 commit 7307c47
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion core/site_scons/models/T3B1/trezor_t3b1_revB.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def configure(
hw_model = get_hw_model_as_number("T3B1")
hw_revision = "B"

if "new_rendering" in features_wanted:
defines += ["XFRAMEBUFFER"]
features_available.append("xframebuffer")
features_available.append("display_mono")

mcu = "STM32U585xx"
linker_script = "stm32u58"

Expand All @@ -37,7 +42,12 @@ def configure(
sources += [
"embed/models/T3B1/model_T3B1_layout.c",
]
sources += [f"embed/trezorhal/stm32u5/displays/{display}"]

if "new_rendering" in features_wanted:
sources += ["embed/trezorhal/xdisplay_legacy.c"]
sources += ["embed/trezorhal/stm32u5/xdisplay/vg-2864/display_driver.c"]
else:
sources += [f"embed/trezorhal/stm32u5/displays/{display}"]

if "input" in features_wanted:
sources += ["embed/trezorhal/stm32u5/button.c"]
Expand Down

0 comments on commit 7307c47

Please sign in to comment.