I tried the following code:
In main:
void sys_dispatch_handler(uint32_t sys_evt, void * p_context)
{
test(sys_evt);
}
And registered the handler as follows:
NRF_SDH_ANT_OBSERVER(..............) ;(this works)
NRF_SDH_SOC_OBSERVER(sys_ant_observer, NRF_SDH_STACK_OBSERVER_PRIO_LEVELS,sys_dispatch_handler, NULL);
I tried priority 0 and 1.
The code compiles, runs,with an ANT+ device,, but the test(sys_evt) never gets executed regardless of events.
I'm using SDK v16,0.0 SD332