summaryrefslogtreecommitdiff
path: root/test/sbs_charging_v2.c
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2021-08-06 13:18:02 -0600
committerCommit Bot <commit-bot@chromium.org>2021-08-21 18:48:30 +0000
commitdd46fdb485a9cdb82ae733e4cec2320931e78dbc (patch)
tree9b6e38ce3058b0575dc8d9eb80ad1b416d8c2cda /test/sbs_charging_v2.c
parent1418bf3629b9fb767fca0a72455659bf46f06498 (diff)
downloadchrome-ec-dd46fdb485a9cdb82ae733e4cec2320931e78dbc.tar.gz
common: Add Milli Kelvin conversion macros
Add macros to convert to and from milli kelvin and various temperature units. Utilize round_divide for more accurate conversions. BUG=b:176994331 TEST=Unit test BRANCH=None Change-Id: Ie6750b9d2d2b8093fdf9c14f904382e91d8d95bb Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3078051 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'test/sbs_charging_v2.c')
-rw-r--r--test/sbs_charging_v2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/sbs_charging_v2.c b/test/sbs_charging_v2.c
index 520db7bb20..bdca592d6c 100644
--- a/test/sbs_charging_v2.c
+++ b/test/sbs_charging_v2.c
@@ -12,6 +12,7 @@
#include "gpio.h"
#include "hooks.h"
#include "host_command.h"
+#include "math_util.h"
#include "power.h"
#include "task.h"
#include "test_util.h"