diff options
Diffstat (limited to 'include/power_button.h')
-rw-r--r-- | include/power_button.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/power_button.h b/include/power_button.h index ce9f63e216..a7ec4612ad 100644 --- a/include/power_button.h +++ b/include/power_button.h @@ -18,6 +18,15 @@ int power_button_is_pressed(void); /** + * Wait for the power button to be released + * + * @param timeout_us Timeout in microseconds, or -1 to wait forever + * @return EC_SUCCESS if ok, or + * EC_ERROR_TIMEOUT if power button failed to release + */ +int power_button_wait_for_release(unsigned int timeout_us); + +/** * Return non-zero if power button signal asserted at hardware input. * */ |