diff --git a/core/embed/trezorhal/boards/stm32f429i-disc1.h b/core/embed/trezorhal/boards/stm32f429i-disc1.h index 3f42d6359..22ae3d579 100644 --- a/core/embed/trezorhal/boards/stm32f429i-disc1.h +++ b/core/embed/trezorhal/boards/stm32f429i-disc1.h @@ -2,6 +2,7 @@ #define _STM32F429I_DISC1_H #define USE_TOUCH 1 +#define USE_BLE 1 #define USE_SDRAM 1 #include "displays/ltdc.h" @@ -19,4 +20,5 @@ #define I2C_INSTANCE_FORCE_RESET __HAL_RCC_I2C3_FORCE_RESET #define I2C_INSTANCE_RELEASE_RESET __HAL_RCC_I2C3_RELEASE_RESET + #endif //_STM32F429I_DISC1_H diff --git a/core/site_scons/boards/discovery.py b/core/site_scons/boards/discovery.py index be8036f83..53b26fd2a 100644 --- a/core/site_scons/boards/discovery.py +++ b/core/site_scons/boards/discovery.py @@ -21,6 +21,13 @@ def configure(env, features_wanted, defines, sources): sources += ['embed/trezorhal/touch/stmpe811.c', ] features_available.append("touch") + if "ble" in features_wanted: + sources += ['embed/trezorhal/ble/comm.c', ] + sources += ['embed/trezorhal/ble/dfu.c', ] + sources += ['embed/trezorhal/ble/fwu.c', ] + sources += ['embed/trezorhal/ble/state.c', ] + features_available.append("ble") + env.get('ENV')['TREZOR_BOARD'] = board return features_available