Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cores/nRF5/nordic/nrfx_glue.h
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,22 @@ static inline bool _NRFX_IRQ_IS_PENDING(IRQn_Type irq_number)
#include <lib/nrfx_coredep.h>
#define NRFX_DELAY_US(us_time) nrfx_coredep_delay_us(us_time)

// ---------------------------------------------------------------------------
// Bit operations
// ---------------------------------------------------------------------------

#define NRFX_CLZ(value) __builtin_clz(value)
#define NRFX_CTZ(value) __builtin_ctz(value)

// ---------------------------------------------------------------------------
// Cache maintenance
// ---------------------------------------------------------------------------

// nRF54L has an instruction cache only, so DMA buffers need no maintenance.
#define NRFY_CACHE_WB(p_buffer, size) do { (void)(p_buffer); (void)(size); } while (0)
#define NRFY_CACHE_INV(p_buffer, size) do { (void)(p_buffer); (void)(size); } while (0)
#define NRFY_CACHE_WBINV(p_buffer, size) do { (void)(p_buffer); (void)(size); } while (0)

// ---------------------------------------------------------------------------
// Error codes
// ---------------------------------------------------------------------------
Expand Down