From c0a70729c24cb1a53891cf9b1289a4f9d737a107 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Mon, 4 Mar 2024 01:02:05 +0100 Subject: [PATCH] fix(core): T3T1 emulator [no changelog] --- core/SConscript.unix | 1 + core/embed/trezorhal/boards/board-unix.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/core/SConscript.unix b/core/SConscript.unix index 59ba08c8c3..bec21bc0da 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -480,6 +480,7 @@ env = Environment(ENV=os.environ, CFLAGS='%s -DPYOPT=%s -DBITCOIN_ONLY=%s %s' % if TREZOR_MODEL in ('T', 'T3T1'): UI_LAYOUT = 'UI_LAYOUT_TT' ui_layout_feature = 'model_tt' +# XXX TODO elif TREZOR_MODEL in ('1', 'R'): UI_LAYOUT = 'UI_LAYOUT_TR' ui_layout_feature = 'model_tr' diff --git a/core/embed/trezorhal/boards/board-unix.h b/core/embed/trezorhal/boards/board-unix.h index c7270c7415..eb0a96db52 100644 --- a/core/embed/trezorhal/boards/board-unix.h +++ b/core/embed/trezorhal/boards/board-unix.h @@ -28,6 +28,14 @@ #define USE_OPTIGA 1 #endif +#ifdef TREZOR_MODEL_T3T1 +#define USE_TOUCH 1 +#define USE_SD_CARD 1 +#define USE_SBU 1 +#define USE_RGB_COLORS 1 +#define USE_BACKLIGHT 1 +#endif + #include "display-unix.h" #endif //_BOARD_UNIX_H