nRF5 SDK v17.1.0
Macros | Functions
Stack info functions and definitions

Functions and definitions used to obtain information about the state of the stack. More...

Macros

#define NRF_STACK_INFO_TOP   ((uint32_t)STACK_TOP)
 Top (highest) stack address.
 
#define NRF_STACK_INFO_BASE   ((uint32_t)STACK_BASE)
 Base (lowest) stack address.
 
#define NRF_STACK_INFO_GET_SP()   ((uint32_t)GET_SP())
 Function to get the current stack pointer value. More...
 

Functions

__STATIC_INLINE size_t nrf_stack_info_get_available (void)
 
__STATIC_INLINE size_t nrf_stack_info_get_depth (void)
 
__STATIC_INLINE bool nrf_stack_info_overflowed (void)
 
__STATIC_INLINE bool nrf_stack_info_is_on_stack (void const *const p_address)
 

Detailed Description

Functions and definitions used to obtain information about the state of the stack.

Macro Definition Documentation

#define NRF_STACK_INFO_GET_SP ( )    ((uint32_t)GET_SP())

Function to get the current stack pointer value.

Returns
Current stack pointer value.

Documentation feedback | Developer Zone | Subscribe | Updated