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:
Gregory Nutt
2017-04-09 07:22:49 -06:00
parent 5a0636d8bc
commit f9e402018b
77 changed files with 125 additions and 153 deletions
+1 -1
View File
@@ -593,7 +593,7 @@ void board_button_initialize(void);
****************************************************************************/
#ifdef CONFIG_ARCH_BUTTONS
uint8_t board_buttons(void);
uint32_t board_buttons(void);
#endif
/****************************************************************************
+1 -1
View File
@@ -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