diff --git a/components/softdevice/common/nrf_sdh_freertos.c b/components/softdevice/common/nrf_sdh_freertos.c index dccb811..27b83a0 100644 --- a/components/softdevice/common/nrf_sdh_freertos.c +++ b/components/softdevice/common/nrf_sdh_freertos.c @@ -57,6 +57,10 @@ NRF_LOG_MODULE_REGISTER(); static TaskHandle_t m_softdevice_task; //!< Reference to SoftDevice FreeRTOS task. static nrf_sdh_freertos_task_hook_t m_task_hook; //!< A hook function run by the SoftDevice task before entering its loop. +void nrf_sdh_freertos_notify(void) +{ + xTaskNotifyGive(m_softdevice_task); +} void SD_EVT_IRQHandler(void) { diff --git a/components/softdevice/common/nrf_sdh_freertos.h b/components/softdevice/common/nrf_sdh_freertos.h index db1e9c4..8abb1cb 100644 --- a/components/softdevice/common/nrf_sdh_freertos.h +++ b/components/softdevice/common/nrf_sdh_freertos.h @@ -60,6 +60,8 @@ typedef void (*nrf_sdh_freertos_task_hook_t)(void * p_context); */ void nrf_sdh_freertos_init(nrf_sdh_freertos_task_hook_t hook, void * p_context); +void nrf_sdh_freertos_notify(void); + /** * @} */