mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 16:22:23 +08:00
board_button_irq: Button IRQ logic no longer returns the xcpt_t oldhandler. There value is useless and dangerous after the recent changes to interrupt argument passing.
This commit is contained in:
@@ -603,8 +603,6 @@ uint8_t board_buttons(void);
|
||||
* This function may be called to register an interrupt handler that will
|
||||
* be called when a button is depressed or released. The ID value is a
|
||||
* button enumeration value that uniquely identifies a button resource.
|
||||
* The previous interrupt handler address is returned (so that it may
|
||||
* restored, if so desired).
|
||||
*
|
||||
* NOTE: This interface may or may not be supported by board-specific
|
||||
* logic. If the board supports any button interfaces, then
|
||||
@@ -614,7 +612,7 @@ uint8_t board_buttons(void);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_IRQBUTTONS
|
||||
xcpt_t board_button_irq(int id, xcpt_t irqhandler, FAR void *arg);
|
||||
int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user