KConfig 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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. config RT_LWIP_UDP
  46. bool "UDP protocol"
  47. default y
  48. config RT_LWIP_TCP
  49. bool "TCP protocol"
  50. default y
  51. config RT_LWIP_RAW
  52. bool "RAW protocol"
  53. default n
  54. config RT_LWIP_PPP
  55. bool "PPP protocol"
  56. default n
  57. config RT_LWIP_PPPOE
  58. bool "PPPoE protocol"
  59. default n
  60. config RT_LWIP_PPPOS
  61. bool "PPPoS protocol"
  62. default n
  63. config RT_LWIP_PBUF_NUM
  64. int "the number of PBUF"
  65. default 16
  66. config RT_LWIP_RAW_PCB_NUM
  67. int "the number of raw connection"
  68. default 4
  69. config RT_LWIP_UDP_PCB_NUM
  70. int "the number of UDP socket"
  71. default 4
  72. if RT_LWIP_TCP
  73. config RT_LWIP_TCP_PCB_NUM
  74. int "the number of TCP socket"
  75. default 4
  76. config RT_LWIP_TCP_SEG_NUM
  77. int "the number of TCP segment"
  78. default 40
  79. config RT_LWIP_TCP_SND_BUF
  80. int "the size of send buffer"
  81. default 8196
  82. config RT_LWIP_TCP_WND
  83. int "the size of TCP send window"
  84. default 8196
  85. endif
  86. config RT_LWIP_TCPTHREAD_PRIORITY
  87. int "the priority level value of lwIP thread"
  88. default 10
  89. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  90. int "the number of mail in the lwIP thread mailbox"
  91. default 8
  92. config RT_LWIP_TCPTHREAD_STACKSIZE
  93. int "the stack size of lwIP thread"
  94. default 1024
  95. config RT_LWIP_ETHTHREAD_PRIORITY
  96. int "the priority level value of ethernet thread"
  97. default 12
  98. config RT_LWIP_ETHTHREAD_STACKSIZE
  99. int "the stack size of ethernet thread"
  100. default 1024
  101. config RT_LWIP_ETHTHREAD_MBOX_SIZE
  102. int "the number of mail in the ethernet thread mailbox"
  103. default 8
  104. config RT_LWIP_REASSEMBLY_FRAG
  105. bool "Enable IP reassembly and frag"
  106. default n
  107. config LWIP_NETIF_STATUS_CALLBACK
  108. int "netif status callback"
  109. default 1
  110. config SO_REUSE
  111. int "Enable SO_REUSEADDR option"
  112. default 1
  113. config LWIP_SO_RCVTIMEO
  114. int "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  115. default 1
  116. config LWIP_SO_SNDTIMEO
  117. int "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  118. default 1
  119. config LWIP_SO_RCVBUF
  120. int "Enable SO_RCVBUF processing"
  121. default 1
  122. endif
  123. endmenu
  124. source "$RTT_DIR/components/net/freemodbus/KConfig"
  125. if RT_USING_LWIP
  126. config RT_USING_NETUTILS
  127. bool "Enable net utils"
  128. default n
  129. endif
  130. endmenu