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

add BLE to T3W1 board

This commit is contained in:
tychovrahe 2024-10-22 11:03:59 +02:00
parent ae60228ed9
commit 4d19f6a7fd

View File

@ -56,11 +56,11 @@ def configure(
sources += ["embed/trezorhal/stm32f4/touch/ft6x36.c"] sources += ["embed/trezorhal/stm32f4/touch/ft6x36.c"]
sources += ["embed/trezorhal/stm32f4/touch/panels/lhs200kb-if21.c"] sources += ["embed/trezorhal/stm32f4/touch/panels/lhs200kb-if21.c"]
features_available.append("touch") features_available.append("touch")
# sources += ["embed/trezorhal/stm32f4/button.c"] sources += ["embed/trezorhal/stm32f4/button.c"]
# 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 "sd_card" in features_wanted: if "sd_card" in features_wanted:
sources += ["embed/trezorhal/stm32f4/sdcard.c"] sources += ["embed/trezorhal/stm32f4/sdcard.c"]
@ -69,17 +69,18 @@ def configure(
features_available.append("sd_card") features_available.append("sd_card")
defines += ["USE_SD_CARD=1"] defines += ["USE_SD_CARD=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.c"]
# sources += ["embed/trezorhal/stm32f4/ble/dfu.c"]
# sources += ["embed/trezorhal/stm32f4/ble/fwu.c"] sources += ["embed/trezorhal/stm32f4/nrf/nrf.c"]
# sources += ["embed/trezorhal/stm32f4/ble/ble.c"] sources += ["embed/trezorhal/stm32f4/nrf/dfu.c"]
# sources += ["embed/trezorhal/stm32f4/ble/messages.c"] sources += ["embed/trezorhal/stm32f4/nrf/fwu.c"]
# sources += [ sources += ["embed/trezorhal/stm32f4/nrf/crc8.c"]
# "vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c" sources += [
# ] "vendor/micropython/lib/stm32lib/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c"
# features_available.append("ble") ]
# defines += ["USE_BLE=1"] features_available.append("ble")
defines += ["USE_BLE=1"]
if "ble" in features_wanted or "sd_card" in features_wanted: if "ble" in features_wanted or "sd_card" in features_wanted:
sources += [ sources += [