From 36bd5d351d55b28fc96cf38a7fba6e10f0f4afd9 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Sun, 15 Sep 2024 16:23:26 +0800 Subject: [PATCH 1/2] [sensor_v1]lsm303agr pkg adapt sensor_v1 --- peripherals/sensors/lsm303agr/Kconfig | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/peripherals/sensors/lsm303agr/Kconfig b/peripherals/sensors/lsm303agr/Kconfig index 7e5418476e..04210ee473 100644 --- a/peripherals/sensors/lsm303agr/Kconfig +++ b/peripherals/sensors/lsm303agr/Kconfig @@ -6,18 +6,20 @@ menuconfig PKG_USING_LSM303AGR if PKG_USING_LSM303AGR + config PKG_LSM303AGR_ACCE_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n + + config PKG_LSM303AGR_MAG_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n + config PKG_LSM303AGR_PATH string default "/packages/peripherals/sensors/lsm303agr" - config PKG_USING_LSM303AGR_ACCE - bool "Enable lsm303agr acce" - default y - - config PKG_USING_LSM303AGR_MAG - bool "Enable lsm303agr mag" - default y - choice prompt "Version" default PKG_USING_LSM303AGR_LATEST_VERSION From 32efc3d1fe2201148c25ea98e18a7b30768f5d03 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Fri, 20 Sep 2024 16:30:01 +0800 Subject: [PATCH 2/2] [sensor_v1]lsm303agr pkg adapt sensor_v1 --- peripherals/sensors/lsm303agr/Kconfig | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/peripherals/sensors/lsm303agr/Kconfig b/peripherals/sensors/lsm303agr/Kconfig index 04210ee473..7bb5f674ab 100644 --- a/peripherals/sensors/lsm303agr/Kconfig +++ b/peripherals/sensors/lsm303agr/Kconfig @@ -6,15 +6,19 @@ menuconfig PKG_USING_LSM303AGR if PKG_USING_LSM303AGR - config PKG_LSM303AGR_ACCE_USING_SENSOR_V1 - bool "Enable sensor_v1 divce framework" - select RT_USING_SENSOR - default n + config PKG_LSM303AGR_USING_SENSOR_V1 + bool "Enable sensor_v1 divce framework" + select RT_USING_SENSOR + default n - config PKG_LSM303AGR_MAG_USING_SENSOR_V1 - bool "Enable sensor_v1 divce framework" - select RT_USING_SENSOR - default n + if PKG_LSM303AGR_USING_SENSOR_V1 + config PKG_USING_LSM303AGR_ACCE + bool "Enable lsm303agr acce" + default y + config PKG_USING_LSM303AGR_MAG + bool "Enable lsm303agr mag" + default y + endif config PKG_LSM303AGR_PATH string