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 _NRF52820_PERIPHERALS_H 36 #define _NRF52820_PERIPHERALS_H 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_RAM_REGISTERS_PRESENT 47 #define POWER_FEATURE_RAM_REGISTERS_COUNT 4 48 49 #define POWER_FEATURE_VDDH_PRESENT 50 51 /* Non-Volatile Memory Controller */ 52 #define NVMC_PRESENT 53 #define NVMC_COUNT 1 54 55 /* Systick timer */ 56 #define SYSTICK_PRESENT 57 #define SYSTICK_COUNT 1 58 59 /* Software Interrupts */ 60 #define SWI_PRESENT 61 #define SWI_COUNT 6 62 63 /* GPIO */ 64 #define GPIO_PRESENT 65 #define GPIO_COUNT 1 66 67 #define P0_PIN_NUM (18) 68 #define P0_FEATURE_PINS_PRESENT (nrf52_errata_230() ? 0xF0168E3Ful : 0x7017C1FFul) 69 70 /* ACL */ 71 #define ACL_PRESENT 72 73 #define ACL_REGIONS_COUNT 8 74 75 /* Radio */ 76 #define RADIO_PRESENT 77 #define RADIO_COUNT 1 78 79 #define RADIO_EASYDMA_MAXCNT_SIZE 14 80 #define RADIO_FEATURE_IEEE_802_15_4_PRESENT 81 82 #define RADIO_TXPOWER_TXPOWER_Max RADIO_TXPOWER_TXPOWER_Pos8dBm 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 6 110 111 #define EGU0_CH_NUM 16 112 #define EGU1_CH_NUM 16 113 #define EGU2_CH_NUM 16 114 #define EGU3_CH_NUM 16 115 #define EGU4_CH_NUM 16 116 #define EGU5_CH_NUM 16 117 118 /* Timer/Counter */ 119 #define TIMER_PRESENT 120 #define TIMER_COUNT 4 121 122 #define TIMER0_MAX_SIZE 32 123 #define TIMER1_MAX_SIZE 32 124 #define TIMER2_MAX_SIZE 32 125 #define TIMER3_MAX_SIZE 32 126 127 #define TIMER0_CC_NUM 4 128 #define TIMER1_CC_NUM 4 129 #define TIMER2_CC_NUM 4 130 #define TIMER3_CC_NUM 6 131 132 /* Real Time Counter */ 133 #define RTC_PRESENT 134 #define RTC_COUNT 2 135 136 #define RTC0_CC_NUM 3 137 #define RTC1_CC_NUM 4 138 139 /* RNG */ 140 #define RNG_PRESENT 141 #define RNG_COUNT 1 142 143 /* Watchdog Timer */ 144 #define WDT_PRESENT 145 #define WDT_COUNT 1 146 147 /* Temperature Sensor */ 148 #define TEMP_PRESENT 149 #define TEMP_COUNT 1 150 151 /* Serial Peripheral Interface Master */ 152 #define SPI_PRESENT 153 #define SPI_COUNT 2 154 155 /* Serial Peripheral Interface Master with DMA */ 156 #define SPIM_PRESENT 157 #define SPIM_COUNT 2 158 159 #define SPIM0_MAX_DATARATE 8 160 #define SPIM1_MAX_DATARATE 8 161 162 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0 163 #define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0 164 165 #define SPIM0_FEATURE_DCX_PRESENT 0 166 #define SPIM1_FEATURE_DCX_PRESENT 0 167 168 #define SPIM0_FEATURE_RXDELAY_PRESENT 0 169 #define SPIM1_FEATURE_RXDELAY_PRESENT 0 170 171 #define SPIM0_EASYDMA_MAXCNT_SIZE 15 172 #define SPIM1_EASYDMA_MAXCNT_SIZE 15 173 174 /* Serial Peripheral Interface Slave with DMA*/ 175 #define SPIS_PRESENT 176 #define SPIS_COUNT 2 177 178 #define SPIS0_EASYDMA_MAXCNT_SIZE 15 179 #define SPIS1_EASYDMA_MAXCNT_SIZE 15 180 181 /* Two Wire Interface Master */ 182 #define TWI_PRESENT 183 #define TWI_COUNT 2 184 185 /* Two Wire Interface Master with DMA */ 186 #define TWIM_PRESENT 187 #define TWIM_COUNT 2 188 189 #define TWIM0_EASYDMA_MAXCNT_SIZE 15 190 #define TWIM1_EASYDMA_MAXCNT_SIZE 15 191 192 /* Two Wire Interface Slave with DMA */ 193 #define TWIS_PRESENT 194 #define TWIS_COUNT 2 195 196 #define TWIS0_EASYDMA_MAXCNT_SIZE 15 197 #define TWIS1_EASYDMA_MAXCNT_SIZE 15 198 199 /* Universal Asynchronous Receiver-Transmitter */ 200 #define UART_PRESENT 201 #define UART_COUNT 1 202 203 /* Universal Asynchronous Receiver-Transmitter with DMA */ 204 #define UARTE_PRESENT 205 #define UARTE_COUNT 1 206 207 #define UARTE0_EASYDMA_MAXCNT_SIZE 15 208 209 /* Quadrature Decoder */ 210 #define QDEC_PRESENT 211 #define QDEC_COUNT 1 212 213 /* GPIO Tasks and Events */ 214 #define GPIOTE_PRESENT 215 #define GPIOTE_COUNT 1 216 217 #define GPIOTE_CH_NUM 8 218 219 #define GPIOTE_FEATURE_SET_PRESENT 220 #define GPIOTE_FEATURE_CLR_PRESENT 221 222 /* Comparator */ 223 #define COMP_PRESENT 224 #define COMP_COUNT 1 225 226 227 /* Universal Serial Bus Device */ 228 #define USBD_PRESENT 229 #define USBD_COUNT 1 230 231 #define USBD_EASYDMA_MAXCNT_SIZE 7 232 233 #endif // _NRF52820_PERIPHERALS_H 234