Kconfig 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. menu "Network"
  2. menu "Socket abstraction layer"
  3. config RT_USING_SAL
  4. bool "Enable socket abstraction layer"
  5. default n
  6. select RT_USING_DFS
  7. if RT_USING_SAL
  8. if RT_USING_LWIP || AT_USING_SOCKET
  9. menu "protocol stack implement"
  10. config SAL_USING_LWIP
  11. bool "Support lwIP stack"
  12. default y
  13. depends on RT_USING_LWIP
  14. config SAL_USING_AT
  15. bool "Support AT Commands stack"
  16. default y
  17. depends on AT_USING_SOCKET
  18. endmenu
  19. endif
  20. config SAL_USING_POSIX
  21. bool "Enable BSD socket operated by file system API"
  22. select RT_USING_LIBC
  23. select RT_USING_POSIX
  24. default n
  25. help
  26. Let BSD socket operated by file system API, such as read/write and involveed in select/poll POSIX APIs.
  27. config SAL_PROTO_FAMILIES_NUM
  28. int "the number of protocol family"
  29. default 4
  30. endif
  31. endmenu
  32. menu "light weight TCP/IP stack"
  33. config RT_USING_LWIP
  34. bool "Enable lwIP stack"
  35. select RT_USING_DEVICE
  36. default n
  37. if RT_USING_LWIP
  38. choice
  39. prompt "lwIP version"
  40. default RT_USING_LWIP202
  41. help
  42. Select the lwIP version
  43. config RT_USING_LWIP141
  44. bool "lwIP v1.4.1"
  45. config RT_USING_LWIP202
  46. bool "lwIP v2.0.2"
  47. endchoice
  48. if RT_USING_LWIP202
  49. config RT_USING_LWIP_IPV6
  50. bool "IPV6 protocol"
  51. default n
  52. endif
  53. config RT_LWIP_IGMP
  54. bool "IGMP protocol"
  55. default y
  56. config RT_LWIP_ICMP
  57. bool "ICMP protocol"
  58. default y
  59. config RT_LWIP_SNMP
  60. bool "SNMP protocol"
  61. select RT_LWIP_STATS
  62. default n
  63. config RT_LWIP_DNS
  64. bool "Enble DNS for name resolution"
  65. select RT_LWIP_UDP
  66. default y
  67. config RT_LWIP_DHCP
  68. bool "Enable alloc ip address through DHCP"
  69. select RT_LWIP_UDP
  70. default y
  71. if RT_LWIP_DHCP
  72. config IP_SOF_BROADCAST
  73. int "SOF broadcast"
  74. default 1
  75. config IP_SOF_BROADCAST_RECV
  76. int "SOF broadcast recv"
  77. default 1
  78. endif
  79. menu "Static IPv4 Address"
  80. config RT_LWIP_IPADDR
  81. string "IPv4: IP address"
  82. default 192.168.1.30
  83. config RT_LWIP_GWADDR
  84. string "IPv4: Gateway address"
  85. default 192.168.1.1
  86. config RT_LWIP_MSKADDR
  87. string "IPv4: Mask address"
  88. default 255.255.255.0
  89. endmenu
  90. config RT_LWIP_UDP
  91. bool "UDP protocol"
  92. default y
  93. config RT_LWIP_TCP
  94. bool "TCP protocol"
  95. default y
  96. config RT_LWIP_RAW
  97. bool "RAW protocol"
  98. default n
  99. config RT_LWIP_PPP
  100. bool "PPP protocol"
  101. default n
  102. if RT_LWIP_PPP
  103. config RT_LWIP_PPPOE
  104. bool "PPPoE protocol"
  105. default n
  106. config RT_LWIP_PPPOS
  107. bool "PPPoS protocol"
  108. default n
  109. endif
  110. config RT_MEMP_NUM_NETCONN
  111. int "the number of struct netconns"
  112. default 8
  113. config RT_LWIP_PBUF_NUM
  114. int "the number of PBUF"
  115. default 16
  116. config RT_LWIP_RAW_PCB_NUM
  117. int "the number of raw connection"
  118. default 4
  119. config RT_LWIP_UDP_PCB_NUM
  120. int "the number of UDP socket"
  121. default 8 if RT_USING_DFS_NFS
  122. default 4
  123. if RT_LWIP_TCP
  124. config RT_LWIP_TCP_PCB_NUM
  125. int "the number of TCP socket"
  126. default 4
  127. config RT_LWIP_TCP_SEG_NUM
  128. int "the number of TCP segment"
  129. default 40
  130. config RT_LWIP_TCP_SND_BUF
  131. int "the size of send buffer"
  132. default 8196
  133. config RT_LWIP_TCP_WND
  134. int "the size of TCP send window"
  135. default 8196
  136. endif
  137. config RT_LWIP_TCPTHREAD_PRIORITY
  138. int "the priority level value of lwIP thread"
  139. default 10
  140. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  141. int "the number of mail in the lwIP thread mailbox"
  142. default 8
  143. config RT_LWIP_TCPTHREAD_STACKSIZE
  144. int "the stack size of lwIP thread"
  145. default 1024
  146. config LWIP_NO_RX_THREAD
  147. bool "Not use Rx thread"
  148. default n
  149. config LWIP_NO_TX_THREAD
  150. bool "Not use Tx thread"
  151. default n
  152. config RT_LWIP_ETHTHREAD_PRIORITY
  153. int "the priority level value of ethernet thread"
  154. default 12
  155. config RT_LWIP_ETHTHREAD_STACKSIZE
  156. int "the stack size of ethernet thread"
  157. default 1024
  158. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  159. int "the number of mail in the ethernet thread mailbox"
  160. default 8
  161. config RT_LWIP_REASSEMBLY_FRAG
  162. bool "Enable IP reassembly and frag"
  163. default n
  164. config LWIP_NETIF_STATUS_CALLBACK
  165. int "netif status callback"
  166. default 1
  167. config SO_REUSE
  168. int "Enable SO_REUSEADDR option"
  169. default 1
  170. config LWIP_SO_RCVTIMEO
  171. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  172. default 1
  173. config LWIP_SO_SNDTIMEO
  174. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  175. default 1
  176. config LWIP_SO_RCVBUF
  177. int "Enable SO_RCVBUF processing"
  178. default 1
  179. config RT_LWIP_NETIF_LOOPBACK
  180. bool "Enable netif loopback"
  181. default n
  182. config LWIP_NETIF_LOOPBACK
  183. int
  184. default 1 if RT_LWIP_NETIF_LOOPBACK
  185. default 0 if !RT_LWIP_NETIF_LOOPBACK
  186. config RT_LWIP_STATS
  187. bool "Enable lwIP statistics"
  188. default n
  189. menuconfig RT_LWIP_DEBUG
  190. bool "Enable lwIP Debugging Options"
  191. default n
  192. if RT_LWIP_DEBUG
  193. config RT_LWIP_SYS_DEBUG
  194. bool "Enable Debugging of sys.c"
  195. default n
  196. config RT_LWIP_ETHARP_DEBUG
  197. bool "Enable Debugging of etharp.c"
  198. default n
  199. config RT_LWIP_PPP_DEBUG
  200. bool "Enable Debugging of PPP"
  201. default n
  202. config RT_LWIP_MEM_DEBUG
  203. bool "Enable Debugging of mem.c"
  204. default n
  205. config RT_LWIP_MEMP_DEBUG
  206. bool "Enable Debugging of memp.c"
  207. default n
  208. config RT_LWIP_PBUF_DEBUG
  209. bool "Enable Debugging of pbuf.c"
  210. default n
  211. config RT_LWIP_API_LIB_DEBUG
  212. bool "Enable Debugging of api_lib.c"
  213. default n
  214. config RT_LWIP_API_MSG_DEBUG
  215. bool "Enable Debugging of api_msg.c"
  216. default n
  217. config RT_LWIP_TCPIP_DEBUG
  218. bool "Enable Debugging of tcpip.c"
  219. default n
  220. config RT_LWIP_NETIF_DEBUG
  221. bool "Enable Debugging of netif.c"
  222. default n
  223. config RT_LWIP_SOCKETS_DEBUG
  224. bool "Enable Debugging of sockets.c"
  225. default n
  226. config RT_LWIP_DNS_DEBUG
  227. bool "Enable Debugging of DNS"
  228. default n
  229. config RT_LWIP_AUTOIP_DEBUG
  230. bool "Enable Debugging of autoip.c"
  231. default n
  232. config RT_LWIP_DHCP_DEBUG
  233. bool "Enable Debugging of dhcp.c"
  234. default n
  235. config RT_LWIP_IP_DEBUG
  236. bool "Enable Debugging of IP"
  237. default n
  238. config RT_LWIP_IP_REASS_DEBUG
  239. bool "Enable debugging in ip_frag.c for both frag & reass"
  240. default n
  241. config RT_LWIP_ICMP_DEBUG
  242. bool "Enable Debugging of icmp.c"
  243. default n
  244. config RT_LWIP_IGMP_DEBUG
  245. bool "Enable Debugging of igmp.c"
  246. default n
  247. config RT_LWIP_UDP_DEBUG
  248. bool "Enable Debugging of UDP"
  249. default n
  250. config RT_LWIP_TCP_DEBUG
  251. bool "Enable Debugging of TCP"
  252. default n
  253. config RT_LWIP_TCP_INPUT_DEBUG
  254. bool "Enable Debugging of tcp_in.c"
  255. default n
  256. config RT_LWIP_TCP_OUTPUT_DEBUG
  257. bool "Enable Debugging of tcp_out.c"
  258. default n
  259. config RT_LWIP_TCP_RTO_DEBUG
  260. bool "Enable debugging in TCP for retransmit"
  261. default n
  262. config RT_LWIP_TCP_CWND_DEBUG
  263. bool "Enable debugging for TCP congestion window"
  264. default n
  265. config RT_LWIP_TCP_WND_DEBUG
  266. bool "Enable debugging in tcp_in.c for window updating"
  267. default n
  268. config RT_LWIP_TCP_FR_DEBUG
  269. bool "Enable debugging in tcp_in.c for fast retransmit"
  270. default n
  271. config RT_LWIP_TCP_QLEN_DEBUG
  272. bool "Enable debugging for TCP queue lengths"
  273. default n
  274. config RT_LWIP_TCP_RST_DEBUG
  275. bool "Enable debugging for TCP with the RST message"
  276. default n
  277. endif
  278. endif
  279. endmenu
  280. source "$RTT_DIR/components/net/freemodbus/Kconfig"
  281. source "$RTT_DIR/components/net/at/Kconfig"
  282. if RT_USING_LWIP
  283. config LWIP_USING_DHCPD
  284. bool "Enable DHCP server"
  285. default n
  286. if LWIP_USING_DHCPD
  287. config DHCPD_SERVER_IP
  288. string "DHCPD SERVER IP address"
  289. default 192.168.169.1
  290. config DHCPD_USING_ROUTER
  291. bool "alloc gateway ip for router"
  292. default y
  293. config LWIP_USING_CUSTOMER_DNS_SERVER
  294. bool "Enable customer DNS server config"
  295. default n
  296. if LWIP_USING_CUSTOMER_DNS_SERVER
  297. config DHCP_DNS_SERVER_IP
  298. string "Custom DNS server IP address"
  299. default 1.1.1.1
  300. endif
  301. endif
  302. endif
  303. endmenu