mirror of https://github.com/ARMmbed/mbed-os.git
BLE: Enable cordio extended modules if available.
parent
bf535af159
commit
ac47736259
|
@ -259,6 +259,15 @@ void BLE::processEvents()
|
|||
::BLE::Instance(::BLE::DEFAULT_INSTANCE),
|
||||
BLE_ERROR_NONE
|
||||
};
|
||||
|
||||
// initialize extended module if supported
|
||||
if (HciGetLeSupFeat() == HCI_LE_SUP_FEAT_LE_EXT_ADV) {
|
||||
DmExtAdvInit();
|
||||
DmExtScanInit();
|
||||
DmExtConnMasterInit();
|
||||
DmExtConnSlaveInit();
|
||||
}
|
||||
|
||||
deviceInstance().getGattServer().initialize();
|
||||
deviceInstance().initialization_status = INITIALIZED;
|
||||
_init_callback.call(&context);
|
||||
|
|
Loading…
Reference in New Issue