diff options
Diffstat (limited to 'include/button.h')
-rw-r--r-- | include/button.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/button.h b/include/button.h index 207f4a0f4d..8d38e52132 100644 --- a/include/button.h +++ b/include/button.h @@ -74,4 +74,13 @@ enum button_state_t button_get_state(struct udevice *dev); */ int button_get_code(struct udevice *dev); +#if IS_ENABLED(CONFIG_BUTTON_CMD) +/* Process button command mappings specified in the environment, + * running the commands for buttons which are pressed + */ +void process_button_cmds(void); +#else +static inline void process_button_cmds(void) {} +#endif /* CONFIG_BUTTON_CMD */ + #endif |