diff --git a/core/site_scons/models/T3W1/trezor_t3w1_d1.py b/core/site_scons/models/T3W1/trezor_t3w1_d1.py index ff765f6db4..8219b78484 100644 --- a/core/site_scons/models/T3W1/trezor_t3w1_d1.py +++ b/core/site_scons/models/T3W1/trezor_t3w1_d1.py @@ -56,11 +56,11 @@ def configure( sources += ["embed/trezorhal/stm32f4/touch/ft6x36.c"] sources += ["embed/trezorhal/stm32f4/touch/panels/lhs200kb-if21.c"] features_available.append("touch") - # sources += ["embed/trezorhal/stm32f4/button.c"] - # features_available.append("button") + sources += ["embed/trezorhal/stm32f4/button.c"] + features_available.append("button") defines += ["USE_TOUCH=1"] defines += ["USE_I2C=1"] - # defines += ["USE_BUTTON=1"] + defines += ["USE_BUTTON=1"] if "sd_card" in features_wanted: sources += ["embed/trezorhal/stm32f4/sdcard.c"] @@ -69,17 +69,18 @@ def configure( features_available.append("sd_card") defines += ["USE_SD_CARD=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/trezorhal/stm32f4/ble/ble.c"] + + sources += ["embed/trezorhal/stm32f4/nrf/nrf.c"] + sources += ["embed/trezorhal/stm32f4/nrf/dfu.c"] + sources += ["embed/trezorhal/stm32f4/nrf/fwu.c"] + sources += ["embed/trezorhal/stm32f4/nrf/crc8.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 or "sd_card" in features_wanted: sources += [