summaryrefslogtreecommitdiff
path: root/driver/als_si114x.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/als_si114x.h')
-rw-r--r--driver/als_si114x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/als_si114x.h b/driver/als_si114x.h
index 85b8677cdf..e3a19895ba 100644
--- a/driver/als_si114x.h
+++ b/driver/als_si114x.h
@@ -219,6 +219,9 @@
#define SI114X_PROX_MAX_FREQ 50000
#define SI114X_LIGHT_MIN_FREQ 504
#define SI114X_LIGHT_MAX_FREQ 50000
+#if (CONFIG_EC_MAX_SENSOR_FREQ_MILLIHZ <= SI114X_PROX_MAX_FREQ)
+#error "EC too slow for light sensor"
+#endif
extern const struct accelgyro_drv si114x_drv;