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 _NRF52805_PERIPHERALS_H 36 #define _NRF52805_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 10 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 #define SPIM1_MAX_DATARATE 8 155 156 #define SPIM0_FEATURE_HARDWARE_CSN_PRESENT 0 157 #define SPIM1_FEATURE_HARDWARE_CSN_PRESENT 0 158 159 #define SPIM0_FEATURE_DCX_PRESENT 0 160 #define SPIM1_FEATURE_DCX_PRESENT 0 161 162 #define SPIM0_FEATURE_RXDELAY_PRESENT 0 163 #define SPIM1_FEATURE_RXDELAY_PRESENT 0 164 165 #define SPIM0_EASYDMA_MAXCNT_SIZE 14 166 #define SPIM1_EASYDMA_MAXCNT_SIZE 14 167 168 /* Serial Peripheral Interface Slave with DMA*/ 169 #define SPIS_PRESENT 170 #define SPIS_COUNT 1 171 172 #define SPIS0_EASYDMA_MAXCNT_SIZE 14 173 #define SPIS1_EASYDMA_MAXCNT_SIZE 14 174 175 /* Two Wire Interface Master */ 176 #define TWI_PRESENT 177 #define TWI_COUNT 1 178 179 /* Two Wire Interface Master with DMA */ 180 #define TWIM_PRESENT 181 #define TWIM_COUNT 1 182 183 #define TWIM0_EASYDMA_MAXCNT_SIZE 14 184 185 /* Two Wire Interface Slave with DMA */ 186 #define TWIS_PRESENT 187 #define TWIS_COUNT 1 188 189 #define TWIS0_EASYDMA_MAXCNT_SIZE 14 190 191 /* Universal Asynchronous Receiver-Transmitter */ 192 #define UART_PRESENT 193 #define UART_COUNT 1 194 195 /* Universal Asynchronous Receiver-Transmitter with DMA */ 196 #define UARTE_PRESENT 197 #define UARTE_COUNT 1 198 199 #define UARTE0_EASYDMA_MAXCNT_SIZE 14 200 201 /* Quadrature Decoder */ 202 #define QDEC_PRESENT 203 #define QDEC_COUNT 1 204 205 /* Successive Approximation Analog to Digital Converter */ 206 #define SAADC_PRESENT 207 #define SAADC_COUNT 1 208 209 #define SAADC_EASYDMA_MAXCNT_SIZE 15 210 211 #define SAADC_CH_NUM 8 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 223 #endif // _NRF52805_PERIPHERALS_H 224