1 /*
2 
3 Copyright (c) 2010 - 2023, Nordic Semiconductor ASA 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 NORDIC SEMICONDUCTOR ASA 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 _NRF5340_NETWORK_PERIPHERALS_H
36 #define _NRF5340_NETWORK_PERIPHERALS_H
37 
38 
39 /* Clock Peripheral */
40 #define CLOCK_PRESENT
41 #define CLOCK_COUNT 1
42 
43 /* Power Peripheral */
44 #define POWER_PRESENT
45 #define POWER_COUNT 1
46 
47 /* Non-Volatile Memory Controller */
48 #define NVMC_PRESENT
49 #define NVMC_COUNT 1
50 
51 #define NVMC_FEATURE_CACHE_PRESENT
52 
53 /* Voltage request peripheral */
54 #define VREQCTRL_PRESENT
55 #define VREQCTRL_COUNT 1
56 
57 /* Volatile Memory Controller Peripheral */
58 #define VMC_PRESENT
59 #define VMC_COUNT 1
60 
61 #define VMC_FEATURE_RAM_REGISTERS_PRESENT
62 #define VMC_FEATURE_RAM_REGISTERS_COUNT 4
63 
64 /* Systick timer */
65 #define SYSTICK_PRESENT
66 #define SYSTICK_COUNT 1
67 
68 /* Inter-Processor Communication */
69 #define IPC_PRESENT
70 #define IPC_COUNT 1
71 
72 #define IPC_CH_NUM 16
73 #define IPC_CONF_NUM 16
74 #define IPC_GPMEM_NUM 2
75 
76 /* GPIO */
77 #define GPIO_PRESENT
78 #define GPIO_COUNT 2
79 
80 #define P0_PIN_NUM 32
81 #define P1_PIN_NUM 16
82 
83 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
84 #define P1_FEATURE_PINS_PRESENT 0x0000FFFFUL
85 
86 
87 /* ACL */
88 #define ACL_PRESENT
89 #define ACL_REGIONS_COUNT 8
90 
91 /* Radio */
92 #define RADIO_PRESENT
93 #define RADIO_COUNT 1
94 
95 #define RADIO_EASYDMA_MAXCNT_SIZE 9
96 #define RADIO_FEATURE_IEEE_802_15_4_PRESENT
97 
98 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_0dBm
99 
100 /* Accelerated Address Resolver */
101 #define AAR_PRESENT
102 #define AAR_COUNT 1
103 
104 #define AAR_MAX_IRK_NUM 16
105 
106 /* AES Electronic CodeBook mode encryption */
107 #define ECB_PRESENT
108 #define ECB_COUNT 1
109 
110 /* AES CCM mode encryption */
111 #define CCM_PRESENT
112 #define CCM_COUNT 1
113 
114 /* Distributed Peripheral to Peripheral Interconnect */
115 #define DPPIC_PRESENT
116 #define DPPIC_COUNT 1
117 
118 #define DPPIC_CH_NUM 32
119 #define DPPIC_GROUP_NUM 6
120 
121 /* Event Generator Unit */
122 #define EGU_PRESENT
123 #define EGU_COUNT 1
124 
125 #define EGU0_CH_NUM 16
126 
127 /* Timer/Counter */
128 #define TIMER_PRESENT
129 #define TIMER_COUNT 3
130 
131 #define TIMER0_MAX_SIZE 32
132 #define TIMER1_MAX_SIZE 32
133 #define TIMER2_MAX_SIZE 32
134 
135 #define TIMER0_CC_NUM 8
136 #define TIMER1_CC_NUM 8
137 #define TIMER2_CC_NUM 8
138 
139 /* Real Time Counter */
140 #define RTC_PRESENT
141 #define RTC_COUNT 2
142 
143 #define RTC0_CC_NUM 4
144 #define RTC1_CC_NUM 4
145 
146 /* RNG */
147 #define RNG_PRESENT
148 #define RNG_COUNT 1
149 
150 /* Watchdog Timer */
151 #define WDT_PRESENT
152 #define WDT_COUNT 1
153 
154 /* Temperature Sensor */
155 #define TEMP_PRESENT
156 #define TEMP_COUNT 1
157 
158 /* Universal Asynchronous Receiver-Transmitter with DMA */
159 #define UARTE_PRESENT
160 #define UARTE_COUNT 1
161 
162 #define UARTE0_EASYDMA_MAXCNT_SIZE 16
163 
164 /* Serial Peripheral Interface Master with DMA */
165 #define SPIM_PRESENT
166 #define SPIM_COUNT 1
167 
168 #define SPIM0_MAX_DATARATE  8
169 
170 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT  0
171 
172 #define SPIM0_FEATURE_DCX_PRESENT  0
173 
174 #define SPIM0_FEATURE_RXDELAY_PRESENT  0
175 
176 #define SPIM0_EASYDMA_MAXCNT_SIZE 16
177 
178 /* Serial Peripheral Interface Slave with DMA*/
179 #define SPIS_PRESENT
180 #define SPIS_COUNT 1
181 
182 #define SPIS0_EASYDMA_MAXCNT_SIZE 16
183 
184 /* Two Wire Interface Master with DMA */
185 #define TWIM_PRESENT
186 #define TWIM_COUNT 1
187 
188 #define TWIM0_EASYDMA_MAXCNT_SIZE 16
189 
190 /* Two Wire Interface Slave with DMA */
191 #define TWIS_PRESENT
192 #define TWIS_COUNT 1
193 
194 #define TWIS0_EASYDMA_MAXCNT_SIZE 16
195 
196 /* GPIO Tasks and Events */
197 #define GPIOTE_PRESENT
198 #define GPIOTE_COUNT 1
199 
200 #define GPIOTE_CH_NUM 8
201 
202 #define GPIOTE_FEATURE_SET_PRESENT
203 #define GPIOTE_FEATURE_CLR_PRESENT
204 
205 /* Software Interrupts */
206 #define SWI_PRESENT
207 #define SWI_COUNT 4
208 
209 /* Mutex*/
210 #define MUTEX_PRESENT
211 #define MUTEX_COUNT 1
212 
213 #endif      // _NRF5340_NETWORK_PERIPHERALS_H
214