modules: hal_nordic: nrf_802154_irq ZLI support
Parameter `prio` of `nrf_802154_irq_init` is now allowed to have negative value what means use of ZLI priority or highest possible priority if ZLIs are disabled. Signed-off-by: Andrzej Kuros <andrzej.kuros@nordicsemi.no>
This commit is contained in:
parent
dd3f251f10
commit
7ce93ebfed
@ -9,9 +9,16 @@
|
||||
#include <irq.h>
|
||||
#include <nrfx.h>
|
||||
|
||||
void nrf_802154_irq_init(uint32_t irqn, uint32_t prio, nrf_802154_isr_t isr)
|
||||
void nrf_802154_irq_init(uint32_t irqn, int32_t prio, nrf_802154_isr_t isr)
|
||||
{
|
||||
irq_connect_dynamic(irqn, prio, isr, NULL, 0);
|
||||
uint32_t flags = 0U;
|
||||
|
||||
if (prio < 0) {
|
||||
prio = 0;
|
||||
flags |= IRQ_ZERO_LATENCY;
|
||||
}
|
||||
|
||||
irq_connect_dynamic(irqn, prio, isr, NULL, flags);
|
||||
}
|
||||
|
||||
void nrf_802154_irq_enable(uint32_t irqn)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user