summaryrefslogtreecommitdiff
path: root/nuttx/configs/avr32dev1/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-07 16:20:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-07-07 16:20:35 +0000
commit21de300584601f990c440757197097746fa40034 (patch)
treedb07761a3cee55d5c466a67261f0da23d73e8c96 /nuttx/configs/avr32dev1/src
parent6aaedb5fc741627830baa841728c504b62e047a6 (diff)
downloadnuttx-21de300584601f990c440757197097746fa40034.tar.gz
nuttx-21de300584601f990c440757197097746fa40034.tar.bz2
nuttx-21de300584601f990c440757197097746fa40034.zip
Add support for STM3210E-EVAL button interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3750 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/avr32dev1/src')
-rwxr-xr-xnuttx/configs/avr32dev1/src/up_buttons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/configs/avr32dev1/src/up_buttons.c b/nuttx/configs/avr32dev1/src/up_buttons.c
index 9d5a8ebf8..882eb6d86 100755
--- a/nuttx/configs/avr32dev1/src/up_buttons.c
+++ b/nuttx/configs/avr32dev1/src/up_buttons.c
@@ -73,7 +73,7 @@
*
****************************************************************************/
-#if defined(CONFIG_AVR32_GPIOIRQ) && \
+#if defined(CONFIG_AVR32_GPIOIRQ) && defined(CONFIG_ARCH_IRQBUTTONS) && \
(defined(CONFIG_AVR32DEV_BUTTON1_IRQ) || defined(CONFIG_AVR32DEV_BUTTON2_IRQ))
static xcpt_t up_irqbuttonx(int irq, xcpt_t irqhandler)
{
@@ -160,7 +160,7 @@ uint8_t up_buttons(void)
*
****************************************************************************/
-#ifdef CONFIG_AVR32_GPIOIRQ
+#if defined(CONFIG_AVR32_GPIOIRQ) && defined(CONFIG_ARCH_IRQBUTTONS)
xcpt_t up_irqbutton(int id, xcpt_t irqhandler)
{
#ifdef CONFIG_AVR32DEV_BUTTON1_IRQ