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 _NRF52810_PERIPHERALS_H 36 #define _NRF52810_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 82 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos4dBm 83 84 /* Accelerated Address Resolver */ 85 #define AAR_PRESENT 86 #define AAR_COUNT 1 87 88 #define AAR_MAX_IRK_NUM 16 89 90 /* AES Electronic CodeBook mode encryption */ 91 #define ECB_PRESENT 92 #define ECB_COUNT 1 93 94 /* AES CCM mode encryption */ 95 #define CCM_PRESENT 96 #define CCM_COUNT 1 97 98 /* Peripheral to Peripheral Interconnect */ 99 #define PPI_PRESENT 100 #define PPI_COUNT 1 101 102 #define PPI_CH_NUM 20 103 #define PPI_FIXED_CH_NUM 12 104 #define PPI_GROUP_NUM 6 105 #define PPI_FEATURE_FORKS_PRESENT 106 107 /* Event Generator Unit */ 108 #define EGU_PRESENT 109 #define EGU_COUNT 2 110 111 #define EGU0_CH_NUM 16 112 #define EGU1_CH_NUM 16 113 114 /* Timer/Counter */ 115 #define TIMER_PRESENT 116 #define TIMER_COUNT 3 117 118 #define TIMER0_MAX_SIZE 32 119 #define TIMER1_MAX_SIZE 32 120 #define TIMER2_MAX_SIZE 32 121 122 #define TIMER0_CC_NUM 4 123 #define TIMER1_CC_NUM 4 124 #define TIMER2_CC_NUM 4 125 126 /* Real Time Counter */ 127 #define RTC_PRESENT 128 #define RTC_COUNT 2 129 130 #define RTC0_CC_NUM 3 131 #define RTC1_CC_NUM 4 132 133 /* RNG */ 134 #define RNG_PRESENT 135 #define RNG_COUNT 1 136 137 /* Watchdog Timer */ 138 #define WDT_PRESENT 139 #define WDT_COUNT 1 140 141 /* Temperature Sensor */ 142 #define TEMP_PRESENT 143 #define TEMP_COUNT 1 144 145 /* Serial Peripheral Interface Master */ 146 #define SPI_PRESENT 147 #define SPI_COUNT 1 148 149 /* Serial Peripheral Interface Master with DMA */ 150 #define SPIM_PRESENT 151 #define SPIM_COUNT 1 152 153 #define SPIM0_MAX_DATARATE 8 154 155 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0 156 157 #define SPIM0_FEATURE_DCX_PRESENT 0 158 159 #define SPIM0_FEATURE_RXDELAY_PRESENT 0 160 161 #define SPIM0_EASYDMA_MAXCNT_SIZE 10 162 163 /* Serial Peripheral Interface Slave with DMA*/ 164 #define SPIS_PRESENT 165 #define SPIS_COUNT 1 166 167 #define SPIS0_EASYDMA_MAXCNT_SIZE 10 168 169 /* Two Wire Interface Master */ 170 #define TWI_PRESENT 171 #define TWI_COUNT 1 172 173 /* Two Wire Interface Master with DMA */ 174 #define TWIM_PRESENT 175 #define TWIM_COUNT 1 176 177 #define TWIM0_EASYDMA_MAXCNT_SIZE 10 178 179 /* Two Wire Interface Slave with DMA */ 180 #define TWIS_PRESENT 181 #define TWIS_COUNT 1 182 183 #define TWIS0_EASYDMA_MAXCNT_SIZE 10 184 185 /* Universal Asynchronous Receiver-Transmitter */ 186 #define UART_PRESENT 187 #define UART_COUNT 1 188 189 /* Universal Asynchronous Receiver-Transmitter with DMA */ 190 #define UARTE_PRESENT 191 #define UARTE_COUNT 1 192 193 #define UARTE0_EASYDMA_MAXCNT_SIZE 10 194 195 /* Quadrature Decoder */ 196 #define QDEC_PRESENT 197 #define QDEC_COUNT 1 198 199 /* Successive Approximation Analog to Digital Converter */ 200 #define SAADC_PRESENT 201 #define SAADC_COUNT 1 202 203 #define SAADC_EASYDMA_MAXCNT_SIZE 15 204 205 #define SAADC_CH_NUM 8 206 207 /* GPIO Tasks and Events */ 208 #define GPIOTE_PRESENT 209 #define GPIOTE_COUNT 1 210 211 #define GPIOTE_CH_NUM 8 212 213 #define GPIOTE_FEATURE_SET_PRESENT 214 #define GPIOTE_FEATURE_CLR_PRESENT 215 216 /* Comparator */ 217 #define COMP_PRESENT 218 #define COMP_COUNT 1 219 220 /* Pulse Width Modulator */ 221 #define PWM_PRESENT 222 #define PWM_COUNT 1 223 224 #define PWM0_CH_NUM 4 225 226 #define PWM0_EASYDMA_MAXCNT_SIZE 15 227 228 /* Pulse Density Modulator */ 229 #define PDM_PRESENT 230 #define PDM_COUNT 1 231 232 #define PDM_EASYDMA_MAXCNT_SIZE 15 233 234 235 #endif // _NRF52810_PERIPHERALS_H 236