nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ BM_IRQ_SET_PRIORITY

#define BM_IRQ_SET_PRIORITY ( _irqn,
_prio )

#include <bm_irq.h>

Value:
BUILD_ASSERT(_prio >= BM_IRQ_OFFSET, \
"IRQ priority of " STRINGIFY(_irqn) " is < " STRINGIFY(BM_IRQ_OFFSET)); \
NVIC_SetPriority(_irqn, _prio)
#define BM_IRQ_OFFSET
Priority offset between Bare Metal and Zephyr interrupt priorities.
Definition bm_irq.h:29

Sets the priority of an IRQ.

Wrapper around NVIC_SetPriority that verifies at build time that the priority is within the valid range (2–7).

  • A build-time assertion verifies that _prio is within the valid range.
Parameters
_irqnIRQ number.
_prioNVIC interrupt priority.