diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2014-11-05 10:02:01 -0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-11-13 00:29:58 +0000 |
commit | cf48a3640c271663fc1c4156b16f4a25264944d9 (patch) | |
tree | 0330fdc3a2c6453bc46a4310431a1506bd978cfb /board/host | |
parent | 06fb4fe0f2ee33c912fa10ed7fecdbe8c9c193d6 (diff) | |
download | chrome-ec-cf48a3640c271663fc1c4156b16f4a25264944d9.tar.gz |
charge_manager: Add unit tests
Add unit tests for the charge_manager module.
BUG=chrome-os-partner:32003
TEST=`make buildall -j`
BRANCH=Samus
Change-Id: I31962588ca7360e2ffde6b83459505872e2128b9
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/227620
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r-- | board/host/board.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/board/host/board.h b/board/host/board.h index 46d1a001b2..0ae8e0c452 100644 --- a/board/host/board.h +++ b/board/host/board.h @@ -39,4 +39,27 @@ enum adc_channel { ADC_CH_COUNT }; +/* Charge suppliers */ +enum charge_supplier { + CHARGE_SUPPLIER_TEST1, + CHARGE_SUPPLIER_TEST2, + CHARGE_SUPPLIER_TEST3, + CHARGE_SUPPLIER_TEST4, + CHARGE_SUPPLIER_TEST5, + CHARGE_SUPPLIER_TEST6, + CHARGE_SUPPLIER_TEST7, + CHARGE_SUPPLIER_TEST8, + CHARGE_SUPPLIER_TEST9, + CHARGE_SUPPLIER_COUNT +}; + +/* supplier_priority table defined in board.c */ +extern const int supplier_priority[]; + +/* Set the active charge port. */ +void board_set_active_charge_port(int charge_port); + +/* Set the charge current limit. */ +void board_set_charge_limit(int charge_ma); + #endif /* __BOARD_H */ |