nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Simple timer

The simple timer driver can be used to create a single timer instance based on the TIMER1 peripheral. On time-out, a user-defined time-out handler is called directly from the TIMER1 interrupt handler.

The interrupt handler runs at priority level APP_LOW.

The following features are supported:

  • Tickless timer.
  • Two modes: single shot mode and repeated mode.

The following limitations are known:

  • No more than one timer can run simultaneously.
  • The timer is hard-coded to use the TIMER1 peripheral.
  • The timer is hard-coded to 16-bit width mode.