mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-09 08:08:09 +00:00
feat(core): add power button to T3W1 board rev A
[no changelog]
This commit is contained in:
parent
2da2826020
commit
10687e8fa0
@ -4,6 +4,10 @@
|
|||||||
#define HSE_32MHZ
|
#define HSE_32MHZ
|
||||||
#define VDD_1V8 1
|
#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 DISPLAY_COLOR_MODE DMA2D_OUTPUT_RGB565
|
||||||
|
|
||||||
#define BACKLIGHT_PWM_FREQ 1000
|
#define BACKLIGHT_PWM_FREQ 1000
|
||||||
|
@ -50,12 +50,12 @@ def configure(
|
|||||||
paths += ["embed/io/i2c_bus/inc"]
|
paths += ["embed/io/i2c_bus/inc"]
|
||||||
paths += ["embed/io/touch/inc"]
|
paths += ["embed/io/touch/inc"]
|
||||||
features_available.append("touch")
|
features_available.append("touch")
|
||||||
# sources += ["embed/io/button/stm32/button.c"]
|
sources += ["embed/io/button/stm32/button.c"]
|
||||||
# paths += ["embed/io/button/inc"]
|
paths += ["embed/io/button/inc"]
|
||||||
# features_available.append("button")
|
features_available.append("button")
|
||||||
defines += ["USE_TOUCH=1"]
|
defines += ["USE_TOUCH=1"]
|
||||||
defines += ["USE_I2C=1"]
|
defines += ["USE_I2C=1"]
|
||||||
# defines += ["USE_BUTTON=1"]
|
defines += ["USE_BUTTON=1"]
|
||||||
|
|
||||||
# if "ble" in features_wanted:
|
# if "ble" in features_wanted:
|
||||||
# sources += ["embed/trezorhal/stm32f4/ble/ble_hal.c"]
|
# sources += ["embed/trezorhal/stm32f4/ble/ble_hal.c"]
|
||||||
|
Loading…
Reference in New Issue
Block a user