diff options
Diffstat (limited to 'include/button.h')
-rw-r--r-- | include/button.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/button.h b/include/button.h index fbfd4f3879..c542d44c47 100644 --- a/include/button.h +++ b/include/button.h @@ -17,6 +17,7 @@ enum keyboard_button_type { KEYBOARD_BUTTON_POWER = 0, KEYBOARD_BUTTON_VOLUME_DOWN, KEYBOARD_BUTTON_VOLUME_UP, + KEYBOARD_BUTTON_RECOVERY, KEYBOARD_BUTTON_CAPSENSE_1, KEYBOARD_BUTTON_CAPSENSE_2, KEYBOARD_BUTTON_CAPSENSE_3, @@ -43,6 +44,17 @@ struct button_config { extern const struct button_config buttons[]; /* + * Buttons used to decide whether recovery is requested or not + */ +extern const struct button_config *recovery_buttons[]; +extern const int recovery_buttons_count; + +/* + * Button initialization, called from main. + */ +void button_init(void); + +/* * Interrupt handler for button. * * @param signal Signal which triggered the interrupt. |