nRF5 SDK v13.0.0
Macros
Application timer functionality configuration

Macros

#define APP_TIMER_ENABLED
 Enabling app_timer module. More...
 
#define APP_TIMER_CONFIG_RTC_FREQUENCY
 Configure RTC prescaler. More...
 
#define APP_TIMER_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define APP_TIMER_CONFIG_OP_QUEUE_SIZE
 Capacity of timer requests queue. More...
 
#define APP_TIMER_CONFIG_USE_SCHEDULER
 Enable scheduling app_timer events to app_scheduler. More...
 
#define APP_TIMER_WITH_PROFILER
 Enable app_timer profiling. More...
 
#define APP_TIMER_KEEPS_RTC_ACTIVE
 Enable RTC always on. More...
 
#define APP_TIMER_CONFIG_SWI_NUMBER
 Configure SWI instance used. More...
 

Detailed Description

Macro Definition Documentation

#define APP_TIMER_CONFIG_IRQ_PRIORITY

Interrupt priority.

Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice

Following options are available:

  • 0 - 0 (highest)
  • 1 - 1
  • 2 - 2
  • 3 - 3
  • 4 - 4 (except nRF51 family)
  • 5 - 5 (except nRF51 family)
  • 6 - 6 (except nRF51 family)
  • 7 - 7 (except nRF51 family)
Note
This is an NRF_CONFIG macro.
#define APP_TIMER_CONFIG_OP_QUEUE_SIZE

Capacity of timer requests queue.

Size of the queue depends on how many timers are used in the system, how often timers are started and overall system latency. If queue size is too small app_timer calls will fail.

Note
This is an NRF_CONFIG macro.
#define APP_TIMER_CONFIG_RTC_FREQUENCY

Configure RTC prescaler.

Following options are available:

  • 0 - 32768 Hz
  • 1 - 16384 Hz
  • 3 - 8192 Hz
  • 7 - 4096 Hz
  • 15 - 2048 Hz
  • 31 - 1024 Hz
Note
This is an NRF_CONFIG macro.
#define APP_TIMER_CONFIG_SWI_NUMBER

Configure SWI instance used.

Following options are available:

  • 0 - 0
  • 1 - 1
Note
This is an NRF_CONFIG macro.
#define APP_TIMER_CONFIG_USE_SCHEDULER

Enable scheduling app_timer events to app_scheduler.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define APP_TIMER_ENABLED

Enabling app_timer module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define APP_TIMER_KEEPS_RTC_ACTIVE

Enable RTC always on.

If option is enabled RTC is kept running even if there is no active timers. This option can be used when app_timer is used for timestamping.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define APP_TIMER_WITH_PROFILER

Enable app_timer profiling.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated