summaryrefslogtreecommitdiff
path: root/test/test_config.h
diff options
context:
space:
mode:
authorYuval Peress <peress@chromium.org>2020-10-23 12:05:48 -0600
committerCommit Bot <commit-bot@chromium.org>2020-12-08 19:06:07 +0000
commit6f0894886e4d15c60430b380001156b5292438cb (patch)
tree7b26a03738d1640fd610506fbfbb40004297d9f4 /test/test_config.h
parent9760abbefee06a7ffa214dd477665b8c9476061e (diff)
downloadchrome-ec-6f0894886e4d15c60430b380001156b5292438cb.tar.gz
common:online_calibration: Spoof sensor data
This change allows the `accelspoof` ec command to also override the calibration data (bypassing the calibration module). This config flag should be used when testing layers above the EC (kernel and up)'s handling of the calibration values. BRANCH=none BUG=none TEST=Built on eve and added unit tests. TEST=make run-online_calibration_spoof -j Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I4735b9613c152af5559661a91565b05635d6495e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2494986
Diffstat (limited to 'test/test_config.h')
-rw-r--r--test/test_config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h
index 51c2e5603d..4e9024f6c1 100644
--- a/test/test_config.h
+++ b/test/test_config.h
@@ -142,6 +142,14 @@
#define CONFIG_MKBP_USE_GPIO
#endif
+#ifdef TEST_ONLINE_CALIBRATION_SPOOF
+#define CONFIG_FPU
+#define CONFIG_ONLINE_CALIB
+#define CONFIG_MKBP_EVENT
+#define CONFIG_MKBP_USE_GPIO
+#define CONFIG_ONLINE_CALIB_SPOOF_MODE
+#endif /* TEST_ONLINE_CALIBRATION_SPOOF */
+
#ifdef TEST_GYRO_CAL
#define CONFIG_FPU
#define CONFIG_ONLINE_CALIB