From 51e1a80556f8bcd5761bd1cae5be38b9b5f32290 Mon Sep 17 00:00:00 2001 From: alexklimaj Date: Wed, 1 Nov 2023 21:42:41 -0600 Subject: [PATCH] driver: cleanup imu folder --- boards/airmind/mindpx-v2/default.px4board | 4 ++-- boards/av/x-v1/default.px4board | 4 ++-- boards/nxp/fmuk66-v3/default.px4board | 4 ++-- boards/px4/fmu-v2/default.px4board | 4 ++-- boards/px4/fmu-v3/default.px4board | 4 ++-- src/drivers/imu/Kconfig | 14 +++++++------- src/drivers/imu/adis16477/Kconfig | 5 ----- src/drivers/imu/adis16497/Kconfig | 5 ----- src/drivers/imu/analog_devices/Kconfig | 2 +- .../{ => analog_devices}/adis16477/ADIS16477.cpp | 0 .../{ => analog_devices}/adis16477/ADIS16477.hpp | 0 .../{ => analog_devices}/adis16477/CMakeLists.txt | 0 src/drivers/imu/analog_devices/adis16477/Kconfig | 5 +++++ .../adis16477/adis16477_main.cpp | 0 .../{ => analog_devices}/adis16497/ADIS16497.cpp | 0 .../{ => analog_devices}/adis16497/ADIS16497.hpp | 0 .../{ => analog_devices}/adis16497/CMakeLists.txt | 0 src/drivers/imu/analog_devices/adis16497/Kconfig | 5 +++++ .../adis16497/adis16497_main.cpp | 0 src/drivers/imu/bosch/Kconfig | 2 +- src/drivers/imu/fxas21002c/Kconfig | 5 ----- src/drivers/imu/fxos8701cq/Kconfig | 5 ----- src/drivers/imu/l3gd20/Kconfig | 5 ----- src/drivers/imu/lsm303d/Kconfig | 5 ----- src/drivers/imu/nxp/Kconfig | 3 +++ .../imu/{ => nxp}/fxas21002c/CMakeLists.txt | 0 .../imu/{ => nxp}/fxas21002c/FXAS21002C.cpp | 0 .../imu/{ => nxp}/fxas21002c/FXAS21002C.hpp | 0 src/drivers/imu/nxp/fxas21002c/Kconfig | 5 +++++ .../imu/{ => nxp}/fxas21002c/fxas21002c_i2c.cpp | 0 .../imu/{ => nxp}/fxas21002c/fxas21002c_main.cpp | 0 .../imu/{ => nxp}/fxas21002c/fxas21002c_spi.cpp | 0 .../imu/{ => nxp}/fxos8701cq/CMakeLists.txt | 0 .../imu/{ => nxp}/fxos8701cq/FXOS8701CQ.cpp | 0 .../imu/{ => nxp}/fxos8701cq/FXOS8701CQ.hpp | 0 src/drivers/imu/nxp/fxos8701cq/Kconfig | 5 +++++ .../imu/{ => nxp}/fxos8701cq/fxos8701cq_i2c.cpp | 0 .../imu/{ => nxp}/fxos8701cq/fxos8701cq_main.cpp | 0 .../imu/{ => nxp}/fxos8701cq/fxos8701cq_spi.cpp | 0 src/drivers/imu/st/Kconfig | 2 +- src/drivers/imu/{ => st}/l3gd20/CMakeLists.txt | 0 src/drivers/imu/st/l3gd20/Kconfig | 5 +++++ src/drivers/imu/{ => st}/l3gd20/L3GD20.cpp | 0 src/drivers/imu/{ => st}/l3gd20/L3GD20.hpp | 0 src/drivers/imu/{ => st}/l3gd20/l3gd20_main.cpp | 0 src/drivers/imu/{ => st}/lsm303d/CMakeLists.txt | 0 src/drivers/imu/st/lsm303d/Kconfig | 5 +++++ src/drivers/imu/{ => st}/lsm303d/LSM303D.cpp | 0 src/drivers/imu/{ => st}/lsm303d/LSM303D.hpp | 0 src/drivers/imu/{ => st}/lsm303d/lsm303d_main.cpp | 0 50 files changed, 53 insertions(+), 50 deletions(-) delete mode 100644 src/drivers/imu/adis16477/Kconfig delete mode 100644 src/drivers/imu/adis16497/Kconfig rename src/drivers/imu/{ => analog_devices}/adis16477/ADIS16477.cpp (100%) rename src/drivers/imu/{ => analog_devices}/adis16477/ADIS16477.hpp (100%) rename src/drivers/imu/{ => analog_devices}/adis16477/CMakeLists.txt (100%) create mode 100644 src/drivers/imu/analog_devices/adis16477/Kconfig rename src/drivers/imu/{ => analog_devices}/adis16477/adis16477_main.cpp (100%) rename src/drivers/imu/{ => analog_devices}/adis16497/ADIS16497.cpp (100%) rename src/drivers/imu/{ => analog_devices}/adis16497/ADIS16497.hpp (100%) rename src/drivers/imu/{ => analog_devices}/adis16497/CMakeLists.txt (100%) create mode 100644 src/drivers/imu/analog_devices/adis16497/Kconfig rename src/drivers/imu/{ => analog_devices}/adis16497/adis16497_main.cpp (100%) delete mode 100644 src/drivers/imu/fxas21002c/Kconfig delete mode 100644 src/drivers/imu/fxos8701cq/Kconfig delete mode 100644 src/drivers/imu/l3gd20/Kconfig delete mode 100644 src/drivers/imu/lsm303d/Kconfig create mode 100644 src/drivers/imu/nxp/Kconfig rename src/drivers/imu/{ => nxp}/fxas21002c/CMakeLists.txt (100%) rename src/drivers/imu/{ => nxp}/fxas21002c/FXAS21002C.cpp (100%) rename src/drivers/imu/{ => nxp}/fxas21002c/FXAS21002C.hpp (100%) create mode 100644 src/drivers/imu/nxp/fxas21002c/Kconfig rename src/drivers/imu/{ => nxp}/fxas21002c/fxas21002c_i2c.cpp (100%) rename src/drivers/imu/{ => nxp}/fxas21002c/fxas21002c_main.cpp (100%) rename src/drivers/imu/{ => nxp}/fxas21002c/fxas21002c_spi.cpp (100%) rename src/drivers/imu/{ => nxp}/fxos8701cq/CMakeLists.txt (100%) rename src/drivers/imu/{ => nxp}/fxos8701cq/FXOS8701CQ.cpp (100%) rename src/drivers/imu/{ => nxp}/fxos8701cq/FXOS8701CQ.hpp (100%) create mode 100644 src/drivers/imu/nxp/fxos8701cq/Kconfig rename src/drivers/imu/{ => nxp}/fxos8701cq/fxos8701cq_i2c.cpp (100%) rename src/drivers/imu/{ => nxp}/fxos8701cq/fxos8701cq_main.cpp (100%) rename src/drivers/imu/{ => nxp}/fxos8701cq/fxos8701cq_spi.cpp (100%) rename src/drivers/imu/{ => st}/l3gd20/CMakeLists.txt (100%) create mode 100644 src/drivers/imu/st/l3gd20/Kconfig rename src/drivers/imu/{ => st}/l3gd20/L3GD20.cpp (100%) rename src/drivers/imu/{ => st}/l3gd20/L3GD20.hpp (100%) rename src/drivers/imu/{ => st}/l3gd20/l3gd20_main.cpp (100%) rename src/drivers/imu/{ => st}/lsm303d/CMakeLists.txt (100%) create mode 100644 src/drivers/imu/st/lsm303d/Kconfig rename src/drivers/imu/{ => st}/lsm303d/LSM303D.cpp (100%) rename src/drivers/imu/{ => st}/lsm303d/LSM303D.hpp (100%) rename src/drivers/imu/{ => st}/lsm303d/lsm303d_main.cpp (100%) diff --git a/boards/airmind/mindpx-v2/default.px4board b/boards/airmind/mindpx-v2/default.px4board index a95ace0789..cb56388c36 100644 --- a/boards/airmind/mindpx-v2/default.px4board +++ b/boards/airmind/mindpx-v2/default.px4board @@ -16,8 +16,8 @@ CONFIG_DRIVERS_GPS=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM20948=y CONFIG_DRIVERS_IMU_INVENSENSE_MPU6000=y CONFIG_DRIVERS_IMU_INVENSENSE_MPU6500=y -CONFIG_DRIVERS_IMU_L3GD20=y -CONFIG_DRIVERS_IMU_LSM303D=y +CONFIG_DRIVERS_IMU_ST_L3GD20=y +CONFIG_DRIVERS_IMU_ST_LSM303D=y CONFIG_DRIVERS_IRLOCK=y CONFIG_COMMON_LIGHT=y CONFIG_COMMON_MAGNETOMETER=y diff --git a/boards/av/x-v1/default.px4board b/boards/av/x-v1/default.px4board index 9336bc7950..86db7c85a3 100644 --- a/boards/av/x-v1/default.px4board +++ b/boards/av/x-v1/default.px4board @@ -15,8 +15,8 @@ CONFIG_DRIVERS_CAMERA_TRIGGER=y CONFIG_COMMON_DIFFERENTIAL_PRESSURE=y CONFIG_COMMON_DISTANCE_SENSOR=y CONFIG_DRIVERS_GPS=y -CONFIG_DRIVERS_IMU_ADIS16477=y -CONFIG_DRIVERS_IMU_ADIS16497=y +CONFIG_DRIVERS_IMU_ANALOG_DEVICES_ADIS16477=y +CONFIG_DRIVERS_IMU_ANALOG_DEVICES_ADIS16497=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM20948=y CONFIG_DRIVERS_IRLOCK=y CONFIG_COMMON_LIGHT=y diff --git a/boards/nxp/fmuk66-v3/default.px4board b/boards/nxp/fmuk66-v3/default.px4board index 6de1cda0d4..9469be850c 100644 --- a/boards/nxp/fmuk66-v3/default.px4board +++ b/boards/nxp/fmuk66-v3/default.px4board @@ -15,8 +15,8 @@ CONFIG_COMMON_DIFFERENTIAL_PRESSURE=y CONFIG_COMMON_DISTANCE_SENSOR=y CONFIG_DRIVERS_DISTANCE_SENSOR_SRF05=y CONFIG_DRIVERS_GPS=y -CONFIG_DRIVERS_IMU_FXAS21002C=y -CONFIG_DRIVERS_IMU_FXOS8701CQ=y +CONFIG_DRIVERS_IMU_NXP_FXAS21002C=y +CONFIG_DRIVERS_IMU_NXP_FXOS8701CQ=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM20948=y CONFIG_DRIVERS_IRLOCK=y CONFIG_DRIVERS_LIGHTS_RGBLED=y diff --git a/boards/px4/fmu-v2/default.px4board b/boards/px4/fmu-v2/default.px4board index 1e55f5c5a9..59d1c02a73 100644 --- a/boards/px4/fmu-v2/default.px4board +++ b/boards/px4/fmu-v2/default.px4board @@ -11,8 +11,8 @@ CONFIG_DRIVERS_ADC_BOARD_ADC=y CONFIG_DRIVERS_BAROMETER_MS5611=y CONFIG_DRIVERS_GPS=y CONFIG_DRIVERS_IMU_INVENSENSE_MPU6000=y -CONFIG_DRIVERS_IMU_L3GD20=y -CONFIG_DRIVERS_IMU_LSM303D=y +CONFIG_DRIVERS_IMU_ST_L3GD20=y +CONFIG_DRIVERS_IMU_ST_LSM303D=y CONFIG_DRIVERS_LIGHTS_RGBLED=y CONFIG_DRIVERS_MAGNETOMETER_HMC5883=y CONFIG_DRIVERS_PWM_OUT=y diff --git a/boards/px4/fmu-v3/default.px4board b/boards/px4/fmu-v3/default.px4board index 74c7b0385d..1ced5b7873 100644 --- a/boards/px4/fmu-v3/default.px4board +++ b/boards/px4/fmu-v3/default.px4board @@ -21,8 +21,8 @@ CONFIG_DRIVERS_IMU_INVENSENSE_ICM20608G=y CONFIG_DRIVERS_IMU_INVENSENSE_ICM20948=y CONFIG_DRIVERS_IMU_INVENSENSE_MPU6000=y CONFIG_DRIVERS_IMU_INVENSENSE_MPU9250=y -CONFIG_DRIVERS_IMU_L3GD20=y -CONFIG_DRIVERS_IMU_LSM303D=y +CONFIG_DRIVERS_IMU_ST_L3GD20=y +CONFIG_DRIVERS_IMU_ST_LSM303D=y CONFIG_COMMON_INS=y CONFIG_DRIVERS_IRLOCK=y CONFIG_COMMON_LIGHT=y diff --git a/src/drivers/imu/Kconfig b/src/drivers/imu/Kconfig index 9a1de9995a..3b084a5801 100644 --- a/src/drivers/imu/Kconfig +++ b/src/drivers/imu/Kconfig @@ -2,14 +2,14 @@ menu "IMU" menuconfig COMMON_IMU bool "Common IMU's" default n - select DRIVERS_IMU_ADIS16477 - select DRIVERS_IMU_ADIS16497 + select DRIVERS_IMU_ANALOG_DEVICES_ADIS16477 + select DRIVERS_IMU_ANALOG_DEVICES_ADIS16497 select DRIVERS_IMU_ANALOG_DEVICES_ADIS16448 select DRIVERS_IMU_ANALOG_DEVICES_ADIS16470 select DRIVERS_IMU_BOSCH_BMI055 select DRIVERS_IMU_BOSCH_BMI088 - select DRIVERS_IMU_FXAS21002C - select DRIVERS_IMU_FXOS8701CQ + select DRIVERS_IMU_NXP_FXAS21002C + select DRIVERS_IMU_NXP_FXOS8701CQ select DRIVERS_IMU_INVENSENSE_ICM20602 select DRIVERS_IMU_INVENSENSE_ICM20608G select DRIVERS_IMU_INVENSENSE_ICM20649 @@ -21,9 +21,9 @@ menu "IMU" select DRIVERS_IMU_INVENSENSE_MPU6000 select DRIVERS_IMU_INVENSENSE_MPU6500 select DRIVERS_IMU_INVENSENSE_MPU9250 - select DRIVERS_IMU_L3GD20 - select DRIVERS_IMU_LSM303D - select DRIVERS_IMU_ST + select DRIVERS_IMU_ST_L3GD20 + select DRIVERS_IMU_ST_LSM303D + select DRIVERS_IMU_ST_LSM9DS1 ---help--- Enable default set of IMU drivers rsource "*/Kconfig" diff --git a/src/drivers/imu/adis16477/Kconfig b/src/drivers/imu/adis16477/Kconfig deleted file mode 100644 index 74b76d2482..0000000000 --- a/src/drivers/imu/adis16477/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_ADIS16477 - bool "adis16477" - default n - ---help--- - Enable support for adis16477 \ No newline at end of file diff --git a/src/drivers/imu/adis16497/Kconfig b/src/drivers/imu/adis16497/Kconfig deleted file mode 100644 index 41fa1b759b..0000000000 --- a/src/drivers/imu/adis16497/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_ADIS16497 - bool "adis16497" - default n - ---help--- - Enable support for adis16497 \ No newline at end of file diff --git a/src/drivers/imu/analog_devices/Kconfig b/src/drivers/imu/analog_devices/Kconfig index 15f0287c18..96efe0ca8d 100644 --- a/src/drivers/imu/analog_devices/Kconfig +++ b/src/drivers/imu/analog_devices/Kconfig @@ -1,3 +1,3 @@ menu "Analog Devices" rsource "*/Kconfig" -endmenu +endmenu #Analog Devices diff --git a/src/drivers/imu/adis16477/ADIS16477.cpp b/src/drivers/imu/analog_devices/adis16477/ADIS16477.cpp similarity index 100% rename from src/drivers/imu/adis16477/ADIS16477.cpp rename to src/drivers/imu/analog_devices/adis16477/ADIS16477.cpp diff --git a/src/drivers/imu/adis16477/ADIS16477.hpp b/src/drivers/imu/analog_devices/adis16477/ADIS16477.hpp similarity index 100% rename from src/drivers/imu/adis16477/ADIS16477.hpp rename to src/drivers/imu/analog_devices/adis16477/ADIS16477.hpp diff --git a/src/drivers/imu/adis16477/CMakeLists.txt b/src/drivers/imu/analog_devices/adis16477/CMakeLists.txt similarity index 100% rename from src/drivers/imu/adis16477/CMakeLists.txt rename to src/drivers/imu/analog_devices/adis16477/CMakeLists.txt diff --git a/src/drivers/imu/analog_devices/adis16477/Kconfig b/src/drivers/imu/analog_devices/adis16477/Kconfig new file mode 100644 index 0000000000..555128e621 --- /dev/null +++ b/src/drivers/imu/analog_devices/adis16477/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_ANALOG_DEVICES_ADIS16477 + bool "adis16477" + default n + ---help--- + Enable support for adis16477 diff --git a/src/drivers/imu/adis16477/adis16477_main.cpp b/src/drivers/imu/analog_devices/adis16477/adis16477_main.cpp similarity index 100% rename from src/drivers/imu/adis16477/adis16477_main.cpp rename to src/drivers/imu/analog_devices/adis16477/adis16477_main.cpp diff --git a/src/drivers/imu/adis16497/ADIS16497.cpp b/src/drivers/imu/analog_devices/adis16497/ADIS16497.cpp similarity index 100% rename from src/drivers/imu/adis16497/ADIS16497.cpp rename to src/drivers/imu/analog_devices/adis16497/ADIS16497.cpp diff --git a/src/drivers/imu/adis16497/ADIS16497.hpp b/src/drivers/imu/analog_devices/adis16497/ADIS16497.hpp similarity index 100% rename from src/drivers/imu/adis16497/ADIS16497.hpp rename to src/drivers/imu/analog_devices/adis16497/ADIS16497.hpp diff --git a/src/drivers/imu/adis16497/CMakeLists.txt b/src/drivers/imu/analog_devices/adis16497/CMakeLists.txt similarity index 100% rename from src/drivers/imu/adis16497/CMakeLists.txt rename to src/drivers/imu/analog_devices/adis16497/CMakeLists.txt diff --git a/src/drivers/imu/analog_devices/adis16497/Kconfig b/src/drivers/imu/analog_devices/adis16497/Kconfig new file mode 100644 index 0000000000..bc8a6faf30 --- /dev/null +++ b/src/drivers/imu/analog_devices/adis16497/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_ANALOG_DEVICES_ADIS16497 + bool "adis16497" + default n + ---help--- + Enable support for adis16497 diff --git a/src/drivers/imu/adis16497/adis16497_main.cpp b/src/drivers/imu/analog_devices/adis16497/adis16497_main.cpp similarity index 100% rename from src/drivers/imu/adis16497/adis16497_main.cpp rename to src/drivers/imu/analog_devices/adis16497/adis16497_main.cpp diff --git a/src/drivers/imu/bosch/Kconfig b/src/drivers/imu/bosch/Kconfig index ec6fdc2795..ddc4a02ed3 100644 --- a/src/drivers/imu/bosch/Kconfig +++ b/src/drivers/imu/bosch/Kconfig @@ -1,3 +1,3 @@ menu "Bosch" rsource "*/Kconfig" -endmenu +endmenu #Bosch diff --git a/src/drivers/imu/fxas21002c/Kconfig b/src/drivers/imu/fxas21002c/Kconfig deleted file mode 100644 index 15d7c39c81..0000000000 --- a/src/drivers/imu/fxas21002c/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_FXAS21002C - bool "fxas21002c" - default n - ---help--- - Enable support for fxas21002c \ No newline at end of file diff --git a/src/drivers/imu/fxos8701cq/Kconfig b/src/drivers/imu/fxos8701cq/Kconfig deleted file mode 100644 index 697de1dab1..0000000000 --- a/src/drivers/imu/fxos8701cq/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_FXOS8701CQ - bool "fxos8701cq" - default n - ---help--- - Enable support for fxos8701cq \ No newline at end of file diff --git a/src/drivers/imu/l3gd20/Kconfig b/src/drivers/imu/l3gd20/Kconfig deleted file mode 100644 index 417becfc95..0000000000 --- a/src/drivers/imu/l3gd20/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_L3GD20 - bool "l3gd20" - default n - ---help--- - Enable support for l3gd20 \ No newline at end of file diff --git a/src/drivers/imu/lsm303d/Kconfig b/src/drivers/imu/lsm303d/Kconfig deleted file mode 100644 index 49c139db4f..0000000000 --- a/src/drivers/imu/lsm303d/Kconfig +++ /dev/null @@ -1,5 +0,0 @@ -menuconfig DRIVERS_IMU_LSM303D - bool "lsm303d" - default n - ---help--- - Enable support for lsm303d \ No newline at end of file diff --git a/src/drivers/imu/nxp/Kconfig b/src/drivers/imu/nxp/Kconfig new file mode 100644 index 0000000000..ebcede4df7 --- /dev/null +++ b/src/drivers/imu/nxp/Kconfig @@ -0,0 +1,3 @@ +menu "NXP" +rsource "*/Kconfig" +endmenu #NXP diff --git a/src/drivers/imu/fxas21002c/CMakeLists.txt b/src/drivers/imu/nxp/fxas21002c/CMakeLists.txt similarity index 100% rename from src/drivers/imu/fxas21002c/CMakeLists.txt rename to src/drivers/imu/nxp/fxas21002c/CMakeLists.txt diff --git a/src/drivers/imu/fxas21002c/FXAS21002C.cpp b/src/drivers/imu/nxp/fxas21002c/FXAS21002C.cpp similarity index 100% rename from src/drivers/imu/fxas21002c/FXAS21002C.cpp rename to src/drivers/imu/nxp/fxas21002c/FXAS21002C.cpp diff --git a/src/drivers/imu/fxas21002c/FXAS21002C.hpp b/src/drivers/imu/nxp/fxas21002c/FXAS21002C.hpp similarity index 100% rename from src/drivers/imu/fxas21002c/FXAS21002C.hpp rename to src/drivers/imu/nxp/fxas21002c/FXAS21002C.hpp diff --git a/src/drivers/imu/nxp/fxas21002c/Kconfig b/src/drivers/imu/nxp/fxas21002c/Kconfig new file mode 100644 index 0000000000..6c27f5bac9 --- /dev/null +++ b/src/drivers/imu/nxp/fxas21002c/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_NXP_FXAS21002C + bool "fxas21002c" + default n + ---help--- + Enable support for fxas21002c diff --git a/src/drivers/imu/fxas21002c/fxas21002c_i2c.cpp b/src/drivers/imu/nxp/fxas21002c/fxas21002c_i2c.cpp similarity index 100% rename from src/drivers/imu/fxas21002c/fxas21002c_i2c.cpp rename to src/drivers/imu/nxp/fxas21002c/fxas21002c_i2c.cpp diff --git a/src/drivers/imu/fxas21002c/fxas21002c_main.cpp b/src/drivers/imu/nxp/fxas21002c/fxas21002c_main.cpp similarity index 100% rename from src/drivers/imu/fxas21002c/fxas21002c_main.cpp rename to src/drivers/imu/nxp/fxas21002c/fxas21002c_main.cpp diff --git a/src/drivers/imu/fxas21002c/fxas21002c_spi.cpp b/src/drivers/imu/nxp/fxas21002c/fxas21002c_spi.cpp similarity index 100% rename from src/drivers/imu/fxas21002c/fxas21002c_spi.cpp rename to src/drivers/imu/nxp/fxas21002c/fxas21002c_spi.cpp diff --git a/src/drivers/imu/fxos8701cq/CMakeLists.txt b/src/drivers/imu/nxp/fxos8701cq/CMakeLists.txt similarity index 100% rename from src/drivers/imu/fxos8701cq/CMakeLists.txt rename to src/drivers/imu/nxp/fxos8701cq/CMakeLists.txt diff --git a/src/drivers/imu/fxos8701cq/FXOS8701CQ.cpp b/src/drivers/imu/nxp/fxos8701cq/FXOS8701CQ.cpp similarity index 100% rename from src/drivers/imu/fxos8701cq/FXOS8701CQ.cpp rename to src/drivers/imu/nxp/fxos8701cq/FXOS8701CQ.cpp diff --git a/src/drivers/imu/fxos8701cq/FXOS8701CQ.hpp b/src/drivers/imu/nxp/fxos8701cq/FXOS8701CQ.hpp similarity index 100% rename from src/drivers/imu/fxos8701cq/FXOS8701CQ.hpp rename to src/drivers/imu/nxp/fxos8701cq/FXOS8701CQ.hpp diff --git a/src/drivers/imu/nxp/fxos8701cq/Kconfig b/src/drivers/imu/nxp/fxos8701cq/Kconfig new file mode 100644 index 0000000000..1193f23dc8 --- /dev/null +++ b/src/drivers/imu/nxp/fxos8701cq/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_NXP_FXOS8701CQ + bool "fxos8701cq" + default n + ---help--- + Enable support for fxos8701cq diff --git a/src/drivers/imu/fxos8701cq/fxos8701cq_i2c.cpp b/src/drivers/imu/nxp/fxos8701cq/fxos8701cq_i2c.cpp similarity index 100% rename from src/drivers/imu/fxos8701cq/fxos8701cq_i2c.cpp rename to src/drivers/imu/nxp/fxos8701cq/fxos8701cq_i2c.cpp diff --git a/src/drivers/imu/fxos8701cq/fxos8701cq_main.cpp b/src/drivers/imu/nxp/fxos8701cq/fxos8701cq_main.cpp similarity index 100% rename from src/drivers/imu/fxos8701cq/fxos8701cq_main.cpp rename to src/drivers/imu/nxp/fxos8701cq/fxos8701cq_main.cpp diff --git a/src/drivers/imu/fxos8701cq/fxos8701cq_spi.cpp b/src/drivers/imu/nxp/fxos8701cq/fxos8701cq_spi.cpp similarity index 100% rename from src/drivers/imu/fxos8701cq/fxos8701cq_spi.cpp rename to src/drivers/imu/nxp/fxos8701cq/fxos8701cq_spi.cpp diff --git a/src/drivers/imu/st/Kconfig b/src/drivers/imu/st/Kconfig index 9047657caa..8188d8bf50 100644 --- a/src/drivers/imu/st/Kconfig +++ b/src/drivers/imu/st/Kconfig @@ -1,3 +1,3 @@ menu "ST" rsource "*/Kconfig" -endmenu #Invensense +endmenu #ST diff --git a/src/drivers/imu/l3gd20/CMakeLists.txt b/src/drivers/imu/st/l3gd20/CMakeLists.txt similarity index 100% rename from src/drivers/imu/l3gd20/CMakeLists.txt rename to src/drivers/imu/st/l3gd20/CMakeLists.txt diff --git a/src/drivers/imu/st/l3gd20/Kconfig b/src/drivers/imu/st/l3gd20/Kconfig new file mode 100644 index 0000000000..063c494801 --- /dev/null +++ b/src/drivers/imu/st/l3gd20/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_ST_L3GD20 + bool "l3gd20" + default n + ---help--- + Enable support for l3gd20 diff --git a/src/drivers/imu/l3gd20/L3GD20.cpp b/src/drivers/imu/st/l3gd20/L3GD20.cpp similarity index 100% rename from src/drivers/imu/l3gd20/L3GD20.cpp rename to src/drivers/imu/st/l3gd20/L3GD20.cpp diff --git a/src/drivers/imu/l3gd20/L3GD20.hpp b/src/drivers/imu/st/l3gd20/L3GD20.hpp similarity index 100% rename from src/drivers/imu/l3gd20/L3GD20.hpp rename to src/drivers/imu/st/l3gd20/L3GD20.hpp diff --git a/src/drivers/imu/l3gd20/l3gd20_main.cpp b/src/drivers/imu/st/l3gd20/l3gd20_main.cpp similarity index 100% rename from src/drivers/imu/l3gd20/l3gd20_main.cpp rename to src/drivers/imu/st/l3gd20/l3gd20_main.cpp diff --git a/src/drivers/imu/lsm303d/CMakeLists.txt b/src/drivers/imu/st/lsm303d/CMakeLists.txt similarity index 100% rename from src/drivers/imu/lsm303d/CMakeLists.txt rename to src/drivers/imu/st/lsm303d/CMakeLists.txt diff --git a/src/drivers/imu/st/lsm303d/Kconfig b/src/drivers/imu/st/lsm303d/Kconfig new file mode 100644 index 0000000000..8e0fb7463e --- /dev/null +++ b/src/drivers/imu/st/lsm303d/Kconfig @@ -0,0 +1,5 @@ +menuconfig DRIVERS_IMU_ST_LSM303D + bool "lsm303d" + default n + ---help--- + Enable support for lsm303d diff --git a/src/drivers/imu/lsm303d/LSM303D.cpp b/src/drivers/imu/st/lsm303d/LSM303D.cpp similarity index 100% rename from src/drivers/imu/lsm303d/LSM303D.cpp rename to src/drivers/imu/st/lsm303d/LSM303D.cpp diff --git a/src/drivers/imu/lsm303d/LSM303D.hpp b/src/drivers/imu/st/lsm303d/LSM303D.hpp similarity index 100% rename from src/drivers/imu/lsm303d/LSM303D.hpp rename to src/drivers/imu/st/lsm303d/LSM303D.hpp diff --git a/src/drivers/imu/lsm303d/lsm303d_main.cpp b/src/drivers/imu/st/lsm303d/lsm303d_main.cpp similarity index 100% rename from src/drivers/imu/lsm303d/lsm303d_main.cpp rename to src/drivers/imu/st/lsm303d/lsm303d_main.cpp