diff options
Diffstat (limited to 'include/extpower.h')
-rw-r--r-- | include/extpower.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/extpower.h b/include/extpower.h new file mode 100644 index 0000000000..d3f9a4f6ef --- /dev/null +++ b/include/extpower.h @@ -0,0 +1,25 @@ +/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* External power detection API for Chrome EC */ + +#ifndef __CROS_EC_EXTPOWER_H +#define __CROS_EC_EXTPOWER_H + +#include "common.h" + +/** + * Return non-zero if external power is present. + */ +int extpower_is_present(void); + +/** + * Interrupt handler for external power GPIOs. + * + * @param signal Signal which triggered the interrupt. + */ +void extpower_interrupt(enum gpio_signal signal); + +#endif /* __CROS_EC_EXTPOWER_H */ |