KConfig 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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_LWIP200
  15. bool "lwIP v2.0.0"
  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. config RT_LWIP_UDP
  35. bool "UDP protocol"
  36. default y
  37. config RT_LWIP_TCP
  38. bool "TCP protocol"
  39. default y
  40. config RT_LWIP_PPP
  41. bool "PPP protocol"
  42. default n
  43. config RT_LWIP_PPPOE
  44. bool "PPPoE protocol"
  45. default n
  46. config RT_LWIP_PPPOS
  47. bool "PPPoS protocol"
  48. default n
  49. config RT_LWIP_RAW_PCB_NUM
  50. int "the number of raw connection"
  51. default 4
  52. config RT_LWIP_UDP_PCB_NUM
  53. int "the number of UDP socket"
  54. default 4
  55. if RT_LWIP_TCP
  56. config RT_LWIP_TCP_PCB_NUM
  57. int "the number of TCP socket"
  58. default 4
  59. config RT_LWIP_TCP_SEG_NUM
  60. int "the number of TCP segment"
  61. default 4
  62. config RT_LWIP_TCP_SND_BUF
  63. int "the size of send buffer"
  64. default 8196
  65. config RT_LWIP_TCP_WND
  66. int "the size of TCP send window"
  67. default 8196
  68. endif
  69. config RT_LWIP_TCPTHREAD_PRIORITY
  70. int "the priority level value of lwIP thread"
  71. default 10
  72. config RT_LWIP_TCPTHREAD_MBOX_SIZE
  73. int "the number of mail in the lwIP thread mailbox"
  74. default 8
  75. config RT_LWIP_TCPTHREAD_STACKSIZE
  76. int "the stack size of lwIP thread"
  77. default 1024
  78. config RT_LWIP_REASSEMBLY_FRAG
  79. bool "Enable IP reassembly and frag"
  80. default n
  81. config SO_REUSE
  82. bool "Enable SO_REUSEADDR option"
  83. default n
  84. config LWIP_SO_RCVTIMEO
  85. bool "Enable receive timeout for sockets/netconns and SO_RCVTIMEO processing."
  86. default n
  87. config LWIP_SO_SNDTIMEO
  88. bool "Enable send timeout for sockets/netconns and SO_SNDTIMEO processing."
  89. default n
  90. config LWIP_SO_RCVBUF
  91. bool "Enable SO_RCVBUF processing"
  92. default n
  93. endif
  94. endmenu
  95. source "$RTT_DIR/components/net/freemodbus/KConfig"
  96. endmenu