1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

feat(core): add power button to T3W1 board rev A

[no changelog]
This commit is contained in:
tychovrahe 2024-11-14 12:53:29 +01:00 committed by TychoVrahe
parent 2da2826020
commit 10687e8fa0
2 changed files with 8 additions and 4 deletions

View File

@ -4,6 +4,10 @@
#define HSE_32MHZ
#define VDD_1V8 1
#define BTN_POWER_PIN GPIO_PIN_5
#define BTN_POWER_PORT GPIOE
#define BTN_POWER_CLK_ENA __HAL_RCC_GPIOE_CLK_ENABLE
#define DISPLAY_COLOR_MODE DMA2D_OUTPUT_RGB565
#define BACKLIGHT_PWM_FREQ 1000

View File

@ -50,12 +50,12 @@ def configure(
paths += ["embed/io/i2c_bus/inc"]
paths += ["embed/io/touch/inc"]
features_available.append("touch")
# sources += ["embed/io/button/stm32/button.c"]
# paths += ["embed/io/button/inc"]
# features_available.append("button")
sources += ["embed/io/button/stm32/button.c"]
paths += ["embed/io/button/inc"]
features_available.append("button")
defines += ["USE_TOUCH=1"]
defines += ["USE_I2C=1"]
# defines += ["USE_BUTTON=1"]
defines += ["USE_BUTTON=1"]
# if "ble" in features_wanted:
# sources += ["embed/trezorhal/stm32f4/ble/ble_hal.c"]