mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
drivers/button: Let board_button_initialize return the button number
so the lower half driver don't need include the specific board.h Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: I2ff5c30049a5c5e8ee90baea56e9f4cb1a8a4f87
This commit is contained in:
committed by
Abdelatif Guettouche
parent
73fc43770a
commit
1b47aa1cb2
@@ -617,11 +617,12 @@ void board_userled_all(uint8_t ledset);
|
||||
* NOTE: This interface may or may not be supported by board-specific
|
||||
* logic. If the board supports button interfaces, then CONFIG_ARCH_BUTTONS
|
||||
* will be defined.
|
||||
* NOTE: The button number is returned.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_ARCH_BUTTONS
|
||||
void board_button_initialize(void);
|
||||
uint32_t board_button_initialize(void);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user