diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/lid_switch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/lid_switch.h b/include/lid_switch.h index a999abdda7..627a41d62c 100644 --- a/include/lid_switch.h +++ b/include/lid_switch.h @@ -9,6 +9,7 @@ #define __CROS_EC_LID_SWITCH_H #include "common.h" +#include "stdbool.h" /** * Return non-zero if lid is open. @@ -24,4 +25,11 @@ int lid_is_open(void); */ void lid_interrupt(enum gpio_signal signal); +/** + * Disable lid interrupt and set the lid open, when base is disconnected. + * + * @param enable Flag that enables or disables lid interrupt. + */ +void enable_lid_detect(bool enable); + #endif /* __CROS_EC_LID_SWITCH_H */ |