/* * Note: * This file content is a partial copy-paste from nrfx's nrf5_common.h * and of nrf51_to_nrf52.h */ /* * Copyright (c) 2016 Linaro Ltd. * Copyright (c) 2016 Nordic Semiconductor ASA * * SPDX-License-Identifier: Apache-2.0 */ #ifndef _NRF5_SOC_COMMON_H_ #define _NRF5_SOC_COMMON_H_ /** * @file Common definitions for NRF51/NRF52 family processors. * * The nRF51 IRQs can all be represented by the common definitions. * * Based on Nordic MDK included header files: nrf51.h and nrf51_to_nrf52.h */ #define NRF5_IRQ_POWER_CLOCK_IRQn 0 #define NRF5_IRQ_RADIO_IRQn 1 #define NRF5_IRQ_UART0_IRQn 2 #define NRF5_IRQ_SPI0_TWI0_IRQn 3 #define NRF5_IRQ_SPI1_TWI1_IRQn 4 #define NRF5_IRQ_GPIOTE_IRQn 6 #define NRF5_IRQ_ADC_IRQn 7 #define NRF5_IRQ_TIMER0_IRQn 8 #define NRF5_IRQ_TIMER1_IRQn 9 #define NRF5_IRQ_TIMER2_IRQn 10 #define NRF5_IRQ_RTC0_IRQn 11 #define NRF5_IRQ_TEMP_IRQn 12 #define NRF5_IRQ_RNG_IRQn 13 #define NRF5_IRQ_ECB_IRQn 14 #define NRF5_IRQ_CCM_AAR_IRQn 15 #define NRF5_IRQ_WDT_IRQn 16 #define NRF5_IRQ_RTC1_IRQn 17 #define NRF5_IRQ_QDEC_IRQn 18 #define NRF5_IRQ_LPCOMP_IRQn 19 #define NRF5_IRQ_SWI0_IRQn 20 #define NRF5_IRQ_SWI1_IRQn 21 #define NRF5_IRQ_SWI2_IRQn 22 #define NRF5_IRQ_SWI3_IRQn 23 #define NRF5_IRQ_SWI4_IRQn 24 #define NRF5_IRQ_SWI5_IRQn 25 /** * @file Interrupt numbers for NRF52 family processors. * * Based on Nordic MDK included header file: nrf52.h */ #define NRF52_IRQ_NFCT_IRQn 5 #define NRF52_IRQ_TIMER3_IRQn 26 #define NRF52_IRQ_TIMER4_IRQn 27 #define NRF52_IRQ_PWM0_IRQn 28 #define NRF52_IRQ_PDM_IRQn 29 #define NRF52_IRQ_MWU_IRQn 32 #define NRF52_IRQ_PWM1_IRQn 33 #define NRF52_IRQ_PWM2_IRQn 34 #define NRF52_IRQ_SPIM2_SPIS2_SPI2_IRQn 35 #define NRF52_IRQ_RTC2_IRQn 36 #define NRF52_IRQ_I2S_IRQn 37 #define NRF52_IRQ_FPU_IRQn 38 #endif /* _NRF5_SOC_COMMON_H_ */ /* Copyright (c) 2010 - 2018, Nordic Semiconductor ASA All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of Nordic Semiconductor ASA nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef NRF51_TO_NRF52_H #define NRF51_TO_NRF52_H #define SWI4_IRQn SWI4_EGU4_IRQn #define SWI5_IRQn SWI5_EGU5_IRQn #endif /* NRF51_TO_NRF52_H */