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 
34 /* This file is deprecated */
35 #ifndef _NRF51822_PERIPHERALS_H
36 #define _NRF51822_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 #define POWER_FEATURE_RAMON_REGISTERS_PRESENT
48 
49 /* Non-Volatile Memory Controller */
50 #define NVMC_PRESENT
51 #define NVMC_COUNT 1
52 
53 /* Software Interrupts */
54 #define SWI_PRESENT
55 #define SWI_COUNT 6
56 
57 /* GPIO */
58 #define GPIO_PRESENT
59 #define GPIO_COUNT 1
60 
61 #define P0_PIN_NUM 32
62 
63 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
64 
65 /* MPU and BPROT */
66 #define BPROT_PRESENT
67 
68 #define BPROT_REGIONS_SIZE 4096
69 #define BPROT_REGIONS_NUM 64
70 
71 /* Radio */
72 #define RADIO_PRESENT
73 #define RADIO_COUNT 1
74 
75 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm
76 
77 /* Accelerated Address Resolver */
78 #define AAR_PRESENT
79 #define AAR_COUNT 1
80 
81 #define AAR_MAX_IRK_NUM 8
82 
83 /* AES Electronic CodeBook mode encryption */
84 #define ECB_PRESENT
85 #define ECB_COUNT 1
86 
87 /* AES CCM mode encryption */
88 #define CCM_PRESENT
89 #define CCM_COUNT 1
90 
91 /* Peripheral to Peripheral Interconnect */
92 #define PPI_PRESENT
93 #define PPI_COUNT 1
94 
95 #define PPI_CH_NUM 16
96 #define PPI_FIXED_CH_NUM 12
97 #define PPI_GROUP_NUM 4
98 
99 /* Timer/Counter */
100 #define TIMER_PRESENT
101 #define TIMER_COUNT 3
102 
103 #define TIMER0_MAX_SIZE 32
104 #define TIMER1_MAX_SIZE 16
105 #define TIMER2_MAX_SIZE 16
106 
107 #define TIMER0_CC_NUM 4
108 #define TIMER1_CC_NUM 4
109 #define TIMER2_CC_NUM 4
110 
111 /* Real Time Counter */
112 #define RTC_PRESENT
113 #define RTC_COUNT 2
114 
115 #define RTC0_CC_NUM 3
116 #define RTC1_CC_NUM 4
117 
118 /* RNG */
119 #define RNG_PRESENT
120 #define RNG_COUNT 1
121 
122 /* Watchdog Timer */
123 #define WDT_PRESENT
124 #define WDT_COUNT 1
125 
126 /* Temperature Sensor */
127 #define TEMP_PRESENT
128 #define TEMP_COUNT 1
129 
130 /* Serial Peripheral Interface Master */
131 #define SPI_PRESENT
132 #define SPI_COUNT 2
133 
134 /* Serial Peripheral Interface Slave with DMA */
135 #define SPIS_PRESENT
136 #define SPIS_COUNT 1
137 
138 #define SPIS1_EASYDMA_MAXCNT_SIZE 8
139 
140 /* Two Wire Interface Master */
141 #define TWI_PRESENT
142 #define TWI_COUNT 2
143 
144 /* Universal Asynchronous Receiver-Transmitter */
145 #define UART_PRESENT
146 #define UART_COUNT 1
147 
148 /* Quadrature Decoder */
149 #define QDEC_PRESENT
150 #define QDEC_COUNT 1
151 
152 /* Analog to Digital Converter */
153 #define ADC_PRESENT
154 #define ADC_COUNT 1
155 
156 /* GPIO Tasks and Events */
157 #define GPIOTE_PRESENT
158 #define GPIOTE_COUNT 1
159 
160 #define GPIOTE_CH_NUM 4
161 
162 /* Low Power Comparator */
163 #define LPCOMP_PRESENT
164 #define LPCOMP_COUNT 1
165 
166 #define LPCOMP_REFSEL_RESOLUTION 8
167 
168 
169 #endif      // _NRF51822_PERIPHERALS_H
170