nRF5 SDK v17.1.0
Macros | Functions
Core-dependent functionality

Module containing functions with core-dependent implementation, like delay. More...

Macros

#define NRFX_DELAY_CPU_FREQ_MHZ
 Core frequency (in MHz).
 
#define NRFX_DELAY_DWT_PRESENT
 Availability of Data Watchpoint and Trace (DWT) unit in the given SoC.
 
#define NRFX_COREDEP_DELAY_US_LOOP_CYCLES
 Number of cycles consumed by one iteration of the internal loop in the function nrfx_coredep_delay_us. More...
 

Functions

__STATIC_INLINE void nrfx_coredep_delay_us (uint32_t time_us)
 Function for delaying execution for a number of microseconds. More...
 

Detailed Description

Module containing functions with core-dependent implementation, like delay.

Macro Definition Documentation

#define NRFX_COREDEP_DELAY_US_LOOP_CYCLES

Number of cycles consumed by one iteration of the internal loop in the function nrfx_coredep_delay_us.

This value can be specified externally (for example, when the SoC is emulated).

Function Documentation

__STATIC_INLINE void nrfx_coredep_delay_us ( uint32_t  time_us)

Function for delaying execution for a number of microseconds.

The value of time_us is multiplied by the frequency in MHz. Therefore, the delay is limited to maximum uint32_t capacity divided by frequency. For example:

  • For SoCs working at 64MHz: 0xFFFFFFFF/64 = 0x03FFFFFF (67108863 microseconds)
  • For SoCs working at 16MHz: 0xFFFFFFFF/16 = 0x0FFFFFFF (268435455 microseconds)
See Also
NRFX_COREDEP_DELAY_US_LOOP_CYCLES
Parameters
time_usNumber of microseconds to wait.

Documentation feedback | Developer Zone | Subscribe | Updated