nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_peripherals_nrf52.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, Nordic Semiconductor ASA
3 * All rights reserved.
4 *
5 * SPDX-License-Identifier: BSD-3-Clause
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:
9 *
10 * 1. Redistributions of source code must retain the above copyright notice, this
11 * list of conditions and the following disclaimer.
12 *
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 *
17 * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18 * contributors may be used to endorse or promote products derived from this
19 * software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 */
34
40#ifndef NRF_802154_PERIPHERALS_NRF52_H__
41#define NRF_802154_PERIPHERALS_NRF52_H__
42
43/* This file must not include nrf.h or nrfx.h directly or indirectly,
44 * to avoid circular dependencies.
45 */
46
48#include "nrf_802154_config.h"
50#include "nrf_802154_sl_periphs.h"
51
52#ifdef __cplusplus
53extern "C" {
54#endif
55
63#ifndef NRF_802154_EGU_INSTANCE_NO
64
65#define NRF_802154_EGU_INSTANCE_NO 0
66
67#endif // NRF_802154_EGU_INSTANCE_NO
68
78#define NRF_802154_EGU_INSTANCE NRFX_CONCAT_2(NRF_EGU, NRF_802154_EGU_INSTANCE_NO)
79
88#define NRF_802154_EGU_IRQ_HANDLER \
89 NRFX_CONCAT_3(NRFX_CONCAT_3(SWI, NRF_802154_EGU_INSTANCE_NO, _EGU), \
90 NRF_802154_EGU_INSTANCE_NO, \
91 _IRQHandler)
92
99#ifndef NRF_802154_RTC_INSTANCE_NO
100
101#define NRF_802154_RTC_INSTANCE_NO 2
102
103#endif // NRF_802154_RTC_INSTANCE_NO
104
118#ifndef NRF_802154_PPI_RADIO_RAMP_UP_TRIGG
119#define NRF_802154_PPI_RADIO_RAMP_UP_TRIGG 6U
120#endif
121
131#ifndef NRF_802154_PPI_RADIO_DISABLED_TO_EGU
132#define NRF_802154_PPI_RADIO_DISABLED_TO_EGU 6U
133#endif
134
143#ifndef NRF_802154_PPI_EGU_TO_RADIO_RAMP_UP
144#define NRF_802154_PPI_EGU_TO_RADIO_RAMP_UP 7U
145#endif
146
155#ifndef NRF_802154_PPI_EGU_TO_TIMER_START
156#define NRF_802154_PPI_EGU_TO_TIMER_START 8U
157#endif
158
168#ifndef NRF_802154_PPI_RADIO_CCAIDLE_TO_FEM_GPIOTE
169#define NRF_802154_PPI_RADIO_CCAIDLE_TO_FEM_GPIOTE 9U
170#endif
171
181#ifndef NRF_802154_PPI_TIMER_COMPARE_TO_RADIO_TXEN
182#define NRF_802154_PPI_TIMER_COMPARE_TO_RADIO_TXEN 9U
183#endif
184
194#ifndef NRF_802154_PPI_RADIO_CCABUSY_TO_RADIO_CCASTART
195#define NRF_802154_PPI_RADIO_CCABUSY_TO_RADIO_CCASTART 10U
196#endif
197
205#ifndef NRF_802154_PPI_RADIO_SYNC_TO_EGU_SYNC
206#define NRF_802154_PPI_RADIO_SYNC_TO_EGU_SYNC 11U
207#endif
208
209#define NRF_802154_DISABLE_BCC_MATCHING_PPI_CHANNELS_USED_MASK \
210 (1 << NRF_802154_PPI_RADIO_SYNC_TO_EGU_SYNC)
211
220#ifndef NRF_802154_PPI_CORE_GROUP
221#define NRF_802154_PPI_CORE_GROUP 0U
222#endif
223
230#ifndef NRF_802154_PPI_ABORT_GROUP
231#define NRF_802154_PPI_ABORT_GROUP 1U
232#endif
233
239#ifndef NRF_802154_EGU_USED_MASK
240#define NRF_802154_EGU_USED_MASK (1 << NRF_802154_EGU_INSTANCE_NO)
241#endif
242
248#ifndef NRF_802154_PPI_CHANNELS_USED_MASK
249#define NRF_802154_PPI_CHANNELS_USED_MASK ((1 << NRF_802154_PPI_RADIO_DISABLED_TO_EGU) | \
250 (1 << NRF_802154_PPI_RADIO_RAMP_UP_TRIGG) | \
251 (1 << NRF_802154_PPI_EGU_TO_RADIO_RAMP_UP) | \
252 (1 << NRF_802154_PPI_EGU_TO_TIMER_START) | \
253 (1 << NRF_802154_PPI_RADIO_CCAIDLE_TO_FEM_GPIOTE) | \
254 (1 << NRF_802154_PPI_TIMER_COMPARE_TO_RADIO_TXEN) | \
255 (1 << NRF_802154_PPI_RADIO_CCABUSY_TO_RADIO_CCASTART) | \
256 NRF_802154_DISABLE_BCC_MATCHING_PPI_CHANNELS_USED_MASK | \
257 NRF_802154_SL_PPI_CHANNELS_USED_MASK | \
258 NRF_802154_DEBUG_PPI_CHANNELS_USED_MASK)
259#endif // NRF_802154_PPI_CHANNELS_USED_MASK
260
266#ifndef NRF_802154_PPI_GROUPS_USED_MASK
267#define NRF_802154_PPI_GROUPS_USED_MASK ((1 << NRF_802154_PPI_CORE_GROUP) | \
268 (1 << NRF_802154_PPI_ABORT_GROUP) )
269#endif // NRF_802154_PPI_GROUPS_USED_MASK
270
271#define NRF_802154_ENCRYPTION_ACCELERATOR_ECB
272
273#ifdef __cplusplus
274}
275#endif
276
277#endif // NRF_802154_PERIPHERALS_NRF52_H__