This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Understanding APP_TIMER_INIT

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);
}
Related