mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Fix typos from previous commit to fix button interrupts
This commit is contained in:
@@ -108,7 +108,7 @@ static xcpt_t board_button_irqx(int irq, xcpt_t irqhandler, xcpt_t *store)
|
|||||||
{
|
{
|
||||||
/* Detach and disable the interrupt */
|
/* Detach and disable the interrupt */
|
||||||
|
|
||||||
(void)irq_detach(irq)
|
(void)irq_detach(irq);
|
||||||
sam_gpioirqdisable(irq);
|
sam_gpioirqdisable(irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ static xcpt_t board_button_irqx(int irq, xcpt_t irqhandler, xcpt_t *store)
|
|||||||
{
|
{
|
||||||
/* Detach and disable the interrupt */
|
/* Detach and disable the interrupt */
|
||||||
|
|
||||||
(void)irq_detach(irq)
|
(void)irq_detach(irq);
|
||||||
sam_gpioirqdisable(irq);
|
sam_gpioirqdisable(irq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
|||||||
{
|
{
|
||||||
/* Detach and disable the interrupt */
|
/* Detach and disable the interrupt */
|
||||||
|
|
||||||
(void)irq_detach(IRQ_SW0)
|
(void)irq_detach(IRQ_SW0);
|
||||||
sam_gpioirqdisable(IRQ_SW0);
|
sam_gpioirqdisable(IRQ_SW0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ uint8_t board_buttons(void)
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_GPIOA_IRQ) && defined(CONFIG_ARCH_IRQBUTTONS)
|
#if defined(CONFIG_SAM34_GPIOA_IRQ) && defined(CONFIG_ARCH_IRQBUTTONS)
|
||||||
xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
||||||
{
|
{
|
||||||
xcpt_t oldhandler = NULL;
|
xcpt_t oldhandler = NULL;
|
||||||
@@ -155,7 +155,7 @@ xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
|||||||
{
|
{
|
||||||
/* Detach and disable the interrupt */
|
/* Detach and disable the interrupt */
|
||||||
|
|
||||||
(void)irq_detach(IRQ_SW0)
|
(void)irq_detach(IRQ_SW0);
|
||||||
sam_gpioirqdisable(IRQ_SW0);
|
sam_gpioirqdisable(IRQ_SW0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -154,7 +154,7 @@ xcpt_t board_button_irq(int id, xcpt_t irqhandler)
|
|||||||
{
|
{
|
||||||
/* Detach and disable the interrupt */
|
/* Detach and disable the interrupt */
|
||||||
|
|
||||||
(void)irq_detach(IRQ_BP2)
|
(void)irq_detach(IRQ_BP2);
|
||||||
sam_gpioirqdisable(IRQ_BP2);
|
sam_gpioirqdisable(IRQ_BP2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user