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