From ba5f2a5bb63950a9360de6910d4c07f4fa80a3fb Mon Sep 17 00:00:00 2001 From: liuduanfei <939763442@qq.com> Date: Tue, 4 Aug 2020 15:10:43 +0800 Subject: [PATCH 1/3] Update Kconfig Change I2C configuration hierarchy --- components/drivers/Kconfig | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 4ebde15125..6dffd9d5ea 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -95,12 +95,11 @@ if RT_USING_I2C config RT_USING_I2C_BITOPS bool "Use GPIO to simulate I2C" default y -endif - -if RT_USING_I2C_BITOPS - config RT_I2C_BITOPS_DEBUG - bool "Use simulate I2C debug message" - default n + if RT_USING_I2C_BITOPS + config RT_I2C_BITOPS_DEBUG + bool "Use simulate I2C debug message" + default n + endif endif config RT_USING_PIN From 719b71a0155cc5053a238ca004d8c8ff73a5a989 Mon Sep 17 00:00:00 2001 From: liuduanfei <939763442@qq.com> Date: Tue, 4 Aug 2020 15:11:48 +0800 Subject: [PATCH 2/3] Update Kconfig --- components/drivers/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 6dffd9d5ea..471f68054f 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -95,6 +95,7 @@ if RT_USING_I2C config RT_USING_I2C_BITOPS bool "Use GPIO to simulate I2C" default y + if RT_USING_I2C_BITOPS config RT_I2C_BITOPS_DEBUG bool "Use simulate I2C debug message" From 27a6ebf4b1f5be57661c7c6152ec3efc96a14855 Mon Sep 17 00:00:00 2001 From: liuduanfei <939763442@qq.com> Date: Wed, 5 Aug 2020 10:06:20 +0800 Subject: [PATCH 3/3] Update Kconfig --- components/drivers/Kconfig | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 471f68054f..457b8751fe 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -97,10 +97,10 @@ if RT_USING_I2C default y if RT_USING_I2C_BITOPS - config RT_I2C_BITOPS_DEBUG - bool "Use simulate I2C debug message" - default n - endif + config RT_I2C_BITOPS_DEBUG + bool "Use simulate I2C debug message" + default n + endif endif config RT_USING_PIN