test
Dependents: BLE_HeartRate_IDB0XA1_EPUDEE_Avril2018
Fork of X_NUCLEO_IDB0XA1 by
Diff: source/platform/stm32_bluenrg_ble.cpp
- Branch:
- e9fb3e390284c3f7ef8e1d21cc55deef7558ca3d
- Revision:
- 264:1e754a01869e
- Parent:
- 245:6830f71c197c
- Child:
- 293:5a1f577bf92f
--- a/source/platform/stm32_bluenrg_ble.cpp Thu Sep 15 10:51:17 2016 +0100 +++ b/source/platform/stm32_bluenrg_ble.cpp Thu Sep 15 10:51:26 2016 +0100 @@ -172,20 +172,12 @@ bluenrgDeviceInstance.enable_irq(); } -#ifdef AST_FOR_MBED_OS -/** - * Call BTLE callback handler. - * @param None - * @retval None - */ -void Call_BTLE_Handler(void) -{ - if(!btle_handler_pending) { - btle_handler_pending = 1; - minar::Scheduler::postCallback(btle_handler); - } +void signalEventsToProcess(void) { + if(btle_handler_pending == 0) { + btle_handler_pending = 1; + bluenrgDeviceInstance.signalEventsToProcess(BLE::DEFAULT_INSTANCE); + } } -#endif /** * @brief Disable SPI IRQ. @@ -224,4 +216,4 @@ // End of C function wrappers //////////////////////////////////////// -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ +/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ \ No newline at end of file