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"
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/dfs/KConfig"

View File

@ -1,5 +1,9 @@
menu "Device Drivers"
config RT_USING_DEVICE_IPC
bool "Using device drivers IPC"
default y
config RT_USING_SERIAL
bool "Using serial device drivers"
default y

View File

@ -44,6 +44,20 @@ config RT_USING_LWIP
select RT_LWIP_UDP
default y
if RT_LWIP_DHCP
config IP_SOF_BROADCAST
int "SOF broadcast"
default 1
config IP_SOF_BROADCAST_RECV
int "SOF broadcast recv"
default 1
config LWIP_USING_DHCPD
bool "Enable DHCP server"
default y
endif
config RT_LWIP_UDP
bool "UDP protocol"
default y
@ -64,6 +78,10 @@ config RT_USING_LWIP
bool "PPPoS protocol"
default n
config RT_LWIP_PBUF_NUM
int "the number of PBUF"
default 16
config RT_LWIP_RAW_PCB_NUM
int "the number of raw connection"
default 4
@ -79,7 +97,7 @@ config RT_USING_LWIP
config RT_LWIP_TCP_SEG_NUM
int "the number of TCP segment"
default 4
default 40
config RT_LWIP_TCP_SND_BUF
int "the size of send buffer"
@ -102,25 +120,41 @@ config RT_USING_LWIP
int "the stack size of lwIP thread"
default 1024
config RT_LWIP_ETHTHREAD_PRIORITY
int "the priority level value of ethernet thread"
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 RT_LWIP_REASSEMBLY_FRAG
bool "Enable IP reassembly and frag"
default n
config LWIP_NETIF_STATUS_CALLBACK
int "netif status callback"
default 1
config SO_REUSE
bool "Enable SO_REUSEADDR option"
default n
int "Enable SO_REUSEADDR option"
default 1
config LWIP_SO_RCVTIMEO
bool "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
default n
int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
default 1
config LWIP_SO_SNDTIMEO
bool "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
default n
int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
default 1
config LWIP_SO_RCVBUF
bool "Enable SO_RCVBUF processing"
default n
int "Enable SO_RCVBUF processing"
default 1
endif
endmenu