KConfig cleanup.

This commit is contained in:
bernard 2017-06-06 18:18:44 +08:00
parent c1926d3af7
commit ae6ca7bb02
3 changed files with 197 additions and 147 deletions

View File

@ -1,5 +1,17 @@
menu "RT-Thread Components" menu "RT-Thread Components"
config RT_USING_COMPONENTS_INIT
bool "Use components automatically initialization"
default y
if RT_USING_COMPONENTS_INIT
config RT_USING_USER_MAIN
bool "The main() function as user entry function"
default y
endif
source "$RTT_DIR/components/cplusplus/KConfig"
source "$RTT_DIR/components/finsh/KConfig" source "$RTT_DIR/components/finsh/KConfig"
source "$RTT_DIR/components/dfs/KConfig" source "$RTT_DIR/components/dfs/KConfig"

View File

@ -1,90 +1,94 @@
menu "Device Drivers" menu "Device Drivers"
config RT_USING_DEVICE_IPC
bool "Using device drivers IPC"
default y
config RT_USING_SERIAL config RT_USING_SERIAL
bool "Using serial device drivers" bool "Using serial device drivers"
default y default y
config RT_USING_CAN config RT_USING_CAN
bool "Using CAN device drivers" bool "Using CAN device drivers"
default n default n
config RT_USING_HWTIMER config RT_USING_HWTIMER
bool "Using hardware timer device drivers" bool "Using hardware timer device drivers"
default n default n
config RT_USING_I2C config RT_USING_I2C
bool "Using I2C device drivers" bool "Using I2C device drivers"
default n default n
config RT_USING_PIN config RT_USING_PIN
bool "Using generic GPIO device drivers" bool "Using generic GPIO device drivers"
default y default y
config RT_USING_MTD_NOR config RT_USING_MTD_NOR
bool "Using MTD Nor Flash device drivers" bool "Using MTD Nor Flash device drivers"
default n default n
config RT_USING_MTD_NAND config RT_USING_MTD_NAND
bool "Using MTD Nand Flash device drivers" bool "Using MTD Nand Flash device drivers"
default n default n
config RT_USING_RTC config RT_USING_RTC
bool "Using RTC device drivers" bool "Using RTC device drivers"
default n default n
config RT_USING_SDIO config RT_USING_SDIO
bool "Using SD/MMC device drivers" bool "Using SD/MMC device drivers"
default n default n
config RT_USING_SPI config RT_USING_SPI
bool "Using SPI Bus/Device device drivers" bool "Using SPI Bus/Device device drivers"
default n default n
if RT_USING_SPI if RT_USING_SPI
config RT_USING_W25QXX config RT_USING_W25QXX
bool "Using W25QXX SPI NorFlash" bool "Using W25QXX SPI NorFlash"
default n default n
config RT_USING_GD config RT_USING_GD
bool "Using GD SPI NorFlash" bool "Using GD SPI NorFlash"
default n default n
config RT_USING_ENC28J60 config RT_USING_ENC28J60
bool "Using ENC28J60 SPI Ethernet network interface" bool "Using ENC28J60 SPI Ethernet network interface"
select RT_USING_LWIP select RT_USING_LWIP
default n default n
config RT_USING_SPI_WIFI config RT_USING_SPI_WIFI
bool "Using RW009/007 SPI Wi-Fi wireless interface" bool "Using RW009/007 SPI Wi-Fi wireless interface"
select RT_USING_LWIP select RT_USING_LWIP
default n default n
endif endif
config RT_USING_WDT config RT_USING_WDT
bool "Using Watch Dog device drivers" bool "Using Watch Dog device drivers"
default n default n
config RT_USING_USB_HOST config RT_USING_USB_HOST
bool "Using USB host" bool "Using USB host"
default n default n
if RT_USING_USB_HOST if RT_USING_USB_HOST
config RT_USBH_ADK config RT_USBH_ADK
bool "Enable connected with Android by ADK USB" bool "Enable connected with Android by ADK USB"
default n default n
endif endif
config RT_USING_USB_DEVICE config RT_USING_USB_DEVICE
bool "Using USB device" bool "Using USB device"
default n default n
if RT_USING_USB_DEVICE if RT_USING_USB_DEVICE
config RT_USB_DEVICE_CDC config RT_USB_DEVICE_CDC
bool "Enable to use device as CDC device" bool "Enable to use device as CDC device"
default n default n
config RT_USB_DEVICE_MSTORAGE config RT_USB_DEVICE_MSTORAGE
bool "Enable to use device as Mass Storage device" bool "Enable to use device as Mass Storage device"
default n default n
endif endif
endmenu endmenu

View File

