KConfig 4.6 KB

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