/************************************************************************************ * arch/arm/include/tiva/irq.h * * Copyright (C) 2009-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * 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 NuttX 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 THE * COPYRIGHT OWNER 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 __ARCH_ARM_INCLUDE_TIVA_IRQ_H #define __ARCH_ARM_INCLUDE_TIVA_IRQ_H /************************************************************************************ * Included Files ************************************************************************************/ #include #include /************************************************************************************ * Pre-processor Definitions ************************************************************************************/ /* Mark GPIO interrupts as disabled for non-existent GPIO ports. */ #if TIVA_NPORTS < 1 # undef CONFIG_TIVA_GPIOA_IRQS #endif #if TIVA_NPORTS < 2 # undef CONFIG_TIVA_GPIOB_IRQS #endif #if TIVA_NPORTS < 3 # undef CONFIG_TIVA_GPIOC_IRQS #endif #if TIVA_NPORTS < 4 # undef CONFIG_TIVA_GPIOD_IRQS #endif #if TIVA_NPORTS < 5 # undef CONFIG_TIVA_GPIOE_IRQS #endif #if TIVA_NPORTS < 6 # undef CONFIG_TIVA_GPIOF_IRQS #endif #if TIVA_NPORTS < 7 # undef CONFIG_TIVA_GPIOG_IRQS #endif #if TIVA_NPORTS < 8 # undef CONFIG_TIVA_GPIOH_IRQS #endif #if TIVA_NPORTS < 9 # undef CONFIG_TIVA_GPIOJ_IRQS #endif #if TIVA_NPORTS < 10 # undef CONFIG_TIVA_GPIOK_IRQS #endif #if TIVA_NPORTS < 11 # undef CONFIG_TIVA_GPIOL_IRQS #endif #if TIVA_NPORTS < 12 # undef CONFIG_TIVA_GPIOM_IRQS #endif #if TIVA_NPORTS < 13 # undef CONFIG_TIVA_GPION_IRQS #endif #if TIVA_NPORTS < 14 # undef CONFIG_TIVA_GPIOP_IRQS #endif #if TIVA_NPORTS < 15 # undef CONFIG_TIVA_GPIOQ_IRQS #endif #if TIVA_NPORTS < 16 # undef CONFIG_TIVA_GPIOR_IRQS #endif #if TIVA_NPORTS < 17 # undef CONFIG_TIVA_GPIOS_IRQS #endif #if TIVA_NPORTS < 18 # undef CONFIG_TIVA_GPIOT_IRQS #endif /* Processor Exceptions (vectors 0-15) */ #define TIVA_IRQ_RESERVED (0) /* Reserved vector (only used with CONFIG_DEBUG_FEATURES) */ /* Vector 0: Reset stack pointer value */ /* Vector 1: Reset (not handler as an IRQ) */ #define TIVA_IRQ_NMI (2) /* Vector 2: Non-Maskable Interrupt (NMI) */ #define TIVA_IRQ_HARDFAULT (3) /* Vector 3: Hard fault */ #define TIVA_IRQ_MEMFAULT (4) /* Vector 4: Memory management (MPU) */ #define TIVA_IRQ_BUSFAULT (5) /* Vector 5: Bus fault */ #define TIVA_IRQ_USAGEFAULT (6) /* Vector 6: Usage fault */ #define TIVA_IRQ_SVCALL (11) /* Vector 11: SVC call */ #define TIVA_IRQ_DBGMONITOR (12) /* Vector 12: Debug Monitor */ /* Vector 13: Reserved */ #define TIVA_IRQ_PENDSV (14) /* Vector 14: Pendable system service request */ #define TIVA_IRQ_SYSTICK (15) /* Vector 15: System tick */ /* Chip-specific external Interrupts (vectors 16 and above) */ #define TIVA_IRQ_INTERRUPTS (16) /* Vector number of the first external interrupt */ /************************************************************************************ * Included Files ************************************************************************************/ #if defined(CONFIG_ARCH_CHIP_LM3S) # include #elif defined(CONFIG_ARCH_CHIP_LM4F) # include #elif defined(CONFIG_ARCH_CHIP_TM4C) # include #elif defined(CONFIG_ARCH_CHIP_CC13X0) # include #elif defined(CONFIG_ARCH_CHIP_CC13X2) # include #else # error "Unsupported Stellaris IRQ file" #endif /************************************************************************************ * Public Types ************************************************************************************/ /************************************************************************************ * Public Data ************************************************************************************/ /************************************************************************************ * Public Function Prototypes ************************************************************************************/ #endif /* __ARCH_ARM_INCLUDE_TIVA_IRQ_H */