SAMV71-XULT: Fix a warning with button support is disabled

This commit is contained in:
Gregory Nutt 2015-06-03 08:36:19 -06:00
parent 6030cf5817
commit 7d971aa4a2

View File

@ -63,12 +63,13 @@
* Private Data
****************************************************************************/
#ifdef CONFIG_ARCH_IRQBUTTONS
#define HAVE_IRQBUTTONS 1
#if !defined(CONFIG_SAMV7_GPIO1_IRQ) && !defined(CONFIG_SAMV7_GPIOB_IRQ)
#if !defined(CONFIG_SAMV7_GPIOA_IRQ) && !defined(CONFIG_SAMV7_GPIOB_IRQ)
# undef HAVE_IRQBUTTONS
#endif
#ifdef CONFIG_ARCH_IRQBUTTONS
#ifdef CONFIG_SAMV7_GPIOA_IRQ
static xcpt_t g_irq_sw0;
#endif