Skip to content
Snippets Groups Projects
Commit 712d130a authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Fix some comments: Remove button description from GPIO interrupt handlers...

Fix some comments:  Remove button description from GPIO interrupt handlers that derive from the button interrupt handler
parent 542e706d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment