https://devzone.nordicsemi.com/documentation/nrf51/4.3.0/html/group__app__timer.html
I'm trying to learn from the documentation how the USE_SCHEDULER
parameter should be interpreted. Does true
mean that all timer callbacks are run in the main loop? Or simply a requirement if I use the app_sched_
module, e.g. in the timer callback:
// Is this always executed in IRQ?
static void OnMyTimerExpired(void * p_context) {
static volatile uint32_t err_code;
UNUSED_PARAMETER(p_context);
err_code = app_sched_event_put(NULL, 0, GatherNextMeasurement);
APP_ERROR_CHECK(err_code);
}