From e4f9fd8f5373be11b906cb619d8cd2ca30265d30 Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Fri, 12 Mar 2021 19:58:08 +0100 Subject: [PATCH] [Kconfig] forgot distance sensor furthermore K66 build should be equal now --- boards/nxp/fmuk66-v3/default-boardconfig | 2 +- src/drivers/Kconfig | 4 + src/drivers/distance_sensor/Kconfig | 95 ++++++++++++++++++++++++ 3 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 src/drivers/distance_sensor/Kconfig diff --git a/boards/nxp/fmuk66-v3/default-boardconfig b/boards/nxp/fmuk66-v3/default-boardconfig index a0b32e16f4..a0655aea6a 100644 --- a/boards/nxp/fmuk66-v3/default-boardconfig +++ b/boards/nxp/fmuk66-v3/default-boardconfig @@ -6,6 +6,7 @@ CONFIG_DRIVERS_CAMERA_CAPTURE=y CONFIG_DRIVERS_CAMERA_TRIGGER=y CONFIG_DRIVERS_DIFFERENTIAL_PRESSURE=y CONFIG_DRIVERS_DISTANCE_SENSOR=y +CONFIG_DRIVERS_DISTANCE_SENSOR_SRF05=y CONFIG_DRIVERS_GPS=y CONFIG_DRIVERS_IMU_FXAS21002C=y CONFIG_DRIVERS_IMU_FXOS8701CQ=y @@ -56,7 +57,6 @@ CONFIG_MODULES_SIH=y CONFIG_MODULES_TEMPERATURE_COMPENSATION=y CONFIG_MODULES_VMOUNT=y CONFIG_MODULES_VTOL_ATT_CONTROL=y -CONFIG_SYSTEMCMDS_BL_UPDATE=y CONFIG_SYSTEMCMDS_DUMPFILE=y CONFIG_SYSTEMCMDS_ESC_CALIB=y CONFIG_SYSTEMCMDS_I2CDETECT=y diff --git a/src/drivers/Kconfig b/src/drivers/Kconfig index 05d703dd47..fb5dbba712 100644 --- a/src/drivers/Kconfig +++ b/src/drivers/Kconfig @@ -49,6 +49,10 @@ menuconfig DRIVERS_DISTANCE_SENSOR ---help--- Enable support for distance sensor +if DRIVERS_DISTANCE_SENSOR +source "src/drivers/distance_sensor/Kconfig" +endif #DRIVERS_DISTANCE_SENSOR + menuconfig DRIVERS_DSHOT bool "dshot" default n diff --git a/src/drivers/distance_sensor/Kconfig b/src/drivers/distance_sensor/Kconfig new file mode 100644 index 0000000000..d6752a6663 --- /dev/null +++ b/src/drivers/distance_sensor/Kconfig @@ -0,0 +1,95 @@ +menuconfig DRIVERS_DISTANCE_SENSOR_CM8JL65 + bool "cm8jl65" + default n + ---help--- + Enable support for cm8jl65 + +menuconfig DRIVERS_DISTANCE_SENSOR_LEDDAR_ONE + bool "leddar one" + default n + ---help--- + Enable support for leddar one + +menuconfig DRIVERS_DISTANCE_SENSOR_LIGHTWARE_LASER_I2C + bool "lightware laser i2c" + default n + ---help--- + Enable support for lightware laser i2c + +menuconfig DRIVERS_DISTANCE_SENSOR_LIGHTWARE_LASER_SERIAL + bool "lightware laser serial" + default n + ---help--- + Enable support for lightware laser serial + +menuconfig DRIVERS_DISTANCE_SENSOR_LL40LS + bool "ll40ls" + default n + ---help--- + Enable support for ll40ls + +menuconfig DRIVERS_DISTANCE_SENSOR_LL40LS_PWM + bool "ll40ls pwm" + default n + ---help--- + Enable support for ll40ls pwm + +menuconfig DRIVERS_DISTANCE_SENSOR_MAPPYDOT + bool "mappydot" + default n + ---help--- + Enable support for mappydot + +menuconfig DRIVERS_DISTANCE_SENSOR_MB12XX + bool "mb12xx" + default n + ---help--- + Enable support for mb12xx + +menuconfig DRIVERS_DISTANCE_SENSOR_PGA460 + bool "pga460" + default n + ---help--- + Enable support for pga460 + +menuconfig DRIVERS_DISTANCE_SENSOR_SRF02 + bool "srf02" + default n + ---help--- + Enable support for srf02 + +menuconfig DRIVERS_DISTANCE_SENSOR_SRF05 + bool "srf05" + default n + ---help--- + Enable support for srf05 + +menuconfig DRIVERS_DISTANCE_SENSOR_TERARANGER + bool "teraranger" + default n + ---help--- + Enable support for teraranger + +menuconfig DRIVERS_DISTANCE_SENSOR_TFMINI + bool "tfmini" + default n + ---help--- + Enable support for tfmini + +menuconfig DRIVERS_DISTANCE_SENSOR_ULANDING_RADAR + bool "ulanding radar" + default n + ---help--- + Enable support for ulanding radar + +menuconfig DRIVERS_DISTANCE_SENSOR_VL53L0X + bool "vl53l0x" + default n + ---help--- + Enable support for vl53l0x + +menuconfig DRIVERS_DISTANCE_SENSOR_VL53L1X + bool "vl53l1x" + default n + ---help--- + Enable support for vl53l1x