@ -2,126 +2,160 @@ menu "Network stack"
menu "light weight TCP/IP stack" menu "light weight TCP/IP stack"
config RT_USING_LWIP config RT_USING_LWIP
bool "Enable lwIP stack" bool "Enable lwIP stack"
default n default n
if RT_USING_LWIP if RT_USING_LWIP
choice choice
prompt "lwIP version" prompt "lwIP version"
default RT_USING_LWIP141 default RT_USING_LWIP141
help help
Select the lwIP version Select the lwIP version
config RT_USING_LWIP141 config RT_USING_LWIP141
bool "lwIP v1.4.1" bool "lwIP v1.4.1"
config RT_USING_LWIP200 config RT_USING_LWIP200
bool "lwIP v2.0.0" bool "lwIP v2.0.0"
config RT_USING_LWIP202 config RT_USING_LWIP202
bool "lwIP v2.0.2" bool "lwIP v2.0.2"
endchoice endchoice
config RT_LWIP_IGMP config RT_LWIP_IGMP
bool "IGMP protocol" bool "IGMP protocol"
default n default n
config RT_LWIP_ICMP config RT_LWIP_ICMP
bool "ICMP protocol" bool "ICMP protocol"
default y default y
config RT_LWIP_SNMP config RT_LWIP_SNMP
bool "SNMP protocol" bool "SNMP protocol"
default n default n
config RT_LWIP_DNS config RT_LWIP_DNS
bool "Enble DNS for name resolution" bool "Enble DNS for name resolution"
select RT_LWIP_UDP select RT_LWIP_UDP
default y default y
config RT_LWIP_DHCP config RT_LWIP_DHCP
bool "Enable alloc ip address through DHCP" bool "Enable alloc ip address through DHCP"
select RT_LWIP_UDP select RT_LWIP_UDP
default y default y
config RT_LWIP_UDP if RT_LWIP_DHCP
bool "UDP protocol" config IP_SOF_BROADCAST
default y int "SOF broadcast"
default 1
config IP_SOF_BROADCAST_RECV
int "SOF broadcast recv"
default 1
config RT_LWIP_TCP config LWIP_USING_DHCPD
bool "TCP protocol" bool "Enable DHCP server"
default y default y
endif
config RT_LWIP_PPP config RT_LWIP_UDP
bool "PPP protocol" bool "UDP protocol"
default n default y
config RT_LWIP_PPPOE config RT_LWIP_TCP
bool "PPPoE protocol" bool "TCP protocol"
default n default y
config RT_LWIP_PPPOS config RT_LWIP_PPP
bool "PPPoS protocol" bool "PPP protocol"
default n default n
config RT_LWIP_RAW_PCB_NUM config RT_LWIP_PPPOE
int "the number of raw connection" bool "PPPoE protocol"
default 4 default n
config RT_LWIP_UDP_PCB_NUM config RT_LWIP_PPPOS
int "the number of UDP socket" bool "PPPoS protocol"
default 4 default n
if RT_LWIP_TCP config RT_LWIP_PBUF_NUM
config RT_LWIP_TCP_PCB_NUM int "the number of PBUF"
int "the number of TCP socket" default 16
default 4
config RT_LWIP_TCP_SEG_NUM config RT_LWIP_RAW_PCB_NUM
int "the number of TCP segment" int "the number of raw connection"
default 4 default 4
config RT_LWIP_TCP_SND_BUF config RT_LWIP_UDP_PCB_NUM
int "the size of send buffer" int "the number of UDP socket"
default 8196 default 4
config RT_LWIP_TCP_WND if RT_LWIP_TCP
int "the size of TCP send window" config RT_LWIP_TCP_PCB_NUM
default 8196 int "the number of TCP socket"
endif default 4
config RT_LWIP_TCPTHREAD_PRIORITY config RT_LWIP_TCP_SEG_NUM
int "the priority level value of lwIP thread" int "the number of TCP segment"
default 10 default 40
config RT_LWIP_TCPTHREAD_MBOX_SIZE config RT_LWIP_TCP_SND_BUF
int "the number of mail in the lwIP thread mailbox" int "the size of send buffer"
default 8 default 8196
config RT_LWIP_TCPTHREAD_STACKSIZE config RT_LWIP_TCP_WND
int "the stack size of lwIP thread" int "the size of TCP send window"
default 1024 default 8196
endif
config RT_LWIP_REASSEMBLY_FRAG config RT_LWIP_TCPTHREAD_PRIORITY
bool "Enable IP reassembly and frag" int "the priority level value of lwIP thread"
default n default 10
config SO_REUSE config RT_LWIP_TCPTHREAD_MBOX_SIZE
bool "Enable SO_REUSEADDR option" int "the number of mail in the lwIP thread mailbox"
default n default 8
config LWIP_SO_RCVTIMEO config RT_LWIP_TCPTHREAD_STACKSIZE
bool "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing." int "the stack size of lwIP thread"
default n default 1024
config LWIP_SO_SNDTIMEO config RT_LWIP_ETHTHREAD_PRIORITY
bool "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing." int "the priority level value of ethernet thread"
default n default 12
config RT_LWIP_ETHTHREAD_STACKSIZE
int "the stack size of ethernet thread"
default 1024
config RT_LWIP_ETHTHREAD_MBOX_SIZE
int "the number of mail in the ethernet thread mailbox"
default 8
config LWIP_SO_RCVBUF config RT_LWIP_REASSEMBLY_FRAG
bool "Enable SO_RCVBUF processing" bool "Enable IP reassembly and frag"
default n default n
endif
config LWIP_NETIF_STATUS_CALLBACK
int "netif status callback"
default 1
config SO_REUSE
int "Enable SO_REUSEADDR option"
default 1
config LWIP_SO_RCVTIMEO
int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
default 1
config LWIP_SO_SNDTIMEO
int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
default 1
config LWIP_SO_RCVBUF
int "Enable SO_RCVBUF processing"
default 1
endif
endmenu endmenu