nrfxlib API 0.1.0
Loading...
Searching...
No Matches
nrf_802154_peripherals_nrf54h.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024, 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_NRF54H_H__
41#define NRF_802154_PERIPHERALS_NRF54H_H__
42
43#include <nrfx.h>
44#include "nrf_802154_config.h"
45#include "nrf_802154_sl_periphs.h"
46
47#ifdef __cplusplus
48extern "C" {
49#endif
50
58#ifndef NRF_802154_EGU_INSTANCE_NO
59#define NRF_802154_EGU_INSTANCE_NO 020
60#endif
61
71#define NRF_802154_EGU_INSTANCE NRFX_CONCAT_2(NRF_EGU, NRF_802154_EGU_INSTANCE_NO)
72
81#define NRF_802154_EGU_IRQ_HANDLER \
82 NRFX_CONCAT_3(EGU, NRF_802154_EGU_INSTANCE_NO, _IRQHandler)
83
89#ifndef NRF_802154_EGU_USED_MASK
90#define NRF_802154_EGU_USED_MASK (1 << NRF_802154_EGU_INSTANCE_NO)
91#endif
92
101#define NRF_802154_CCM_INSTANCE_NO 030
102
111#define NRF_802154_CCM_INSTANCE NRFX_CONCAT_2(NRF_CCM, NRF_802154_CCM_INSTANCE_NO)
112
119#ifndef NRF_802154_RTC_INSTANCE_NO
120#define NRF_802154_RTC_INSTANCE_NO 2
121#endif
122
129#define NRF_802154_DPPIC_INSTANCE_NO 020
130
137#define NRF_802154_DPPIC_INSTANCE NRFX_CONCAT_2(NRF_DPPIC, NRF_802154_DPPIC_INSTANCE_NO)
138
147#ifndef NRF_802154_DPPI_RADIO_DISABLED
148#define NRF_802154_DPPI_RADIO_DISABLED 7U
149#endif
150
159#ifndef NRF_802154_DPPI_RADIO_READY
160#define NRF_802154_DPPI_RADIO_READY 4U
161#endif
162
171#ifndef NRF_802154_DPPI_RADIO_ADDRESS
172#define NRF_802154_DPPI_RADIO_ADDRESS 5U
173#endif
174
183#ifndef NRF_802154_DPPI_RADIO_END
184#define NRF_802154_DPPI_RADIO_END 6U
185#endif
186
195#ifndef NRF_802154_DPPI_RADIO_PHYEND
196#define NRF_802154_DPPI_RADIO_PHYEND 12U
197#endif
198
208#ifndef NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP
209#define NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP 10U
210#endif
211
221#ifndef NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN
222#define NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN 10U
223#endif
224
232#ifndef NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC
233#define NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC 8U
234#endif
235
241#ifndef NRF_802154_DPPI_RADIO_CCAIDLE
242#define NRF_802154_DPPI_RADIO_CCAIDLE 9U
243#endif
244
250#ifndef NRF_802154_DPPI_RADIO_CCABUSY
251#define NRF_802154_DPPI_RADIO_CCABUSY 3U
252#endif
253
259#ifndef NRF_802154_DPPI_RADIO_HW_TRIGGER
260#define NRF_802154_DPPI_RADIO_HW_TRIGGER 15U
261#endif
262
268#ifndef NRF_802154_DPPI_CHANNELS_USED_MASK
269#define NRF_802154_DPPI_CHANNELS_USED_MASK ( \
270 (1UL << NRF_802154_DPPI_RADIO_DISABLED) | \
271 (1UL << NRF_802154_DPPI_RADIO_READY) | \
272 (1UL << NRF_802154_DPPI_RADIO_ADDRESS) | \
273 (1UL << NRF_802154_DPPI_RADIO_END) | \
274 (1UL << NRF_802154_DPPI_RADIO_PHYEND) | \
275 (1UL << NRF_802154_DPPI_EGU_TO_RADIO_RAMP_UP) | \
276 (1UL << NRF_802154_DPPI_TIMER_COMPARE_TO_RADIO_TXEN) | \
277 (1UL << NRF_802154_DPPI_RADIO_SYNC_TO_EGU_SYNC) | \
278 (1UL << NRF_802154_DPPI_RADIO_CCAIDLE) | \
279 (1UL << NRF_802154_DPPI_RADIO_CCABUSY) | \
280 (1UL << NRF_802154_DPPI_RADIO_HW_TRIGGER) | \
281 NRF_802154_SL_PPI_CHANNELS_USED_MASK)
282#endif // NRF_802154_DPPI_CHANNELS_USED_MASK
283
289#ifndef NRF_802154_DPPI_GROUPS_USED_MASK
290#define NRF_802154_DPPI_GROUPS_USED_MASK 0UL
291#endif // NRF_802154_DPPI_GROUPS_USED_MASK
292
299#define NRF_802154_TIMER_INSTANCE_NO 022
300
301#ifdef __cplusplus
302}
303#endif
304
305#endif // NRF_802154_PERIPHERALS_NRF54H_H__