From 21de300584601f990c440757197097746fa40034 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 7 Jul 2011 16:20:35 +0000 Subject: 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 --- nuttx/configs/sam3u-ek/src/up_buttons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nuttx/configs/sam3u-ek/src') diff --git a/nuttx/configs/sam3u-ek/src/up_buttons.c b/nuttx/configs/sam3u-ek/src/up_buttons.c index 211e1b300..f56a685f8 100755 --- a/nuttx/configs/sam3u-ek/src/up_buttons.c +++ b/nuttx/configs/sam3u-ek/src/up_buttons.c @@ -74,7 +74,7 @@ static xcpt_t g_irqbutton2; * ****************************************************************************/ -#ifdef CONFIG_GPIOA_IRQ +#if defined(CONFIG_GPIOA_IRQ) && defined(CONFIG_ARCH_IRQBUTTONS) static xcpt_t up_irqbuttonx(int irq, xcpt_t irqhandler, xcpt_t *store) { xcpt_t oldhandler; @@ -164,7 +164,7 @@ uint8_t up_buttons(void) * ****************************************************************************/ -#ifdef CONFIG_GPIOA_IRQ +#if defined(CONFIG_GPIOA_IRQ) && defined(CONFIG_ARCH_IRQBUTTONS) xcpt_t up_irqbutton(int id, xcpt_t irqhandler) { if (id == BUTTON1) -- cgit v1.2.3