From 4657312f9debec8b5efb0caa124a945ead94f146 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Mon, 25 Dec 2023 20:00:00 +0800 Subject: [PATCH] [kconfig] fix Kconfig warnings --- components/drivers/Kconfig | 16 ++++++++-------- components/net/lwip/Kconfig | 10 +++++----- components/vbus/Kconfig | 4 +--- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index cb3e9a0e09..0a1db41bf9 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -159,7 +159,7 @@ if RT_USING_I2C default 2 config RT_SOFT_I2C1_BUS_NAME string "Bus name" - default i2c1 + default "i2c1" config RT_SOFT_I2C1_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -183,7 +183,7 @@ if RT_USING_I2C default 4 config RT_SOFT_I2C2_BUS_NAME string "Bus name" - default i2c2 + default "i2c2" config RT_SOFT_I2C2_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -207,7 +207,7 @@ if RT_USING_I2C default 6 config RT_SOFT_I2C3_BUS_NAME string "Bus name" - default i2c3 + default "i2c3" config RT_SOFT_I2C3_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -231,7 +231,7 @@ if RT_USING_I2C default 8 config RT_SOFT_I2C4_BUS_NAME string "Bus name" - default i2c4 + default "i2c4" config RT_SOFT_I2C4_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -255,7 +255,7 @@ if RT_USING_I2C default 10 config RT_SOFT_I2C5_BUS_NAME string "Bus name" - default i2c5 + default "i2c5" config RT_SOFT_I2C5_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -279,7 +279,7 @@ if RT_USING_I2C default 12 config RT_SOFT_I2C6_BUS_NAME string "Bus name" - default i2c6 + default "i2c6" config RT_SOFT_I2C6_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -303,7 +303,7 @@ if RT_USING_I2C default 14 config RT_SOFT_I2C7_BUS_NAME string "Bus name" - default i2c7 + default "i2c7" config RT_SOFT_I2C7_TIMING_DELAY int "Timing delay (us)" range 0 32767 @@ -327,7 +327,7 @@ if RT_USING_I2C default 16 config RT_SOFT_I2C8_BUS_NAME string "Bus name" - default i2c8 + default "i2c8" config RT_SOFT_I2C8_TIMING_DELAY int "Timing delay (us)" range 0 32767 diff --git a/components/net/lwip/Kconfig b/components/net/lwip/Kconfig index 0609a497e1..883c14a4d1 100644 --- a/components/net/lwip/Kconfig +++ b/components/net/lwip/Kconfig @@ -92,15 +92,15 @@ if RT_USING_LWIP menu "Static IPv4 Address" config RT_LWIP_IPADDR string "IPv4: IP address" - default 192.168.1.30 + default "192.168.1.30" config RT_LWIP_GWADDR string "IPv4: Gateway address" - default 192.168.1.1 + default "192.168.1.1" config RT_LWIP_MSKADDR string "IPv4: Mask address" - default 255.255.255.0 + default "255.255.255.0" endmenu config RT_LWIP_UDP @@ -265,7 +265,7 @@ if RT_USING_LWIP if LWIP_USING_DHCPD config DHCPD_SERVER_IP string "DHCPD SERVER IP address" - default 192.168.169.1 + default "192.168.169.1" config DHCPD_USING_ROUTER bool "alloc gateway ip for router" @@ -277,7 +277,7 @@ if RT_USING_LWIP if LWIP_USING_CUSTOMER_DNS_SERVER config DHCP_DNS_SERVER_IP string "Custom DNS server IP address" - default 1.1.1.1 + default "1.1.1.1" endif endif diff --git a/components/vbus/Kconfig b/components/vbus/Kconfig index 74a891d2a0..d7605f595d 100644 --- a/components/vbus/Kconfig +++ b/components/vbus/Kconfig @@ -18,7 +18,7 @@ if RT_USING_VBUS Operating System. config RT_VBUS_USING_TESTS - bool "Enable tests on VBus " + bool "Enable tests on VBus" default n config _RT_VBUS_RING_BASE @@ -33,8 +33,6 @@ if RT_USING_VBUS config RT_VBUS_GUEST_VIRQ int "RT_VBUS_GUEST_VIRQ" - help - RT_VBUS_GUEST_VIRQ help The interrupt number used to notify the client on a particular system.