nrfxlib API 3.3.99
Loading...
Searching...
No Matches
nrf_802154_config_soc.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025, 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
35#ifndef NRF_802154_CONFIG_SOC_H_
36#define NRF_802154_CONFIG_SOC_H_
37
38/* This file provides information about the SoC to the nRF 802.15.4 driver.
39 * It defines nrf 802.15.4 driver's internal macros to denote SoC series and
40 * SoC features based on macros provided by the build system.
41 *
42 * This file intentionally does not include nrf.h or nrfx.h to avoid
43 * circular include dependencies.
44 */
45
46#ifdef NRF_802154_SOC_SUPPORTED
47 #error "Do not define NRF_802154_SOC_SUPPORTED externally"
48#endif
49
50#ifdef NRF_802154_SOC_NRF52_SERIES
51 #error "Do not define NRF_802154_SOC_NRF52_SERIES externally"
52#endif
53
54#if defined (NRF52833_XXAA) || defined (NRF52840_XXAA)
55 #define NRF_802154_SOC_NRF52_SERIES
56 #define NRF_802154_SOC_SUPPORTED
57#endif
58
59#ifdef NRF_802154_SOC_NRF53_SERIES
60 #error "Do not define NRF_802154_SOC_NRF53_SERIES externally"
61#endif
62
63#if defined (NRF5340_XXAA) || defined(NRF5340_XXAA_APPLICATION) || defined(NRF5340_XXAA_NETWORK)
64 #define NRF_802154_SOC_NRF53_SERIES
65 #define NRF_802154_SOC_SUPPORTED
66#endif
67
68#ifdef NRF_802154_SOC_NRF54H_SERIES
69 #error "Do not define NRF_802154_SOC_NRF54H_SERIES externally"
70#endif
71
72#if defined (NRF54H20_XXAA)
73 #define NRF_802154_SOC_NRF54H_SERIES
74 #define NRF_802154_SOC_SUPPORTED
75#endif
76
77#ifdef NRF_802154_SOC_NRF54L_SERIES
78 #error "Do not define NRF_802154_SOC_NRF54L_SERIES externally"
79#endif
80
81#if defined (NRF54L05_XXAA) || defined (NRF54LV10A_ENGA_XXAA) || defined (NRF54L10_XXAA) \
82 || defined (NRF54L15_XXAA) || defined (NRF54LM20A_ENGA_XXAA) || defined (NRF54LM20B_XXAA) \
83 || defined (NRF54LV10A_XXAA) || defined (NRF54LM20A_XXAA) || defined (NRF54LC10A_XXAA)
84 #define NRF_802154_SOC_NRF54L_SERIES
85 #define NRF_802154_SOC_SUPPORTED
86#endif
87
88#ifdef NRF_802154_SOC_PPI_PRESENT
89 #error "Do not define NRF_802154_SOC_PPI_PRESENT externally"
90#endif
91
92#ifdef NRF_802154_SOC_DPPI_PRESENT
93 #error "Do not define NRF_802154_SOC_DPPI_PRESENT externally"
94#endif
95
96#if defined(NRF_802154_SOC_NRF52_SERIES)
97 #define NRF_802154_SOC_PPI_PRESENT
98#endif
99
100#if defined(NRF_802154_SOC_NRF53_SERIES)
101 #define NRF_802154_SOC_DPPI_PRESENT
102#endif
103
104#if defined(NRF_802154_SOC_NRF54H_SERIES)
105 #define NRF_802154_SOC_DPPI_PRESENT
106#endif
107
108#if defined(NRF_802154_SOC_NRF54L_SERIES)
109 #define NRF_802154_SOC_DPPI_PRESENT
110#endif
111
112#ifdef NRF_802154_USE_INTERNAL_INCLUDES
113#include "nrf_802154_soc_config_internal.h"
114#endif
115
116#ifndef NRF_802154_SOC_SUPPORTED
117#error "nRF 802.15.4 driver is not supported on the selected SoC."
118#endif
119
120#endif /* NRF_802154_CONFIG_SOC_H_ */