summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-24 10:55:52 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-24 10:55:52 -0600
commitffee5206c96f0f5bcaf4d8fc180ddb5f051f22f3 (patch)
tree28095a0d1181ff0d14b22de6465eb7d68f406ad7
parent893072fd0562c8077bb9f70c0d5a1eaa3e756831 (diff)
downloadpx4-nuttx-ffee5206c96f0f5bcaf4d8fc180ddb5f051f22f3.tar.gz
px4-nuttx-ffee5206c96f0f5bcaf4d8fc180ddb5f051f22f3.tar.bz2
px4-nuttx-ffee5206c96f0f5bcaf4d8fc180ddb5f051f22f3.zip
Another fix to SAM3/4 GPIO IRQ issue
-rw-r--r--nuttx/arch/arm/src/sam34/sam_gpioirq.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/nuttx/arch/arm/src/sam34/sam_gpioirq.c b/nuttx/arch/arm/src/sam34/sam_gpioirq.c
index 00648f929..76237160f 100644
--- a/nuttx/arch/arm/src/sam34/sam_gpioirq.c
+++ b/nuttx/arch/arm/src/sam34/sam_gpioirq.c
@@ -55,9 +55,19 @@
#include "sam_gpio.h"
#include "sam_periphclks.h"
-#include "chip/sam3u_pio.h"
#include "chip/sam_pmc.h"
+#if defined(CONFIG_ARCH_CHIP_SAM3U) || defined(CONFIG_ARCH_CHIP_SAM3X) || \
+ defined(CONFIG_ARCH_CHIP_SAM3A)
+# include "chip/sam3u_pio.h"
+#elif defined(CONFIG_ARCH_CHIP_SAM4E)
+# include "chip/sam4e_pio.h"
+#elif defined(CONFIG_ARCH_CHIP_SAM4CM) || defined(CONFIG_ARCH_CHIP_SAM4S)
+# include "chip/sam4s_pio.h"
+#else
+# error Unrecognized SAM architecture
+#endif
+
#ifdef CONFIG_SAM34_GPIO_IRQ
/****************************************************************************