nRF51 SDK v9.0.0
Schedule handling library

The scheduler is used for transferring execution from the interrupt context to the main context.

Requirements:

Logic in main context:

Logic in interrupt context:

For an example usage of the scheduler, see the implementations of HID Mouse Application and HID Keyboard Application.

scheduler_working.jpg
The high level design of the scheduler

Applications using the Scheduler

Sequence diagrams illustrating the flow of events for various scenarios in the example applications when using the Scheduler.

ble_event_with_scheduler.jpg
Figure 1: Receiving an event from the ble stack causing a service event


battery_timer_with_scheduler.jpg
Figure 2: The battery timer expires


Applications not using the Scheduler

Sequence diagrams illustrating the flow of events for various scenarios in the example applications when not using the Scheduler.

ble_event_without_scheduler.jpg
Figure 3: Receiving an event from the ble stack causing a service event


battery_timer_without_scheduler.jpg
Figure 4: The battery timer expires

This document was last updated on Thu Jul 9 2015.
Please send us your feedback about the documentation! For technical questions, visit the Nordic Developer Zone.