diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-15 15:52:31 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-25 20:52:32 +0000 |
commit | 050c7df0118855ea4c33003c176132821c18c794 (patch) | |
tree | 877eaf25e1f3ffc9f78896b9ed1087e9062f0ec7 /include/inductive_charging.h | |
parent | b0f622543c098d3335bcf12a859c33ff215d7530 (diff) | |
download | chrome-ec-050c7df0118855ea4c33003c176132821c18c794.tar.gz |
Add inductive charging control module
This module controls the inductive charging transmitter. For now, the
policy is to charge whenever possible.
BUG=chrome-os-partner:31392
TEST=Unit test passed
BRANCH=None
Change-Id: Ie48a38ad92fe2bc3329c4962e96572f2bc40b4e6
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/212715
Diffstat (limited to 'include/inductive_charging.h')
-rw-r--r-- | include/inductive_charging.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/inductive_charging.h b/include/inductive_charging.h new file mode 100644 index 0000000000..60872914df --- /dev/null +++ b/include/inductive_charging.h @@ -0,0 +1,20 @@ +/* Copyright 2014 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. + */ + +/* Inductive charging control */ + +#include "gpio.h" + +#ifndef __INDUCTIVE_CHARGING_H +#define __INDUCTIVE_CHARGING_H + +/* + * Interrupt handler for inductive charging signal. + * + * @param signal Signal which triggered the interrupt. + */ +void inductive_charging_interrupt(enum gpio_signal); + +#endif |