Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. menu "Network stack"
  2. menu "light weight TCP/IP stack"
  3. config RT_USING_LWIP
  4. bool "Enable lwIP stack"
  5. select RT_USING_DEVICE
  6. default n
  7. if RT_USING_LWIP
  8. choice
  9. prompt "lwIP version"
  10. default RT_USING_LWIP141
  11. help
  12. Select the lwIP version
  13. config RT_USING_LWIP141
  14. bool "lwIP v1.4.1"
  15. config RT_USING_LWIP202
  16. bool "lwIP v2.0.2"
  17. endchoice
  18. if RT_USING_LWIP202
  19. config RT_USING_LWIP_IPV6
  20. bool "IPV6 protocol"
  21. default n
  22. endif
  23. config RT_LWIP_IGMP
  24. bool "IGMP protocol"
  25. default y
  26. config RT_LWIP_ICMP
  27. bool "ICMP protocol"
  28. default y
  29. config RT_LWIP_SNMP
  30. bool "SNMP protocol"
  31. default n
  32. config RT_LWIP_DNS
  33. bool "Enble DNS for name resolution"
  34. select RT_LWIP_UDP
  35. default y
  36. config RT_LWIP_DHCP
  37. bool "Enable alloc ip address through DHCP"
  38. select RT_LWIP_UDP
  39. default y
  40. if RT_LWIP_DHCP
  41. config IP_SOF_BROADCAST
  42. int "SOF broadcast"
  43. default 1
  44. config IP_SOF_BROADCAST_RECV
  45. int "SOF broadcast recv"
  46. default 1
  47. endif
  48. menu "Static IPv4 Address"
  49. config RT_LWIP_IPADDR
  50. string "IPv4: IP address"
  51. default 192.168.1.30
  52. config RT_LWIP_GWADDR
  53. string "IPv4: Gateway address"
  54. default 192.168.1.1
  55. config RT_LWIP_MSKADDR
  56. string "IPv4: Mask address"
  57. default 255.255.255.0
  58. endmenu
  59. config RT_LWIP_UDP
  60. bool "UDP protocol"
  61. default y
  62. config RT_LWIP_TCP
  63. bool "TCP protocol"
  64. default y
  65. config RT_LWIP_RAW
  66. bool "RAW protocol"
  67. default n
  68. config RT_LWIP_PPP
  69. bool "PPP protocol"
  70. default n
  71. if RT_LWIP_PPP
  72. config RT_LWIP_PPPOE
  73. bool "PPPoE protocol"
  74. default n
  75. config RT_LWIP_PPPOS
  76. bool "PPPoS protocol"
  77. default n
  78. endif
  79. config RT_MEMP_NUM_NETCONN
  80. int "the number of struct netconns"
  81. default 8
  82. config RT_LWIP_PBUF_NUM
  83. int "the number of PBUF"
  84. default 16
  85. config RT_LWIP_RAW_PCB_NUM
  86. int "the number of raw connection"
  87. default 4
  88. config RT_LWIP_UDP_PCB_NUM
  89. int "the number of UDP socket"
  90. default 8 if RT_USING_DFS_NFS
  91. default 4
  92. if RT_LWIP_TCP
  93. config RT_LWIP_TCP_PCB_NUM
  94. int "the number of TCP socket"
  95. default 4
  96. config RT_LWIP_TCP_SEG_NUM
  97. int "the number of TCP segment"
  98. default 40
  99. config RT_LWIP_TCP_SND_BUF
  100. int "the size of send buffer"
  101. default 8196
  102. config RT_LWIP_TCP_WND
  103. int "the size of TCP send window"
  104. default 8196
  105. endif
  106. config RT_LWIP_TCPTHREAD_PRIORITY
  107. int "the priority level value of lwIP thread"
  108. default 10
  109. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  110. int "the number of mail in the lwIP thread mailbox"
  111. default 8
  112. config RT_LWIP_TCPTHREAD_STACKSIZE
  113. int "the stack size of lwIP thread"
  114. default 1024
  115. config LWIP_NO_RX_THREAD
  116. bool "Not use Rx thread"
  117. default n
  118. config LWIP_NO_TX_THREAD
  119. bool "Not use Tx thread"
  120. default n
  121. config RT_LWIP_ETHTHREAD_PRIORITY
  122. int "the priority level value of ethernet thread"
  123. default 12
  124. config RT_LWIP_ETHTHREAD_STACKSIZE
  125. int "the stack size of ethernet thread"
  126. default 1024
  127. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  128. int "the number of mail in the ethernet thread mailbox"
  129. default 8
  130. config RT_LWIP_REASSEMBLY_FRAG
  131. bool "Enable IP reassembly and frag"
  132. default n
  133. config LWIP_NETIF_STATUS_CALLBACK
  134. int "netif status callback"
  135. default 1
  136. config SO_REUSE
  137. int "Enable SO_REUSEADDR option"
  138. default 1
  139. config LWIP_SO_RCVTIMEO
  140. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  141. default 1
  142. config LWIP_SO_SNDTIMEO
  143. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  144. default 1
  145. config LWIP_SO_RCVBUF
  146. int "Enable SO_RCVBUF processing"
  147. default 1
  148. config RT_LWIP_NETIF_LOOPBACK
  149. bool "Enable netif loopback"
  150. default n
  151. config LWIP_NETIF_LOOPBACK
  152. int
  153. default 1 if RT_LWIP_NETIF_LOOPBACK
  154. default 0 if !RT_LWIP_NETIF_LOOPBACK
  155. endif
  156. endmenu
  157. source "$RTT_DIR/components/net/freemodbus/Kconfig"
  158. if RT_USING_LWIP
  159. config LWIP_USING_DHCPD
  160. bool "Enable DHCP server"
  161. default n
  162. if LWIP_USING_DHCPD
  163. config DHCPD_SERVER_IP
  164. string "DHCPD SERVER IP address"
  165. default 192.168.169.1
  166. config DHCPD_USING_ROUTER
  167. bool "alloc gateway ip for router"
  168. default y
  169. endif
  170. endif
  171. endmenu