From 09b3fc73a09259c5488e1f9741e5b80877ec4ecf Mon Sep 17 00:00:00 2001 From: wodemingzijiaoaxuan <1512861905@qq.com> Date: Tue, 24 Dec 2024 23:19:50 +0800 Subject: [PATCH 1/4] sensor v1 df220 kconfig adapt --- peripherals/sensors/df220/Kconfig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/peripherals/sensors/df220/Kconfig b/peripherals/sensors/df220/Kconfig index 396149880c..e2b2a3ff12 100755 --- a/peripherals/sensors/df220/Kconfig +++ b/peripherals/sensors/df220/Kconfig @@ -1,4 +1,3 @@ - # Kconfig file for package df220 menuconfig PKG_USING_DF220 bool "df220 sensor driver package, support: force sensor." @@ -10,6 +9,11 @@ if PKG_USING_DF220 string default "/packages/peripherals/sensors/df220" + config PKG_DF220_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n + choice prompt "Version" default PKG_USING_DF220_LATEST_VERSION @@ -29,4 +33,3 @@ if PKG_USING_DF220 default "latest" if PKG_USING_DF220_LATEST_VERSION endif - From d135b1af3027a05a865f42d1076215b8a3c916d5 Mon Sep 17 00:00:00 2001 From: wodemingzijiaoaxuan <1512861905@qq.com> Date: Tue, 24 Dec 2024 23:42:48 +0800 Subject: [PATCH 2/4] sensor v1 gy271 kconfig adapt --- peripherals/sensors/gy271/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/peripherals/sensors/gy271/Kconfig b/peripherals/sensors/gy271/Kconfig index 7d4b3aadfc..7ee1eeb6ed 100644 --- a/peripherals/sensors/gy271/Kconfig +++ b/peripherals/sensors/gy271/Kconfig @@ -10,6 +10,11 @@ if PKG_USING_GY271 string default "/packages/peripherals/sensors/gy271" + config PKG_HONEY_GY271_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n + choice prompt "Version" default PKG_USING_GY271_LATEST_VERSION From a5b17a0af8b7123dcfa37ce060f3250da6ce6bbf Mon Sep 17 00:00:00 2001 From: wodemingzijiaoaxuan <1512861905@qq.com> Date: Wed, 25 Dec 2024 00:14:03 +0800 Subject: [PATCH 3/4] sensor v1 hdc1000 kconfig adapt --- peripherals/sensors/hdc1000/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peripherals/sensors/hdc1000/Kconfig b/peripherals/sensors/hdc1000/Kconfig index b06e5a8d57..18f0100273 100644 --- a/peripherals/sensors/hdc1000/Kconfig +++ b/peripherals/sensors/hdc1000/Kconfig @@ -11,6 +11,10 @@ if PKG_USING_HDC1000 string default "/packages/peripherals/sensors/hdc1000" + config PKG_HDC1000_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n choice prompt "Version" default PKG_USING_HDC1000_LATEST_VERSION From f1f7ac48f2b5e85636c28b6372541ae7c0011371 Mon Sep 17 00:00:00 2001 From: wodemingzijiaoaxuan <1512861905@qq.com> Date: Wed, 25 Dec 2024 00:26:05 +0800 Subject: [PATCH 4/4] sensor v1 hmc5883 kconfig adapt --- peripherals/sensors/hmc5883/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peripherals/sensors/hmc5883/Kconfig b/peripherals/sensors/hmc5883/Kconfig index ba5c80515c..14d74272ce 100644 --- a/peripherals/sensors/hmc5883/Kconfig +++ b/peripherals/sensors/hmc5883/Kconfig @@ -9,6 +9,10 @@ if PKG_USING_HMC5883 string default "/packages/peripherals/sensors/hmc5883" + config PKG_INTF_HMC5883_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n choice prompt "Version" default PKG_USING_HMC5883_LATEST_VERSION