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