diff options
Diffstat (limited to 'firmware/drivers/button.h')
-rw-r--r-- | firmware/drivers/button.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/firmware/drivers/button.h b/firmware/drivers/button.h index a8cc71b875..ef8984466e 100644 --- a/firmware/drivers/button.h +++ b/firmware/drivers/button.h | |||
@@ -16,11 +16,14 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #ifndef _BUTTON_H_ | ||
20 | #define _BUTTON_H_ | ||
19 | 21 | ||
22 | #include <stdbool.h> | ||
20 | #include "config.h" | 23 | #include "config.h" |
21 | 24 | ||
22 | void button_init (void); | 25 | void button_init (void); |
23 | int button_get (void); | 26 | int button_get (bool block); |
24 | 27 | ||
25 | /* Shared button codes */ | 28 | /* Shared button codes */ |
26 | #define BUTTON_NONE 0x0000 | 29 | #define BUTTON_NONE 0x0000 |
@@ -52,3 +55,5 @@ int button_get (void); | |||
52 | #define BUTTON_STOP BUTTON_DOWN | 55 | #define BUTTON_STOP BUTTON_DOWN |
53 | 56 | ||
54 | #endif | 57 | #endif |
58 | |||
59 | #endif | ||