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 _NRF52805_PERIPHERALS_H
34 #define _NRF52805_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 10
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 #define SPIM1_MAX_DATARATE  8
153 
154 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT  0
155 #define SPIM1_FEATURE_HARDWARE_CSN_PRESENT  0
156 
157 #define SPIM0_FEATURE_DCX_PRESENT  0
158 #define SPIM1_FEATURE_DCX_PRESENT  0
159 
160 #define SPIM0_FEATURE_RXDELAY_PRESENT  0
161 #define SPIM1_FEATURE_RXDELAY_PRESENT  0
162 
163 #define SPIM0_EASYDMA_MAXCNT_SIZE 14
164 #define SPIM1_EASYDMA_MAXCNT_SIZE 14
165 
166 /* Serial Peripheral Interface Slave with DMA*/
167 #define SPIS_PRESENT
168 #define SPIS_COUNT 1
169 
170 #define SPIS0_EASYDMA_MAXCNT_SIZE 14
171 #define SPIS1_EASYDMA_MAXCNT_SIZE 14
172 
173 /* Two Wire Interface Master */
174 #define TWI_PRESENT
175 #define TWI_COUNT 1
176 
177 /* Two Wire Interface Master with DMA */
178 #define TWIM_PRESENT
179 #define TWIM_COUNT 1
180 
181 #define TWIM0_EASYDMA_MAXCNT_SIZE 14
182 
183 /* Two Wire Interface Slave with DMA */
184 #define TWIS_PRESENT
185 #define TWIS_COUNT 1
186 
187 #define TWIS0_EASYDMA_MAXCNT_SIZE 14
188 
189 /* Universal Asynchronous Receiver-Transmitter */
190 #define UART_PRESENT
191 #define UART_COUNT 1
192 
193 /* Universal Asynchronous Receiver-Transmitter with DMA */
194 #define UARTE_PRESENT
195 #define UARTE_COUNT 1
196 
197 #define UARTE0_EASYDMA_MAXCNT_SIZE 14
198 
199 /* Quadrature Decoder */
200 #define QDEC_PRESENT
201 #define QDEC_COUNT 1
202 
203 /* Successive Approximation Analog to Digital Converter */
204 #define SAADC_PRESENT
205 #define SAADC_COUNT 1
206 
207 #define SAADC_EASYDMA_MAXCNT_SIZE 15
208 
209 #define SAADC_CH_NUM 8
210 
211 /* GPIO Tasks and Events */
212 #define GPIOTE_PRESENT
213 #define GPIOTE_COUNT 1
214 
215 #define GPIOTE_CH_NUM 8
216 
217 #define GPIOTE_FEATURE_SET_PRESENT
218 #define GPIOTE_FEATURE_CLR_PRESENT
219 
220 
221 #endif      // _NRF52805_PERIPHERALS_H
222