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