未验证 提交 a3686952 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #1642 from liangyongxiang/kconfig

[components] format Kconfig
...@@ -12,7 +12,7 @@ config RT_USING_RTT_CMSIS ...@@ -12,7 +12,7 @@ config RT_USING_RTT_CMSIS
bool "Using CMSIS Header files in RT-Thread" bool "Using CMSIS Header files in RT-Thread"
default n default n
help help
Use CMSIS header files in RT-Thread/components/CMSIS. Otherwise, use the Use CMSIS header files in RT-Thread/components/CMSIS. Otherwise, use the
CMSIS header files in BSP. CMSIS header files in BSP.
endmenu endmenu
......
...@@ -13,14 +13,14 @@ if RT_USING_DFS ...@@ -13,14 +13,14 @@ if RT_USING_DFS
default y default y
config DFS_FILESYSTEMS_MAX config DFS_FILESYSTEMS_MAX
int "The maximal number of mounted file system" int "The maximal number of mounted file system"
default 4 if RT_USING_DFS_NFS default 4 if RT_USING_DFS_NFS
default 2 default 2
config DFS_FILESYSTEM_TYPES_MAX config DFS_FILESYSTEM_TYPES_MAX
int "The maximal number of file system type" int "The maximal number of file system type"
default 4 if RT_USING_DFS_NFS default 4 if RT_USING_DFS_NFS
default 2 default 2
config DFS_FD_MAX config DFS_FD_MAX
int "The maximal number of opened files" int "The maximal number of opened files"
...@@ -40,9 +40,9 @@ if RT_USING_DFS ...@@ -40,9 +40,9 @@ if RT_USING_DFS
config RT_DFS_ELM_WORD_ACCESS config RT_DFS_ELM_WORD_ACCESS
bool "Using RT_DFS_ELM_WORD_ACCESS" bool "Using RT_DFS_ELM_WORD_ACCESS"
default y default y
choice choice
prompt "Support long file name" prompt "Support long file name"
default RT_DFS_ELM_USE_LFN_0 default RT_DFS_ELM_USE_LFN_0
...@@ -117,7 +117,7 @@ if RT_USING_DFS ...@@ -117,7 +117,7 @@ if RT_USING_DFS
default n default n
if RT_USING_DFS_UFFS if RT_USING_DFS_UFFS
choice choice
prompt "UFFS ECC mode" prompt "UFFS ECC mode"
default RT_UFFS_ECC_MODE_1 default RT_UFFS_ECC_MODE_1
......
...@@ -48,13 +48,13 @@ config RT_USING_CPUTIME ...@@ -48,13 +48,13 @@ config RT_USING_CPUTIME
ms_tick = clock_cpu_millisecond(t2 - t1); ms_tick = clock_cpu_millisecond(t2 - t1);
us_tick = clock_cpu_microsecond(t2 - t1); us_tick = clock_cpu_microsecond(t2 - t1);
if RT_USING_CPUTIME if RT_USING_CPUTIME
config RT_USING_CPUTIME_CORTEXM config RT_USING_CPUTIME_CORTEXM
bool "Use DWT for CPU time" bool "Use DWT for CPU time"
default y default y
depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7 depends on ARCH_ARM_CORTEX_M3 || ARCH_ARM_CORTEX_M4 || ARCH_ARM_CORTEX_M7
help help
Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use Some Cortex-M3/4/7 MCU has Data Watchpoint and Trace Register, use
the cycle counter in DWT for CPU time. the cycle counter in DWT for CPU time.
endif endif
...@@ -103,7 +103,7 @@ config RT_USING_RTC ...@@ -103,7 +103,7 @@ config RT_USING_RTC
select PKG_USING_NETUTILS select PKG_USING_NETUTILS
select PKG_NETUTILS_NTP select PKG_NETUTILS_NTP
default n default n
if RTC_SYNC_USING_NTP if RTC_SYNC_USING_NTP
config RTC_NTP_FIRST_SYNC_DELAY config RTC_NTP_FIRST_SYNC_DELAY
int "NTP first sync delay time(second) for network connect" int "NTP first sync delay time(second) for network connect"
...@@ -153,20 +153,20 @@ config RT_USING_SPI ...@@ -153,20 +153,20 @@ config RT_USING_SPI
config RT_USING_SFUD config RT_USING_SFUD
bool "Using Serial Flash Universal Driver" bool "Using Serial Flash Universal Driver"
default n default n
if RT_USING_SFUD if RT_USING_SFUD
config RT_SFUD_USING_SFDP config RT_SFUD_USING_SFDP
bool "Using auto probe flash JEDEC SFDP parameter" bool "Using auto probe flash JEDEC SFDP parameter"
default y default y
config RT_SFUD_USING_FLASH_INFO_TABLE config RT_SFUD_USING_FLASH_INFO_TABLE
bool "Using defined supported flash chip information table" bool "Using defined supported flash chip information table"
default y default y
config RT_DEBUG_SFUD config RT_DEBUG_SFUD
bool "Show more SFUD debug information" bool "Show more SFUD debug information"
default n default n
endif endif
config RT_USING_W25QXX config RT_USING_W25QXX
bool "Using W25QXX SPI NorFlash" bool "Using W25QXX SPI NorFlash"
default n default n
...@@ -246,7 +246,7 @@ menu "Using USB" ...@@ -246,7 +246,7 @@ menu "Using USB"
config USB_PRODUCT_ID config USB_PRODUCT_ID
hex "USB Product ID" hex "USB Product ID"
default 0x0001 default 0x0001
config RT_USB_DEVICE_COMPOSITE config RT_USB_DEVICE_COMPOSITE
bool "Enable composite device" bool "Enable composite device"
default n default n
......
...@@ -22,7 +22,7 @@ if RT_USING_LIBC && RT_USING_DFS ...@@ -22,7 +22,7 @@ if RT_USING_LIBC && RT_USING_DFS
config RT_USING_POSIX_TERMIOS config RT_USING_POSIX_TERMIOS
bool "Enable termios feature" bool "Enable termios feature"
default n default n
config RT_USING_POSIX_AIO config RT_USING_POSIX_AIO
bool "Enable AIO" bool "Enable AIO"
default n default n
......
menu "Modbus master and slave stack" menu "Modbus master and slave stack"
config RT_USING_MODBUS config RT_USING_MODBUS
bool "Enable Modbus stack" bool "Enable Modbus stack"
default n default n
if RT_USING_MODBUS if RT_USING_MODBUS
config RT_MODBUS_MASTER_RTU config RT_MODBUS_MASTER_RTU
bool "RTU master mode" bool "RTU master mode"
default n default n
config RT_MODBUS_SLAVE_RTU config RT_MODBUS_SLAVE_RTU
bool "RTU slave mode" bool "RTU slave mode"
default n default n
if RT_MODBUS_SLAVE_RTU if RT_MODBUS_SLAVE_RTU
config RT_MODBUS_SLAVE_USE_CONTROL_PIN config RT_MODBUS_SLAVE_USE_CONTROL_PIN
bool "Use Contorl Pin" bool "Use Contorl Pin"
...@@ -22,6 +22,6 @@ config RT_USING_MODBUS ...@@ -22,6 +22,6 @@ config RT_USING_MODBUS
default 10 default 10
endif endif
endif endif
endif endif
endmenu endmenu
...@@ -10,8 +10,8 @@ if RT_USING_VBUS ...@@ -10,8 +10,8 @@ if RT_USING_VBUS
default n default n
help help
When enable remote file system, the application can visit the remote file system When enable remote file system, the application can visit the remote file system
through VBUS with POSIX file I/O. through VBUS with POSIX file I/O.
config RT_USING_VBUS_RSHELL config RT_USING_VBUS_RSHELL
bool "Enable Remote Shell on VBUS" bool "Enable Remote Shell on VBUS"
default n default n
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册