From 7307c47b94ddc2f0df48e1fd359231ce5d881249 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 1 Aug 2024 13:28:13 +0200 Subject: [PATCH] chore(core): support new rendering on T3B1 [no changelog] --- core/site_scons/models/T3B1/trezor_t3b1_revB.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/core/site_scons/models/T3B1/trezor_t3b1_revB.py b/core/site_scons/models/T3B1/trezor_t3b1_revB.py index 9682dd3576..67e3f1bfc4 100644 --- a/core/site_scons/models/T3B1/trezor_t3b1_revB.py +++ b/core/site_scons/models/T3B1/trezor_t3b1_revB.py @@ -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" @@ -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"]