Kconfig 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # MIT License
  2. # Copyright (c) 2024 Evlers
  3. # Permission is hereby granted, free of charge, to any person obtaining a copy
  4. # of this software and associated documentation files (the "Software"), to deal
  5. # in the Software without restriction, including without limitation the rights
  6. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. # copies of the Software, and to permit persons to whom the Software is
  8. # furnished to do so, subject to the following conditions:
  9. # The above copyright notice and this permission notice shall be included in all
  10. # copies or substantial portions of the Software.
  11. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. # SOFTWARE.
  18. menuconfig RT_USING_WIFI_HOST_DRIVER
  19. bool "Using Wifi-Host-Driver(WHD)"
  20. select RT_USING_WIFI
  21. select RT_USING_SAL
  22. select RT_USING_SDIO
  23. select BSP_USING_SDIO
  24. default n
  25. if RT_USING_WIFI_HOST_DRIVER
  26. choice
  27. prompt "Select Chips"
  28. default WHD_USING_CHIP_CYW43438
  29. config WHD_USING_CHIP_CYW43438
  30. bool "CYW43438"
  31. config WHD_USING_CHIP_CYW4373
  32. bool "CYW4373"
  33. config WHD_USING_CHIP_CYW43012
  34. bool "CYW43012"
  35. config WHD_USING_CHIP_CYW43439
  36. bool "CYW43439"
  37. config WHD_USING_CHIP_CYW43022
  38. bool "CYW43022"
  39. config WHD_USING_CHIP_CYW4343W
  40. bool "CYW4343W"
  41. endchoice
  42. menuconfig WHD_RESOURCES_IN_EXTERNAL_STORAGE
  43. bool "Using resources in external storage"
  44. default n
  45. if WHD_RESOURCES_IN_EXTERNAL_STORAGE
  46. choice
  47. prompt "Select external storage type"
  48. default WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
  49. config WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
  50. bool "posix file system"
  51. select RT_USING_POSIX_FS
  52. config WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
  53. bool "flash abstraction layer(FAL)"
  54. select RT_USING_FAL
  55. endchoice
  56. if WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
  57. config WHD_RESOURCES_FIRMWARE_PATH_NAME
  58. string "Set the file path of the firmware files"
  59. default "/sdcard/43438A1.bin"
  60. config WHD_RESOURCES_CLM_PATH_NAME
  61. string "Set the file path of the clm files"
  62. default "/sdcard/43438A1.clm_blob"
  63. endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
  64. if WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
  65. config WHD_RESOURCES_FIRMWARE_PART_NAME
  66. string "Set the partition name of the firmware files"
  67. default "whd_firmware"
  68. config WHD_RESOURCES_CLM_PART_NAME
  69. string "Set the partition name of the clm files"
  70. default "whd_clm"
  71. endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
  72. config WHD_RESOURCES_BLOCK_SIZE
  73. int "Set the block size for resources"
  74. default 1024
  75. endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE
  76. config WHD_RESOURCES_CUSTOM_NVRAM
  77. bool "Using custom nvram files"
  78. default n
  79. config CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
  80. bool "Default enable powersave mode"
  81. default n
  82. if CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
  83. config CY_WIFI_DEFAULT_PM2_SLEEP_RET_TIME
  84. int "Set return to sleep delay.(PM2)"
  85. default 200
  86. endif # CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
  87. config CY_WIFI_WHD_THREAD_PRIORITY
  88. int "The priority level value of WHD thread"
  89. range 0 32
  90. default 8
  91. config CY_WIFI_WHD_THREAD_STACK_SIZE
  92. int "The stack size for WHD thread"
  93. range 0 8192
  94. default 5120
  95. choice
  96. prompt "Select the pin name or number"
  97. default CYBSP_USING_PIN_NUMBER
  98. config CYBSP_USING_PIN_NAME
  99. bool "Name"
  100. config CYBSP_USING_PIN_NUMBER
  101. bool "Number"
  102. endchoice
  103. if CYBSP_USING_PIN_NAME
  104. config CYBSP_REG_ON_PIN_NAME
  105. string "Set the WiFi_REG ON pin name"
  106. default "PA.0"
  107. config CYBSP_HOST_WAKE_IRQ_PIN_NAME
  108. string "Set the HOST_WAKE_IRQ pin name"
  109. default "PA.1"
  110. endif # CYBSP_USING_PIN_NAME
  111. if CYBSP_USING_PIN_NUMBER
  112. config CYBSP_REG_ON_PIN
  113. int "Set the WiFi_REG ON pin number"
  114. default -1
  115. config CYBSP_HOST_WAKE_IRQ_PIN
  116. int "Set the HOST_WAKE_IRQ pin number"
  117. default -1
  118. endif # CYBSP_USING_PIN_NUMBER
  119. choice
  120. prompt "Select HOST_WAKE_IRQ event type"
  121. default CYBSP_HOST_WAKE_IRQ_EVENT_FALL
  122. config CYBSP_HOST_WAKE_IRQ_EVENT_FALL
  123. bool "falling"
  124. config CYBSP_HOST_WAKE_IRQ_EVENT_RISE
  125. bool "rising"
  126. config CYBSP_HOST_WAKE_IRQ_EVENT_BOTH
  127. bool "rising and falling"
  128. endchoice
  129. config CYBSP_OOB_INTR_PRIORITY
  130. int "Set the interrput priority for HOST_WAKE_IRQ pin"
  131. default 2
  132. config CY_WIFI_USING_THREAD_INIT
  133. bool "Using thread initialization"
  134. default n
  135. if CY_WIFI_USING_THREAD_INIT
  136. config CY_WIFI_INIT_THREAD_STACK_SIZE
  137. int "The stack size for init thread"
  138. range 0 8192
  139. default 2048
  140. endif # CY_WIFI_USING_THREAD_INIT
  141. choice
  142. prompt "Select the log level"
  143. default CY_WIFI_LOG_LEVEL_INFO
  144. config CY_WIFI_LOG_LEVEL_NONE
  145. bool "None"
  146. config CY_WIFI_LOG_LEVEL_ERROR
  147. bool "Error"
  148. config CY_WIFI_LOG_LEVEL_INFO
  149. bool "Info"
  150. config CY_WIFI_LOG_LEVEL_DEBUG
  151. bool "Debug"
  152. config CY_WIFI_LOG_LEVEL_DATA_TRACE
  153. bool "Data Trace"
  154. endchoice
  155. endif # RT_USING_WIFI_HOST_DRIVER