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