nrfxlib API 2.7.99
Loading...
Searching...
No Matches
nrf_802154_peripherals_nrf53.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_NRF53_H__
41#define NRF_802154_PERIPHERALS_NRF53_H__
42
43#include <nrfx.h>
44#include "nrf_802154_config.h"
45#include "nrf_802154_debug.h"
46#include "nrf_802154_sl_periphs.h"
47
48#ifdef __cplusplus
49extern "C" {
50#endif
51
59#ifndef NRF_802154_EGU_INSTANCE_NO
60#define NRF_802154_EGU_INSTANCE_NO 0
61#endif
62
72#define NRF_802154_EGU_INSTANCE NRFX_CONCAT_2(NRF_EGU, NRF_802154_EGU_INSTANCE_NO)
73
82#define NRF_802154_EGU_IRQ_HANDLER \
83 NRFX_CONCAT_3(EGU, NRF_802154_EGU_INSTANCE_NO, _IRQHandler)
84
90#ifndef NRF_802154_EGU_USED_MASK
91#define NRF_802154_EGU_USED_MASK (1 << NRF_802154_EGU_INSTANCE_NO)
92#endif
93
100#ifndef NRF_802154_RTC_INSTANCE_NO
101#define NRF_802154_RTC_INSTANCE_NO 2
102#endif
103
110#define NRF_802154_DPPIC_INSTANCE NRF_DPPIC
111
120#ifndef NRF_802154_DPPI_RADIO_DISABLED
121#define NRF_802154_DPPI_RADIO_DISABLED 7U
122#endif
123
132#ifndef NRF_802154_DPPI_RADIO_READY
133#define NRF_802154_DPPI_RADIO_READY 4U
134#endif
135
144#ifndef NRF_802154_DPPI_RADIO_ADDRESS
145#define NRF_802154_DPPI_RADIO_ADDRESS 5U
146#endif
147
156#ifndef NRF_802154_DPPI_RADIO_END
157#define NRF_802154_DPPI_RADIO_END 6U
158#endif
159
168#ifndef NRF_802154_DPPI_RADIO_PHYEND
169#define NRF_802154_DPPI_RADIO_PHYEND 8U
170#endif
171
181#ifndef NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP
182#define NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP 10U
183#endif
184
194#ifndef NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN
195#define NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN 10U
196#endif
197
205#ifndef NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC
206#define NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC 12U
207#endif
208
214#ifndef NRF_802154_DPPI_RADIO_CCAIDLE
215#define NRF_802154_DPPI_RADIO_CCAIDLE 9U
216#endif
217
223#ifndef NRF_802154_DPPI_RADIO_CCABUSY
224#define NRF_802154_DPPI_RADIO_CCABUSY 3U
225#endif
226
232#define NRF_802154_DPPI_RADIO_TEST_MODE_USED_MASK 0U
233
239#ifndef NRF_802154_DPPI_RADIO_HW_TRIGGER
240#define NRF_802154_DPPI_RADIO_HW_TRIGGER 15U
241#endif
242
248#ifndef NRF_802154_DPPI_CHANNELS_USED_MASK
249#define NRF_802154_DPPI_CHANNELS_USED_MASK ( \
250 (1UL << NRF_802154_DPPI_RADIO_DISABLED) | \
251 (1UL << NRF_802154_DPPI_RADIO_READY) | \
252 (1UL << NRF_802154_DPPI_RADIO_ADDRESS) | \
253 (1UL << NRF_802154_DPPI_RADIO_END) | \
254 (1UL << NRF_802154_DPPI_RADIO_PHYEND) | \
255 (1UL << NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP) | \
256 (1UL << NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN) | \
257 (1UL << NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC) | \
258 (1UL << NRF_802154_DPPI_RADIO_CCAIDLE) | \
259 (1UL << NRF_802154_DPPI_RADIO_CCABUSY) | \
260 (1UL << NRF_802154_DPPI_RADIO_HW_TRIGGER) | \
261 NRF_802154_DPPI_RADIO_TEST_MODE_USED_MASK | \
262 NRF_802154_SL_PPI_CHANNELS_USED_MASK)
263#endif // NRF_802154_DPPI_CHANNELS_USED_MASK
264
270#ifndef NRF_802154_DPPI_GROUPS_USED_MASK
271#define NRF_802154_DPPI_GROUPS_USED_MASK 0UL
272#endif // NRF_802154_DPPI_GROUPS_USED_MASK
273
274#ifdef __cplusplus
275}
276#endif
277
278#endif // NRF_802154_PERIPHERALS_NRF53_H__