This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Scheduler clarification

Looking at the AN36 code, i notice that in theAPP_SCHED_INIT define, for the argument EVENT_SIZE is used sizeof(app_timer_event_t). In the meantime, the scheduler is used to manage the ble events and the buttons events, so i imagine that the app_timer_event_t has the maximum size among these events, so you used it to init the scheduler. In general, everytime i init the scheduler i have to compare all the data structure i am associating with it and used the longest as EVENT_SIZE argument? BLE events doesn't contain data, so i must not count them? Am i right?

Thanks

Related