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