nrfx 4.5.0
Loading...
Searching...
No Matches
Core-dependent functionality

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

Macros

#define NRFX_COREDEP_DELAY_CPU_FREQ_MHZ   (SystemCoreClock / 1000000)
 Core frequency (in MHz).
 
#define NRFX_COREDEP_DELAY_DWT_PRESENT   1
 Availability of Data Watchpoint and Trace (DWT) unit in the given SoC.
 
#define NRFX_COREDEP_DELAY_US_LOOP_CYCLES   3
 Number of cycles consumed by one iteration of the internal loop in the function nrfx_coredep_delay_us.
 
#define NRFX_COREDEP_DELAY_RISCV_SLOWDOWN   50
 RISC-V delay factor.
 

Functions

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

Detailed Description

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

Macro Definition Documentation

◆ NRFX_COREDEP_DELAY_US_LOOP_CYCLES

#define NRFX_COREDEP_DELAY_US_LOOP_CYCLES   3

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

◆ nrfx_coredep_delay_us()

NRF_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 CPU frequency in MHz. Therefore, the delay is limited to the maximum value of the uint32_t type divided by the frequency.

See also
NRFX_COREDEP_DELAY_US_LOOP_CYCLES
Parameters
time_usNumber of microseconds to wait.