1 /*
2 
3 Copyright (c) 2010 - 2024, Nordic Semiconductor ASA All rights reserved.
4 
5 SPDX-License-Identifier: BSD-3-Clause
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are met:
9 
10 1. Redistributions of source code must retain the above copyright notice, this
11    list of conditions and the following disclaimer.
12 
13 2. Redistributions in binary form must reproduce the above copyright
14    notice, this list of conditions and the following disclaimer in the
15    documentation and/or other materials provided with the distribution.
16 
17 3. Neither the name of Nordic Semiconductor ASA nor the names of its
18    contributors may be used to endorse or promote products derived from this
19    software without specific prior written permission.
20 
21 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE
24 ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
25 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 POSSIBILITY OF SUCH DAMAGE.
32 
33 */
34 
35 #ifndef _NRF51_PERIPHERALS_H
36 #define _NRF51_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 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL
63 
64 /* MPU and BPROT */
65 #define BPROT_PRESENT
66 
67 #define BPROT_REGIONS_SIZE 4096
68 #define BPROT_REGIONS_NUM 64
69 
70 /* Radio */
71 #define RADIO_PRESENT
72 #define RADIO_COUNT 1
73 
74 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm
75 
76 /* Accelerated Address Resolver */
77 #define AAR_PRESENT
78 #define AAR_COUNT 1
79 
80 #define AAR_MAX_IRK_NUM 8
81 
82 /* AES Electronic CodeBook mode encryption */
83 #define ECB_PRESENT
84 #define ECB_COUNT 1
85 
86 /* AES CCM mode encryption */
87 #define CCM_PRESENT
88 #define CCM_COUNT 1
89 
90 /* Peripheral to Peripheral Interconnect */
91 #define PPI_PRESENT
92 #define PPI_COUNT 1
93 
94 #define PPI_CH_NUM 16
95 #define PPI_FIXED_CH_NUM 12
96 #define PPI_GROUP_NUM 4
97 
98 /* Timer/Counter */
99 #define TIMER_PRESENT
100 #define TIMER_COUNT 3
101 
102 #define TIMER0_MAX_SIZE 32
103 #define TIMER1_MAX_SIZE 16
104 #define TIMER2_MAX_SIZE 16
105 
106 #define TIMER0_CC_NUM 4
107 #define TIMER1_CC_NUM 4
108 #define TIMER2_CC_NUM 4
109 
110 /* Real Time Counter */
111 #define RTC_PRESENT
112 #define RTC_COUNT 2
113 
114 #define RTC0_CC_NUM 3
115 #define RTC1_CC_NUM 4
116 
117 /* RNG */
118 #define RNG_PRESENT
119 #define RNG_COUNT 1
120 
121 /* Watchdog Timer */
122 #define WDT_PRESENT
123 #define WDT_COUNT 1
124 
125 /* Temperature Sensor */
126 #define TEMP_PRESENT
127 #define TEMP_COUNT 1
128 
129 /* Serial Peripheral Interface Master */
130 #define SPI_PRESENT
131 #define SPI_COUNT 2
132 
133 /* Serial Peripheral Interface Slave with DMA */
134 #define SPIS_PRESENT
135 #define SPIS_COUNT 1
136 
137 #define SPIS1_EASYDMA_MAXCNT_SIZE 8
138 
139 /* Two Wire Interface Master */
140 #define TWI_PRESENT
141 #define TWI_COUNT 2
142 
143 /* Universal Asynchronous Receiver-Transmitter */
144 #define UART_PRESENT
145 #define UART_COUNT 1
146 
147 /* Quadrature Decoder */
148 #define QDEC_PRESENT
149 #define QDEC_COUNT 1
150 
151 /* Analog to Digital Converter */
152 #define ADC_PRESENT
153 #define ADC_COUNT 1
154 
155 /* GPIO Tasks and Events */
156 #define GPIOTE_PRESENT
157 #define GPIOTE_COUNT 1
158 
159 #define GPIOTE_CH_NUM 4
160 
161 /* Low Power Comparator */
162 #define LPCOMP_PRESENT
163 #define LPCOMP_COUNT 1
164 
165 #define LPCOMP_REFSEL_RESOLUTION 8
166 
167 
168 #endif      // _NRF51_PERIPHERALS_H
169