mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +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:
@@ -147,7 +147,7 @@ void board_button_initialize(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
uint8_t board_buttons(void)
|
||||
uint32_t board_buttons(void)
|
||||
{
|
||||
return sam_gpioread(GPIO_SW0) ? 0 : BUTTON_SW0_BIT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user