diff options
Diffstat (limited to 'include/button.h')
-rw-r--r-- | include/button.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/button.h b/include/button.h index c542d44c47..29b648eb60 100644 --- a/include/button.h +++ b/include/button.h @@ -38,9 +38,18 @@ struct button_config { int flags; }; -/* - * Defined in board.c. Should be CONFIG_BUTTON_COUNT elements long. - */ +enum button { +#ifdef CONFIG_VOLUME_BUTTONS + BUTTON_VOLUME_UP, + BUTTON_VOLUME_DOWN, +#endif /* defined(CONFIG_VOLUME_BUTTONS) */ +#ifdef CONFIG_DEDICATED_RECOVERY_BUTTON + BUTTON_RECOVERY, +#endif /* defined(CONFIG_DEDICATED_RECOVERY_BUTTON) */ + BUTTON_COUNT, +}; + +/* Table of buttons for the board. */ extern const struct button_config buttons[]; /* |