diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-02 00:11:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2013-03-02 00:11:43 +0000 |
commit | 3c17616fb76eca92cc0daaa56b8769e381c69330 (patch) | |
tree | 5372e0943d4ab7fab88c7783e2e2ae27027bfc64 /nuttx/arch/arm/include | |
parent | 94a1310d987561bbda5050864b33c1498b6a0caf (diff) | |
download | px4-nuttx-3c17616fb76eca92cc0daaa56b8769e381c69330.tar.gz px4-nuttx-3c17616fb76eca92cc0daaa56b8769e381c69330.tar.bz2 px4-nuttx-3c17616fb76eca92cc0daaa56b8769e381c69330.zip |
Handle LM4F GPIO -- fewer ports
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5695 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/include')
-rw-r--r-- | nuttx/arch/arm/include/lm/irq.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nuttx/arch/arm/include/lm/irq.h b/nuttx/arch/arm/include/lm/irq.h index 4f72e9824..51e362da5 100644 --- a/nuttx/arch/arm/include/lm/irq.h +++ b/nuttx/arch/arm/include/lm/irq.h @@ -42,10 +42,32 @@ #include <nuttx/config.h> #include <nuttx/irq.h> +#include <arch/lm/chip.h> /************************************************************************************ * Pre-processor Definitions ************************************************************************************/ + /* Mark GPIO interrupts as disabled for non-existent GPIO ports. */ + +#if LM_NPORTS < 1 && !defined(CONFIG_LM_DISABLE_GPIOA_IRQS) +# define CONFIG_LM_DISABLE_GPIOA_IRQS +#elif LM_NPORTS < 2 && !defined(CONFIG_LM_DISABLE_GPIOB_IRQS) +# define CONFIG_LM_DISABLE_GPIOB_IRQS +#elif LM_NPORTS < 3 && !defined(CONFIG_LM_DISABLE_GPIOC_IRQS) +# define CONFIG_LM_DISABLE_GPIOC_IRQS +#elif LM_NPORTS < 4 && !defined(CONFIG_LM_DISABLE_GPIOD_IRQS) +# define CONFIG_LM_DISABLE_GPIOD_IRQS +#elif LM_NPORTS < 5 && !defined(CONFIG_LM_DISABLE_GPIOE_IRQS) +# define CONFIG_LM_DISABLE_GPIOE_IRQS +#elif LM_NPORTS < 6 && !defined(CONFIG_LM_DISABLE_GPIOF_IRQS) +# define CONFIG_LM_DISABLE_GPIOF_IRQS +#elif LM_NPORTS < 7 && !defined(CONFIG_LM_DISABLE_GPIOG_IRQS) +# define CONFIG_LM_DISABLE_GPIOG_IRQS +#elif LM_NPORTS < 8 && !defined(CONFIG_LM_DISABLE_GPIOH_IRQS) +# define CONFIG_LM_DISABLE_GPIOH_IRQS +#elif LM_NPORTS < 9 && !defined(CONFIG_LM_DISABLE_GPIOJ_IRQS) +# define CONFIG_LM_DISABLE_GPIOJ_IRQS +#endif /* Processor Exceptions (vectors 0-15) */ |