feat(core): support for BLE on discovery

tychovrahe/bluetooth/cleaner_disc2
tychovrahe 1 year ago
parent b1262c4bba
commit 5c32b05c1d

@ -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

@ -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

Loading…
Cancel
Save