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 _NRF52810_PERIPHERALS_H
34 #define _NRF52810_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 #define POWER_FEATURE_RAM_REGISTERS_PRESENT
46 #define POWER_FEATURE_RAM_REGISTERS_COUNT       3
47 
48 /* Non-Volatile Memory Controller */
49 #define NVMC_PRESENT
50 #define NVMC_COUNT 1
51 
52 /* Systick timer */
53 #define SYSTICK_PRESENT
54 #define SYSTICK_COUNT 1
55 
56 /* Software Interrupts */
57 #define SWI_PRESENT
58 #define SWI_COUNT 6
59 
60 /* GPIO */
61 #define GPIO_PRESENT
62 #define GPIO_COUNT 1
63 
64 #define P0_PIN_NUM 32
65 
66 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
67 
68 /* MPU and BPROT */
69 #define BPROT_PRESENT
70 
71 #define BPROT_REGIONS_SIZE 4096
72 #define BPROT_REGIONS_NUM 48
73 
74 /* Radio */
75 #define RADIO_PRESENT
76 #define RADIO_COUNT 1
77 
78 #define RADIO_EASYDMA_MAXCNT_SIZE 8
79 
80 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm
81 
82 /* Accelerated Address Resolver */
83 #define AAR_PRESENT
84 #define AAR_COUNT 1
85 
86 #define AAR_MAX_IRK_NUM 16
87 
88 /* AES Electronic CodeBook mode encryption */
89 #define ECB_PRESENT
90 #define ECB_COUNT 1
91 
92 /* AES CCM mode encryption */
93 #define CCM_PRESENT
94 #define CCM_COUNT 1
95 
96 /* Peripheral to Peripheral Interconnect */
97 #define PPI_PRESENT
98 #define PPI_COUNT 1
99 
100 #define PPI_CH_NUM 20
101 #define PPI_FIXED_CH_NUM 12
102 #define PPI_GROUP_NUM 6
103 #define PPI_FEATURE_FORKS_PRESENT
104 
105 /* Event Generator Unit */
106 #define EGU_PRESENT
107 #define EGU_COUNT 2
108 
109 #define EGU0_CH_NUM 16
110 #define EGU1_CH_NUM 16
111 
112 /* Timer/Counter */
113 #define TIMER_PRESENT
114 #define TIMER_COUNT 3
115 
116 #define TIMER0_MAX_SIZE 32
117 #define TIMER1_MAX_SIZE 32
118 #define TIMER2_MAX_SIZE 32
119 
120 #define TIMER0_CC_NUM 4
121 #define TIMER1_CC_NUM 4
122 #define TIMER2_CC_NUM 4
123 
124 /* Real Time Counter */
125 #define RTC_PRESENT
126 #define RTC_COUNT 2
127 
128 #define RTC0_CC_NUM 3
129 #define RTC1_CC_NUM 4
130 
131 /* RNG */
132 #define RNG_PRESENT
133 #define RNG_COUNT 1
134 
135 /* Watchdog Timer */
136 #define WDT_PRESENT
137 #define WDT_COUNT 1
138 
139 /* Temperature Sensor */
140 #define TEMP_PRESENT
141 #define TEMP_COUNT 1
142 
143 /* Serial Peripheral Interface Master */
144 #define SPI_PRESENT
145 #define SPI_COUNT 1
146 
147 /* Serial Peripheral Interface Master with DMA */
148 #define SPIM_PRESENT
149 #define SPIM_COUNT 1
150 
151 #define SPIM0_MAX_DATARATE  8
152 
153 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT  0
154 
155 #define SPIM0_FEATURE_DCX_PRESENT  0
156 
157 #define SPIM0_FEATURE_RXDELAY_PRESENT  0
158 
159 #define SPIM0_EASYDMA_MAXCNT_SIZE 10
160 
161 /* Serial Peripheral Interface Slave with DMA*/
162 #define SPIS_PRESENT
163 #define SPIS_COUNT 1
164 
165 #define SPIS0_EASYDMA_MAXCNT_SIZE 10
166 
167 /* Two Wire Interface Master */
168 #define TWI_PRESENT
169 #define TWI_COUNT 1
170 
171 /* Two Wire Interface Master with DMA */
172 #define TWIM_PRESENT
173 #define TWIM_COUNT 1
174 
175 #define TWIM0_EASYDMA_MAXCNT_SIZE 10
176 
177 /* Two Wire Interface Slave with DMA */
178 #define TWIS_PRESENT
179 #define TWIS_COUNT 1
180 
181 #define TWIS0_EASYDMA_MAXCNT_SIZE 10
182 
183 /* Universal Asynchronous Receiver-Transmitter */
184 #define UART_PRESENT
185 #define UART_COUNT 1
186 
187 /* Universal Asynchronous Receiver-Transmitter with DMA */
188 #define UARTE_PRESENT
189 #define UARTE_COUNT 1
190 
191 #define UARTE0_EASYDMA_MAXCNT_SIZE 10
192 
193 /* Quadrature Decoder */
194 #define QDEC_PRESENT
195 #define QDEC_COUNT 1
196 
197 /* Successive Approximation Analog to Digital Converter */
198 #define SAADC_PRESENT
199 #define SAADC_COUNT 1
200 
201 #define SAADC_EASYDMA_MAXCNT_SIZE 15
202 
203 #define SAADC_CH_NUM 8
204 
205 /* GPIO Tasks and Events */
206 #define GPIOTE_PRESENT
207 #define GPIOTE_COUNT 1
208 
209 #define GPIOTE_CH_NUM 8
210 
211 #define GPIOTE_FEATURE_SET_PRESENT
212 #define GPIOTE_FEATURE_CLR_PRESENT
213 
214 /* Comparator */
215 #define COMP_PRESENT
216 #define COMP_COUNT 1
217 
218 /* Pulse Width Modulator */
219 #define PWM_PRESENT
220 #define PWM_COUNT 1
221 
222 #define PWM0_CH_NUM 4
223 
224 #define PWM0_EASYDMA_MAXCNT_SIZE 15
225 
226 /* Pulse Density Modulator */
227 #define PDM_PRESENT
228 #define PDM_COUNT 1
229 
230 #define PDM_EASYDMA_MAXCNT_SIZE 15
231 
232 
233 #endif      // _NRF52810_PERIPHERALS_H
234