Kconfig 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. menu "OpenThread"
  2. config OPENTHREAD_ENABLED
  3. bool "OpenThread"
  4. default n
  5. help
  6. Select this option to enable OpenThread and show the submenu with OpenThread configuration choices.
  7. config OPENTHREAD_LOG_LEVEL_DYNAMIC
  8. bool "Enable dynamic log level control"
  9. depends on OPENTHREAD_ENABLED
  10. default y
  11. help
  12. Select this option to enable dynamic log level control for OpenThread
  13. choice OPENTHREAD_LOG_LEVEL
  14. prompt "OpenThread log verbosity"
  15. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  16. default OPENTHREAD_LOG_LEVEL_INFO
  17. help
  18. Select OpenThread log level.
  19. config OPENTHREAD_LOG_LEVEL_NONE
  20. bool "No logs"
  21. config OPENTHREAD_LOG_LEVEL_CRIT
  22. bool "Error logs"
  23. config OPENTHREAD_LOG_LEVEL_WARN
  24. bool "Warning logs"
  25. config OPENTHREAD_LOG_LEVEL_NOTE
  26. bool "Notice logs"
  27. config OPENTHREAD_LOG_LEVEL_INFO
  28. bool "Info logs"
  29. config OPENTHREAD_LOG_LEVEL_DEBG
  30. bool "Debug logs"
  31. endchoice #OPENTHREAD_LOG_LEVEL
  32. config OPENTHREAD_LOG_LEVEL
  33. int
  34. depends on OPENTHREAD_ENABLED && !OPENTHREAD_LOG_LEVEL_DYNAMIC
  35. default 0 if OPENTHREAD_LOG_LEVEL_NONE
  36. default 1 if OPENTHREAD_LOG_LEVEL_CRIT
  37. default 2 if OPENTHREAD_LOG_LEVEL_WARN
  38. default 3 if OPENTHREAD_LOG_LEVEL_NOTE
  39. default 4 if OPENTHREAD_LOG_LEVEL_INFO
  40. default 5 if OPENTHREAD_LOG_LEVEL_DEBG
  41. choice OPENTHREAD_RADIO_TYPE
  42. prompt "Config the Thread radio type"
  43. depends on OPENTHREAD_ENABLED
  44. default OPENTHREAD_RADIO_NATIVE if SOC_IEEE802154_SUPPORTED
  45. default OPENTHREAD_RADIO_SPINEL_UART
  46. help
  47. Configure how OpenThread connects to the 15.4 radio
  48. config OPENTHREAD_RADIO_NATIVE
  49. bool "Native 15.4 radio"
  50. help
  51. Select this to use the native 15.4 radio.
  52. config OPENTHREAD_RADIO_SPINEL_UART
  53. bool "Connect via UART"
  54. help
  55. Select this to connect to a Radio Co-Processor via UART.
  56. config OPENTHREAD_RADIO_SPINEL_SPI
  57. bool "Connect via SPI"
  58. help
  59. Select this to connect to a Radio Co-Processor via SPI.
  60. endchoice
  61. choice OPENTHREAD_DEVICE_TYPE
  62. prompt "Config the Thread device type"
  63. depends on OPENTHREAD_ENABLED
  64. default OPENTHREAD_FTD
  65. help
  66. OpenThread can be configured to different device types (FTD, MTD, Radio)
  67. config OPENTHREAD_FTD
  68. bool "Full Thread Device"
  69. help
  70. Select this to enable Full Thread Device which can act as router and leader in a Thread network.
  71. config OPENTHREAD_MTD
  72. bool "Minimal Thread Device"
  73. help
  74. Select this to enable Minimal Thread Device which can only act as end device in a Thread network.
  75. This will reduce the code size of the OpenThread stack.
  76. config OPENTHREAD_RADIO
  77. bool "Radio Only Device"
  78. help
  79. Select this to enable Radio Only Device which can only forward 15.4 packets to the host.
  80. The OpenThread stack will be run on the host and OpenThread will have minimal footprint on the
  81. radio only device.
  82. endchoice
  83. choice OPENTHREAD_RCP_TRANSPORT
  84. prompt "The RCP transport type"
  85. depends on OPENTHREAD_RADIO
  86. default OPENTHREAD_RCP_UART
  87. config OPENTHREAD_RCP_UART
  88. bool "UART RCP"
  89. help
  90. Select this to enable UART connection to host.
  91. config OPENTHREAD_RCP_SPI
  92. bool "SPI RCP"
  93. help
  94. Select this to enable SPI connection to host.
  95. endchoice
  96. config OPENTHREAD_CLI
  97. bool "Enable Openthread Command-Line Interface"
  98. depends on OPENTHREAD_ENABLED
  99. default y
  100. help
  101. Select this option to enable Command-Line Interface in OpenThread.
  102. config OPENTHREAD_DIAG
  103. bool "Enable diag"
  104. depends on OPENTHREAD_ENABLED
  105. default y
  106. help
  107. Select this option to enable Diag in OpenThread. This will enable diag mode and a series of diag commands
  108. in the OpenThread command line. These commands allow users to manipulate low-level features of the storage
  109. and 15.4 radio.
  110. config OPENTHREAD_COMMISSIONER
  111. bool "Enable Commissioner"
  112. depends on OPENTHREAD_ENABLED
  113. default n
  114. help
  115. Select this option to enable commissioner in OpenThread. This will enable the device to act as a
  116. commissioner in the Thread network. A commissioner checks the pre-shared key from a joining device with
  117. the Thread commissioning protocol and shares the network parameter with the joining device upon success.
  118. config OPENTHREAD_JOINER
  119. bool "Enable Joiner"
  120. depends on OPENTHREAD_ENABLED
  121. default n
  122. help
  123. Select this option to enable Joiner in OpenThread. This allows a device to join the Thread network with a
  124. pre-shared key using the Thread commissioning protocol.
  125. config OPENTHREAD_SRP_CLIENT
  126. bool "Enable SRP Client"
  127. depends on OPENTHREAD_ENABLED
  128. default y
  129. help
  130. Select this option to enable SRP Client in OpenThread. This allows a device to register SRP services to SRP
  131. Server.
  132. config OPENTHREAD_DNS_CLIENT
  133. bool "Enable DNS Client"
  134. depends on OPENTHREAD_ENABLED
  135. default y
  136. help
  137. Select this option to enable DNS Client in OpenThread.
  138. config OPENTHREAD_BORDER_ROUTER
  139. bool "Enable Border Router"
  140. depends on OPENTHREAD_ENABLED
  141. default n
  142. help
  143. Select this option to enable border router features in OpenThread.
  144. config OPENTHREAD_NUM_MESSAGE_BUFFERS
  145. int "The number of openthread message buffers"
  146. depends on OPENTHREAD_ENABLED
  147. default 65
  148. range 50 100
  149. config OPENTHREAD_DNS64_CLIENT
  150. bool "Use dns64 client"
  151. depends on OPENTHREAD_ENABLED && LWIP_IPV4
  152. default n
  153. help
  154. Select this option to acquire NAT64 address from dns servers.
  155. config OPENTHREAD_UART_BUFFER_SIZE
  156. int "The uart received buffer size of openthread"
  157. depends on OPENTHREAD_ENABLED
  158. default 256
  159. range 128 1024
  160. help
  161. Set the OpenThread UART buffer size.
  162. config OPENTHREAD_LINK_METRICS
  163. bool "Enable link metrics feature"
  164. depends on OPENTHREAD_ENABLED
  165. default n
  166. help
  167. Select this option to enable link metrics feature
  168. config OPENTHREAD_CSL_ENABLE
  169. bool "Enable CSL feature"
  170. depends on OPENTHREAD_ENABLED
  171. default n
  172. help
  173. Select this option to enable CSL feature
  174. config OPENTHREAD_CSL_DEBUG_ENABLE
  175. bool "Enable CSL debug"
  176. depends on OPENTHREAD_CSL_ENABLE
  177. default n
  178. help
  179. Select this option to set rx on when sleep in CSL feature, only for debug
  180. endmenu