mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +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:
@@ -94,9 +94,9 @@ void board_button_initialize(void)
|
||||
* Name: board_buttons
|
||||
****************************************************************************/
|
||||
|
||||
uint8_t board_buttons(void)
|
||||
uint32_t board_buttons(void)
|
||||
{
|
||||
uint8_t ret = 0;
|
||||
uint32_t ret = 0;
|
||||
|
||||
if (kinetis_gpioread(GPIO_SW1))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user