Loading...
Searching...
No Matches
Go to the documentation of this file.
40#ifndef NRF_802154_PERIPHERALS_H__
41#define NRF_802154_PERIPHERALS_H__
48#if defined(NRF52_SERIES)
50#elif defined(NRF5340_XXAA)
52#elif defined(NRF54L_SERIES)
54#elif defined(NRF54H_SERIES)
58#ifdef NRF_802154_USE_INTERNAL_INCLUDES
59#include "nrf_802154_peripherals_internal.h"
72#ifndef NRF_802154_HIGH_PRECISION_TIMER_INSTANCE_NO
73#define NRF_802154_HIGH_PRECISION_TIMER_INSTANCE_NO 1
82#define NRF_802154_HIGH_PRECISION_TIMER_INSTANCE \
83 NRFX_CONCAT_2(NRF_TIMER, NRF_802154_HIGH_PRECISION_TIMER_INSTANCE_NO)
91#ifndef NRF_802154_TIMER_INSTANCE_NO
92#define NRF_802154_TIMER_INSTANCE_NO 0
101#define NRF_802154_TIMER_INSTANCE \
102 NRFX_CONCAT_2(NRF_TIMER, NRF_802154_TIMER_INSTANCE_NO)
113#define NRF_802154_RTC_INSTANCE NRFX_CONCAT_2(NRF_RTC, NRF_802154_RTC_INSTANCE_NO)
124#define NRF_802154_RTC_IRQ_HANDLER NRFX_CONCAT_3(RTC, NRF_802154_RTC_INSTANCE_NO, _IRQHandler)
135#define NRF_802154_RTC_IRQN NRFX_CONCAT_3(RTC, NRF_802154_RTC_INSTANCE_NO, _IRQn)
142#ifndef NRF_802154_TIMERS_USED_MASK
143#define NRF_802154_TIMERS_USED_MASK ((1 << NRF_802154_HIGH_PRECISION_TIMER_INSTANCE_NO) | \
144 (1 << NRF_802154_TIMER_INSTANCE_NO))
152#ifndef NRF_802154_RTC_USED_MASK
153#define NRF_802154_RTC_USED_MASK (1 << NRF_802154_RTC_INSTANCE_NO)
161#ifndef NRF_802154_GPIO_PINS_USED_MASK
162#define NRF_802154_GPIO_PINS_USED_MASK NRF_802154_DEBUG_PINS_USED_MASK
170#ifndef NRF_802154_GPIOTE_CHANNELS_USED_MASK
171#define NRF_802154_GPIOTE_CHANNELS_USED_MASK NRF_802154_DEBUG_GPIOTE_CHANNELS_USED_MASK
181#if NRF_802154_NOTIFICATION_IMPL == NRF_802154_NOTIFICATION_IMPL_SWI
188#ifndef NRF_802154_EGU_NOTIFICATION_CHANNEL_NO
189#define NRF_802154_EGU_NOTIFICATION_CHANNEL_NO 0
192#define NRF_802154_EGU_NOTIFICATION_USED_CHANNELS_MASK \
193 (1U << NRF_802154_EGU_NOTIFICATION_CHANNEL_NO)
195#define NRF_802154_EGU_NOTIFICATION_USED_CHANNELS_MASK 0U
205#if NRF_802154_REQUEST_IMPL == NRF_802154_REQUEST_IMPL_SWI
212#ifndef NRF_802154_EGU_REQUEST_CHANNEL_NO
213#define NRF_802154_EGU_REQUEST_CHANNEL_NO 2
215#define NRF_802154_EGU_REQUEST_USED_CHANNELS_MASK (1U << NRF_802154_EGU_REQUEST_CHANNEL_NO)
217#define NRF_802154_EGU_REQUEST_USED_CHANNELS_MASK 0U
227#define NRF_802154_EGU_SYNC_CHANNEL_NO 3
235#define NRF_802154_EGU_SYNC_USED_CHANNELS_MASK (1U << NRF_802154_EGU_SYNC_CHANNEL_NO)
242#define NRF_802154_EGU_RAMP_UP_CHANNEL_NO 15
250#define NRF_802154_EGU_RAMP_UP_USED_CHANNELS_MASK (1U << NRF_802154_EGU_RAMP_UP_CHANNEL_NO)
257#define NRF_802154_EGU_RAMP_UP_EVENT NRFX_CONCAT_2(NRF_EGU_EVENT_TRIGGERED, \
258 NRF_802154_EGU_RAMP_UP_CHANNEL_NO)
265#define NRF_802154_EGU_RAMP_UP_TASK NRFX_CONCAT_2(NRF_EGU_TASK_TRIGGER, \
266 NRF_802154_EGU_RAMP_UP_CHANNEL_NO)
274#define NRF_802154_EGU_USED_CHANNELS_MASK \
275 (NRF_802154_EGU_NOTIFICATION_USED_CHANNELS_MASK | \
276 NRF_802154_EGU_REQUEST_USED_CHANNELS_MASK | \
277 NRF_802154_EGU_SYNC_USED_CHANNELS_MASK | \
278 NRF_802154_EGU_RAMP_UP_USED_CHANNELS_MASK | \
279 NRF_802154_SL_EGU_USED_CHANNELS_MASK)