mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 22:17:18 +00:00
Fix some comments: Remove button description from GPIO interrupt handlers that derive from the button interrupt handler
This commit is contained in:
parent
0cdd0bf667
commit
bee22181f4
6 changed files with 12 additions and 12 deletions
|
|
@ -317,7 +317,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = *phandler;
|
||||
*phandler = handler;
|
||||
|
|
@ -350,7 +350,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
*enable = enabler;
|
||||
}
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = g_ochandler;
|
||||
g_ochandler = handler;
|
||||
|
|
@ -497,7 +497,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
|
||||
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = *phandler;
|
||||
*phandler = handler;
|
||||
|
|
@ -350,7 +350,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
*enable = enabler;
|
||||
}
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = g_ochandler;
|
||||
g_ochandler = handler;
|
||||
|
|
@ -497,7 +497,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
|
||||
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
|
|
@ -286,7 +286,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = *phandler;
|
||||
*phandler = handler;
|
||||
|
|
@ -319,7 +319,7 @@ xcpt_t arch_phy_irq(FAR const char *intf, xcpt_t handler, phy_enable_t *enable)
|
|||
*enable = enabler;
|
||||
}
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
|
||||
flags = irqsave();
|
||||
|
||||
/* Get the old button interrupt handler and save the new one */
|
||||
/* Get the old interrupt handler and save the new one */
|
||||
|
||||
oldhandler = g_ochandler;
|
||||
g_ochandler = handler;
|
||||
|
|
@ -498,7 +498,7 @@ xcpt_t sam_setup_overcurrent(xcpt_t handler)
|
|||
(void)irq_attach(IRQ_USBBC_VBUS_OVERCURRENT, handler);
|
||||
sam_pioirqenable(IRQ_USBBC_VBUS_OVERCURRENT);
|
||||
|
||||
/* Return the old button handler (so that it can be restored) */
|
||||
/* Return the old handler (so that it can be restored) */
|
||||
|
||||
irqrestore(flags);
|
||||
return oldhandler;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue