diff options
author | Tomasz Michalec <tm@semihalf.com> | 2021-04-21 23:40:49 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-20 10:12:33 +0000 |
commit | 2a2b10cfc9c22737f4c02fa976caef3c40317847 (patch) | |
tree | 601212f09b8081f6d5a5210dbfdafe751db66cf4 /zephyr/test/drivers/src/main.c | |
parent | 7b271975c0b6f0f4263e85d5142cf0baed2e3414 (diff) | |
download | chrome-ec-2a2b10cfc9c22737f4c02fa976caef3c40317847.tar.gz |
zephyr: drivers: add thermistor test suite
Thermistor driver uses ADC to read temperature. Because of that ADC
emulator is added to overlay dts. Thermistor test suite check behaviour
in case of ADC error and test if conversion from ADC output to
temperature is precise.
BUG=b:184857072
BRANCH=none
TEST=run zmake drivers test
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Icc6c779ce590d2768a382bccfb04acec657a140c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2886888
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr/test/drivers/src/main.c')
-rw-r--r-- | zephyr/test/drivers/src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/test/drivers/src/main.c b/zephyr/test/drivers/src/main.c index f16dcbd3f1..b047038153 100644 --- a/zephyr/test/drivers/src/main.c +++ b/zephyr/test/drivers/src/main.c @@ -10,6 +10,7 @@ extern void test_suite_battery(void); extern void test_suite_cbi(void); extern void test_suite_smart_battery(void); +extern void test_suite_thermistor(void); void test_main(void) { @@ -21,4 +22,5 @@ void test_main(void) test_suite_battery(); test_suite_cbi(); test_suite_smart_battery(); + test_suite_thermistor(); } |