1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-06 13:31:00 +00:00

feat(core): add BLE to t3w1 board

[no changelog]
This commit is contained in:
tychovrahe 2024-11-22 15:39:54 +01:00
parent 0fc81893cc
commit 88587769c1
2 changed files with 25 additions and 13 deletions

View File

@ -129,4 +129,20 @@
#define SBU_2_PORT GPIOC
#define SBU_2_CLK_ENA __HAL_RCC_GPIOC_CLK_ENABLE
#define NRF_RESET_PIN GPIO_PIN_0
#define NRF_RESET_PORT GPIOG
#define NRF_RESET_CLK_ENA __HAL_RCC_GPIOG_CLK_ENABLE
#define NRF_GPIO0_PIN GPIO_PIN_7
#define NRF_GPIO0_PORT GPIOE
#define NRF_GPIO0_CLK_ENA __HAL_RCC_GPIOE_CLK_ENABLE
#define NRF_GPIO1_PIN GPIO_PIN_13
#define NRF_GPIO1_PORT GPIOE
#define NRF_GPIO1_CLK_ENA __HAL_RCC_GPIOE_CLK_ENABLE
#define NRF_GPIO2_PIN GPIO_PIN_15
#define NRF_GPIO2_PORT GPIOE
#define NRF_GPIO2_CLK_ENA __HAL_RCC_GPIOE_CLK_ENABLE
#define NRF_GPIO3_PIN GPIO_PIN_11
#define NRF_GPIO3_PORT GPIOE
#define NRF_GPIO3_CLK_ENA __HAL_RCC_GPIOE_CLK_ENABLE
#endif // TREZOR_T3W1_REVA_H_

View File

@ -71,21 +71,17 @@ def configure(
features_available.append("haptic")
defines += ["USE_HAPTIC=1"]
# if "ble" in features_wanted:
# sources += ["embed/trezorhal/stm32f4/ble/ble_hal.c"]
# sources += ["embed/trezorhal/stm32f4/ble/dfu.c"]
# sources += ["embed/trezorhal/stm32f4/ble/fwu.c"]
# sources += ["embed/trezorhal/stm32f4/ble/ble.c"]
# sources += ["embed/trezorhal/stm32f4/ble/messages.c"]
# sources += [
# "vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c"
# ]
# features_available.append("ble")
# defines += [("USE_BLE", "1")]
if "ble" in features_wanted:
sources += ["embed/io/ble/stm32/ble.c"]
paths += ["embed/io/ble/inc"]
features_available.append("ble")
defines += [("USE_BLE", "1")]
sources += ["embed/io/nrf/stm32u5/nrf.c"]
sources += ["embed/io/nrf/crc8.c"]
paths += ["embed/io/nrf/inc"]
sources += [
"vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c"
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_hal_uart.c",
"vendor/stm32u5xx_hal_driver/Src/stm32u5xx_hal_uart_ex.c",
]
if "optiga" in features_wanted: