sensors: add kconfig mechanism to optionally exclude sensor types

This commit is contained in:
Daniel Agar
2022-06-17 19:31:45 -04:00
parent 60450e63c0
commit c46fa01195
3 changed files with 195 additions and 68 deletions
+15
View File
@@ -10,3 +10,18 @@ menuconfig USER_SENSORS
depends on BOARD_PROTECTED && MODULES_SENSORS
---help---
Put sensors in userspace memory
if MODULES_SENSORS
config SENSORS_VEHICLE_AIR_DATA
bool "Include vehicle air data"
default y
config SENSORS_VEHICLE_GPS_POSITION
bool "Include vehicle gps position"
default y
config SENSORS_VEHICLE_MAGNETOMETER
bool "Include vehicle magnetometer"
default y
endif #MODULES_SENSORS