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