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 _NRF52811_PERIPHERALS_H 36 #define _NRF52811_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_RAM_REGISTERS_PRESENT 48 #define POWER_FEATURE_RAM_REGISTERS_COUNT 3 49 50 /* Non-Volatile Memory Controller */ 51 #define NVMC_PRESENT 52 #define NVMC_COUNT 1 53 54 /* Systick timer */ 55 #define SYSTICK_PRESENT 56 #define SYSTICK_COUNT 1 57 58 /* Software Interrupts */ 59 #define SWI_PRESENT 60 #define SWI_COUNT 6 61 62 /* GPIO */ 63 #define GPIO_PRESENT 64 #define GPIO_COUNT 1 65 66 #define P0_PIN_NUM 32 67 68 #define P0_FEATURE_PINS_PRESENT 0xFFFFFFFFUL 69 70 /* MPU and BPROT */ 71 #define BPROT_PRESENT 72 73 #define BPROT_REGIONS_SIZE 4096 74 #define BPROT_REGIONS_NUM 48 75 76 /* Radio */ 77 #define RADIO_PRESENT 78 #define RADIO_COUNT 1 79 80 #define RADIO_EASYDMA_MAXCNT_SIZE 8 81 #define RADIO_FEATURE_IEEE_802_15_4_PRESENT 82 83 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm 84 85 /* Accelerated Address Resolver */ 86 #define AAR_PRESENT 87 #define AAR_COUNT 1 88 89 #define AAR_MAX_IRK_NUM 16 90 91 /* AES Electronic CodeBook mode encryption */ 92 #define ECB_PRESENT 93 #define ECB_COUNT 1 94 95 /* AES CCM mode encryption */ 96 #define CCM_PRESENT 97 #define CCM_COUNT 1 98 99 /* Peripheral to Peripheral Interconnect */ 100 #define PPI_PRESENT 101 #define PPI_COUNT 1 102 103 #define PPI_CH_NUM 20 104 #define PPI_FIXED_CH_NUM 12 105 #define PPI_GROUP_NUM 6 106 #define PPI_FEATURE_FORKS_PRESENT 107 108 /* Event Generator Unit */ 109 #define EGU_PRESENT 110 #define EGU_COUNT 2 111 112 #define EGU0_CH_NUM 16 113 #define EGU1_CH_NUM 16 114 115 /* Timer/Counter */ 116 #define TIMER_PRESENT 117 #define TIMER_COUNT 3 118 119 #define TIMER0_MAX_SIZE 32 120 #define TIMER1_MAX_SIZE 32 121 #define TIMER2_MAX_SIZE 32 122 123 #define TIMER0_CC_NUM 4 124 #define TIMER1_CC_NUM 4 125 #define TIMER2_CC_NUM 4 126 127 /* Real Time Counter */ 128 #define RTC_PRESENT 129 #define RTC_COUNT 2 130 131 #define RTC0_CC_NUM 3 132 #define RTC1_CC_NUM 4 133 134 /* RNG */ 135 #define RNG_PRESENT 136 #define RNG_COUNT 1 137 138 /* Watchdog Timer */ 139 #define WDT_PRESENT 140 #define WDT_COUNT 1 141 142 /* Temperature Sensor */ 143 #define TEMP_PRESENT 144 #define TEMP_COUNT 1 145 146 /* Serial Peripheral Interface Master */ 147 #define SPI_PRESENT 148 #define SPI_COUNT 2 149 150 /* Serial Peripheral Interface Master with DMA */ 151 #define SPIM_PRESENT 152 #define SPIM_COUNT 2 153 154 #define SPIM0_MAX_DATARATE 8 155 #define SPIM1_MAX_DATARATE 8 156 157 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0 158 #define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0 159 160 #define SPIM0_FEATURE_DCX_PRESENT 0 161 #define SPIM1_FEATURE_DCX_PRESENT 0 162 163 #define SPIM0_FEATURE_RXDELAY_PRESENT 0 164 #define SPIM1_FEATURE_RXDELAY_PRESENT 0 165 166 #define SPIM0_EASYDMA_MAXCNT_SIZE 14 167 #define SPIM1_EASYDMA_MAXCNT_SIZE 14 168 169 /* Serial Peripheral Interface Slave with DMA*/ 170 #define SPIS_PRESENT 171 #define SPIS_COUNT 2 172 173 #define SPIS0_EASYDMA_MAXCNT_SIZE 14 174 #define SPIS1_EASYDMA_MAXCNT_SIZE 14 175 176 /* Two Wire Interface Master */ 177 #define TWI_PRESENT 178 #define TWI_COUNT 1 179 180 /* Two Wire Interface Master with DMA */ 181 #define TWIM_PRESENT 182 #define TWIM_COUNT 1 183 184 #define TWIM0_EASYDMA_MAXCNT_SIZE 14 185 186 /* Two Wire Interface Slave with DMA */ 187 #define TWIS_PRESENT 188 #define TWIS_COUNT 1 189 190 #define TWIS0_EASYDMA_MAXCNT_SIZE 14 191 192 /* Universal Asynchronous Receiver-Transmitter */ 193 #define UART_PRESENT 194 #define UART_COUNT 1 195 196 /* Universal Asynchronous Receiver-Transmitter with DMA */ 197 #define UARTE_PRESENT 198 #define UARTE_COUNT 1 199 200 #define UARTE0_EASYDMA_MAXCNT_SIZE 14 201 202 /* Quadrature Decoder */ 203 #define QDEC_PRESENT 204 #define QDEC_COUNT 1 205 206 /* Successive Approximation Analog to Digital Converter */ 207 #define SAADC_PRESENT 208 #define SAADC_COUNT 1 209 210 #define SAADC_EASYDMA_MAXCNT_SIZE 15 211 212 #define SAADC_CH_NUM 8 213 214 /* GPIO Tasks and Events */ 215 #define GPIOTE_PRESENT 216 #define GPIOTE_COUNT 1 217 218 #define GPIOTE_CH_NUM 8 219 220 #define GPIOTE_FEATURE_SET_PRESENT 221 #define GPIOTE_FEATURE_CLR_PRESENT 222 223 /* Comparator */ 224 #define COMP_PRESENT 225 #define COMP_COUNT 1 226 227 /* Pulse Width Modulator */ 228 #define PWM_PRESENT 229 #define PWM_COUNT 1 230 231 #define PWM0_CH_NUM 4 232 233 #define PWM0_EASYDMA_MAXCNT_SIZE 15 234 235 /* Pulse Density Modulator */ 236 #define PDM_PRESENT 237 #define PDM_COUNT 1 238 239 #define PDM_EASYDMA_MAXCNT_SIZE 15 240 241 242 #endif // _NRF52811_PERIPHERALS_H 243