Using the scheduler library in SDK 12.3.0

Hi,

I am in the process of porting an application from an nrf52 to an nrf51 due to availability issues. One problem I run into is that bluetooth events are handled in interrupt context. The scheduler library would be able to solve that problem if I understand it correctly but up until now I have not been able to get it to work. I set a breakpoint on my event handler and see in the call stack that the function is invoked from interrupt context. 

I have looked into the examples that use the scheduler but I don't see where app_sched_event_put()  is invoked. In fact, I don't find any app_sched_event_put()  call in any sourcefile of the SDK. So how is this supposed to work? Is app_sched_event_put() invoked directly by the softdevice?

Kind regards,

Bert

Parents Reply Children
No Data
Related