aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-12-17 17:59:25 -0500
committerKevin O'Connor <kevin@koconnor.net>2024-01-19 11:55:15 -0500
commit266e96621c0133e1192bbaec5addb6bcf443a203 (patch)
tree1f4396874db47db20aa75feb09757204c13b2c98 /src/Makefile
parentdc6182f3b339b990c8a68940f02a210e332be269 (diff)
downloadkutter-266e96621c0133e1192bbaec5addb6bcf443a203.tar.gz
kutter-266e96621c0133e1192bbaec5addb6bcf443a203.tar.xz
kutter-266e96621c0133e1192bbaec5addb6bcf443a203.zip
sensor_bulk: New C file with helper code for sending bulk sensor measurements
Refactor the low-level "bulk sensor" management code in the mcu. This updates the sensor_adxl345.c, sensor_mpu9250.c, sensor_lis2dw.c, and sensor_angle.c code to use the same "bulk sensor" messages. All of these sensors will now send "sensor_bulk_data" and "sensor_bulk_status" messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 8d771f9e..eddad978 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -16,6 +16,7 @@ src-$(CONFIG_WANT_SOFTWARE_SPI) += spi_software.c
src-$(CONFIG_WANT_SOFTWARE_I2C) += i2c_software.c
sensors-src-$(CONFIG_HAVE_GPIO_SPI) := thermocouple.c sensor_adxl345.c \
sensor_angle.c
-src-$(CONFIG_WANT_LIS2DW) += sensor_lis2dw.c
sensors-src-$(CONFIG_HAVE_GPIO_I2C) += sensor_mpu9250.c
src-$(CONFIG_WANT_SENSORS) += $(sensors-src-y)
+src-$(CONFIG_WANT_LIS2DW) += sensor_lis2dw.c
+src-$(CONFIG_NEED_SENSOR_BULK) += sensor_bulk.c