1 /*
2 
3 Copyright (c) 2010 - 2020, Nordic Semiconductor ASA All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7 
8 1. Redistributions of source code must retain the above copyright notice, this
9    list of conditions and the following disclaimer.
10 
11 2. Redistributions in binary form must reproduce the above copyright
12    notice, this list of conditions and the following disclaimer in the
13    documentation and/or other materials provided with the distribution.
14 
15 3. Neither the name of Nordic Semiconductor ASA nor the names of its
16    contributors may be used to endorse or promote products derived from this
17    software without specific prior written permission.
18 
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
22 ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
23 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 POSSIBILITY OF SUCH DAMAGE.
30 
31 */
32 
33 #ifndef _NRF5340_NETWORK_PERIPHERALS_H
34 #define _NRF5340_NETWORK_PERIPHERALS_H
35 
36 
37 /* Clock Peripheral */
38 #define CLOCK_PRESENT
39 #define CLOCK_COUNT 1
40 
41 /* Power Peripheral */
42 #define POWER_PRESENT
43 #define POWER_COUNT 1
44 
45 /* Non-Volatile Memory Controller */
46 #define NVMC_PRESENT
47 #define NVMC_COUNT 1
48 
49 #define NVMC_FEATURE_CACHE_PRESENT
50 
51 /* Voltage request peripheral */
52 #define VREQCTRL_PRESENT
53 #define VREQCTRL_COUNT 1
54 
55 /* Volatile Memory Controller Peripheral */
56 #define VMC_PRESENT
57 #define VMC_COUNT 1
58 
59 #define VMC_FEATURE_RAM_REGISTERS_PRESENT
60 #define VMC_FEATURE_RAM_REGISTERS_COUNT 4
61 
62 /* Systick timer */
63 #define SYSTICK_PRESENT
64 #define SYSTICK_COUNT 1
65 
66 /* Inter-Processor Communication */
67 #define IPC_PRESENT
68 #define IPC_COUNT 1
69 
70 #define IPC_CH_NUM 16
71 #define IPC_CONF_NUM 16
72 #define IPC_GPMEM_NUM 2
73 
74 /* GPIO */
75 #define GPIO_PRESENT
76 #define GPIO_COUNT 2
77 
78 #define P0_PIN_NUM 32
79 #define P1_PIN_NUM 16
80 
81 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
82 #define P1_FEATURE_PINS_PRESENT 0x0000FFFFUL
83 
84 
85 /* ACL */
86 #define ACL_PRESENT
87 #define ACL_REGIONS_COUNT 8
88 
89 /* Radio */
90 #define RADIO_PRESENT
91 #define RADIO_COUNT 1
92 
93 #define RADIO_EASYDMA_MAXCNT_SIZE 9
94 #define RADIO_FEATURE_IEEE_802_15_4_PRESENT
95 
96 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_0dBm
97 
98 /* Accelerated Address Resolver */
99 #define AAR_PRESENT
100 #define AAR_COUNT 1
101 
102 #define AAR_MAX_IRK_NUM 16
103 
104 /* AES Electronic CodeBook mode encryption */
105 #define ECB_PRESENT
106 #define ECB_COUNT 1
107 
108 /* AES CCM mode encryption */
109 #define CCM_PRESENT
110 #define CCM_COUNT 1
111 
112 /* Distributed Peripheral to Peripheral Interconnect */
113 #define DPPI_PRESENT
114 #define DPPI_COUNT 1
115 
116 #define DPPI_CH_NUM 16
117 #define DPPI_GROUP_NUM 6
118 
119 /* Event Generator Unit */
120 #define EGU_PRESENT
121 #define EGU_COUNT 1
122 
123 #define EGU0_CH_NUM 16
124 
125 /* Timer/Counter */
126 #define TIMER_PRESENT
127 #define TIMER_COUNT 3
128 
129 #define TIMER0_MAX_SIZE 32
130 #define TIMER1_MAX_SIZE 32
131 #define TIMER2_MAX_SIZE 32
132 
133 #define TIMER0_CC_NUM 8
134 #define TIMER1_CC_NUM 8
135 #define TIMER2_CC_NUM 8
136 
137 /* Real Time Counter */
138 #define RTC_PRESENT
139 #define RTC_COUNT 2
140 
141 #define RTC0_CC_NUM 4
142 #define RTC1_CC_NUM 4
143 
144 /* RNG */
145 #define RNG_PRESENT
146 #define RNG_COUNT 1
147 
148 /* Watchdog Timer */
149 #define WDT_PRESENT
150 #define WDT_COUNT 1
151 
152 /* Temperature Sensor */
153 #define TEMP_PRESENT
154 #define TEMP_COUNT 1
155 
156 /* Universal Asynchronous Receiver-Transmitter with DMA */
157 #define UARTE_PRESENT
158 #define UARTE_COUNT 1
159 
160 #define UARTE0_EASYDMA_MAXCNT_SIZE 16
161 
162 /* Serial Peripheral Interface Master with DMA */
163 #define SPIM_PRESENT
164 #define SPIM_COUNT 1
165 
166 #define SPIM0_MAX_DATARATE  8
167 
168 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT  0
169 
170 #define SPIM0_FEATURE_DCX_PRESENT  0
171 
172 #define SPIM0_FEATURE_RXDELAY_PRESENT  0
173 
174 #define SPIM0_EASYDMA_MAXCNT_SIZE 16
175 
176 /* Serial Peripheral Interface Slave with DMA*/
177 #define SPIS_PRESENT
178 #define SPIS_COUNT 1
179 
180 #define SPIS0_EASYDMA_MAXCNT_SIZE 16
181 
182 /* Two Wire Interface Master with DMA */
183 #define TWIM_PRESENT
184 #define TWIM_COUNT 1
185 
186 #define TWIM0_EASYDMA_MAXCNT_SIZE 16
187 
188 /* Two Wire Interface Slave with DMA */
189 #define TWIS_PRESENT
190 #define TWIS_COUNT 1
191 
192 #define TWIS0_EASYDMA_MAXCNT_SIZE 16
193 
194 /* GPIO Tasks and Events */
195 #define GPIOTE_PRESENT
196 #define GPIOTE_COUNT 1
197 
198 #define GPIOTE_CH_NUM 8
199 
200 #define GPIOTE_FEATURE_SET_PRESENT
201 #define GPIOTE_FEATURE_CLR_PRESENT
202 
203 /* Software Interrupts */
204 #define SWI_PRESENT
205 #define SWI_COUNT 4
206 
207 /* Mutex*/
208 #define MUTEX_PRESENT
209 #define MUTEX_COUNT 1
210 
211 #endif      // _NRF5340_NETWORK_PERIPHERALS_H
212