nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Utility Functions and Definitions (Platform)

Various types and definitions available to all applications when using SoftDevice. More...

Macros

#define NRF_APP_PRIORITY_THREAD   4
 
#define PACKED(TYPE)   __packed TYPE
 
#define CRITICAL_REGION_ENTER()   critical_region_enter()
 Macro for entering a critical region. More...
 
#define CRITICAL_REGION_EXIT()   critical_region_exit()
 Macro for leaving a critical region. More...
 

Enumerations

enum  app_irq_priority_t {
  APP_IRQ_PRIORITY_HIGH = 1,
  APP_IRQ_PRIORITY_MID = 2,
  APP_IRQ_PRIORITY_LOW = 3
}
 The interrupt priorities available to the application while the SoftDevice is active.
 

Functions

void critical_region_enter (void)
 
void critical_region_exit (void)
 

Detailed Description

Various types and definitions available to all applications when using SoftDevice.

Macro Definition Documentation

#define CRITICAL_REGION_ENTER ( )    critical_region_enter()

Macro for entering a critical region.

Note
Due to implementation details, there must exist one and only one call to CRITICAL_REGION_EXIT() for each call to CRITICAL_REGION_ENTER(), and they must be located in the same scope.
#define CRITICAL_REGION_EXIT ( )    critical_region_exit()

Macro for leaving a critical region.

Note
Due to implementation details, there must exist one and only one call to CRITICAL_REGION_EXIT() for each call to CRITICAL_REGION_ENTER(), and they must be located in the same scope.
#define NRF_APP_PRIORITY_THREAD   4

"Interrupt level" when running in Thread Mode.