mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Buttons: Change return value of board_buttons() and the type of btn_buttonset_t to uint32_t so that more than 8 buttons can be supported.
This commit is contained in:
@@ -593,7 +593,7 @@ void board_button_initialize(void);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_BUTTONS
|
||||
uint8_t board_buttons(void);
|
||||
uint32_t board_buttons(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
* from the button driver.
|
||||
*/
|
||||
|
||||
typedef uint8_t btn_buttonset_t;
|
||||
typedef uint32_t btn_buttonset_t;
|
||||
|
||||
/* A reference to this structure is provided with the BTNIOC_POLLEVENTS IOCTL
|
||||
* command and describes the conditions under which the client would like
|
||||
|
||||
Reference in New Issue
Block a user