| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- # MIT License
- # Copyright (c) 2024 Evlers
- # Permission is hereby granted, free of charge, to any person obtaining a copy
- # of this software and associated documentation files (the "Software"), to deal
- # in the Software without restriction, including without limitation the rights
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- # copies of the Software, and to permit persons to whom the Software is
- # furnished to do so, subject to the following conditions:
- # The above copyright notice and this permission notice shall be included in all
- # copies or substantial portions of the Software.
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- # SOFTWARE.
- menuconfig RT_USING_WIFI_HOST_DRIVER
- bool "Using Wifi-Host-Driver(WHD)"
- select RT_USING_WIFI
- select RT_USING_SAL
- select RT_USING_SDIO
- select BSP_USING_SDIO
- default n
- if RT_USING_WIFI_HOST_DRIVER
- choice
- prompt "Select Chips"
- default WHD_USING_CHIP_CYW43438
- config WHD_USING_CHIP_CYW43438
- bool "CYW43438"
- config WHD_USING_CHIP_CYW4373
- bool "CYW4373"
- config WHD_USING_CHIP_CYW43012
- bool "CYW43012"
- config WHD_USING_CHIP_CYW43439
- bool "CYW43439"
- config WHD_USING_CHIP_CYW43022
- bool "CYW43022"
- config WHD_USING_CHIP_CYW4343W
- bool "CYW4343W"
- endchoice
- menuconfig WHD_RESOURCES_IN_EXTERNAL_STORAGE
- bool "Using resources in external storage"
- default n
- if WHD_RESOURCES_IN_EXTERNAL_STORAGE
- choice
- prompt "Select external storage type"
- default WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
- config WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
- bool "posix file system"
- select RT_USING_POSIX_FS
- config WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
- bool "flash abstraction layer(FAL)"
- select RT_USING_FAL
- endchoice
- if WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
- config WHD_RESOURCES_FIRMWARE_PATH_NAME
- string "Set the file path of the firmware files"
- default "/sdcard/43438A1.bin"
- config WHD_RESOURCES_CLM_PATH_NAME
- string "Set the file path of the clm files"
- default "/sdcard/43438A1.clm_blob"
- endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE_FS
- if WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
- config WHD_RESOURCES_FIRMWARE_PART_NAME
- string "Set the partition name of the firmware files"
- default "whd_firmware"
- config WHD_RESOURCES_CLM_PART_NAME
- string "Set the partition name of the clm files"
- default "whd_clm"
- endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE_FAL
- config WHD_RESOURCES_BLOCK_SIZE
- int "Set the block size for resources"
- default 1024
- endif # WHD_RESOURCES_IN_EXTERNAL_STORAGE
- config WHD_RESOURCES_CUSTOM_NVRAM
- bool "Using custom nvram files"
- default n
- config CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
- bool "Default enable powersave mode"
- default n
- if CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
- config CY_WIFI_DEFAULT_PM2_SLEEP_RET_TIME
- int "Set return to sleep delay.(PM2)"
- default 200
- endif # CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE
- config CY_WIFI_WHD_THREAD_PRIORITY
- int "The priority level value of WHD thread"
- range 0 32
- default 8
- config CY_WIFI_WHD_THREAD_STACK_SIZE
- int "The stack size for WHD thread"
- range 0 8192
- default 5120
- choice
- prompt "Select the pin name or number"
- default CYBSP_USING_PIN_NUMBER
- config CYBSP_USING_PIN_NAME
- bool "Name"
- config CYBSP_USING_PIN_NUMBER
- bool "Number"
- endchoice
- if CYBSP_USING_PIN_NAME
- config CYBSP_REG_ON_PIN_NAME
- string "Set the WiFi_REG ON pin name"
- default "PA.0"
- config CYBSP_HOST_WAKE_IRQ_PIN_NAME
- string "Set the HOST_WAKE_IRQ pin name"
- default "PA.1"
- endif # CYBSP_USING_PIN_NAME
- if CYBSP_USING_PIN_NUMBER
- config CYBSP_REG_ON_PIN
- int "Set the WiFi_REG ON pin number"
- default -1
- config CYBSP_HOST_WAKE_IRQ_PIN
- int "Set the HOST_WAKE_IRQ pin number"
- default -1
- endif # CYBSP_USING_PIN_NUMBER
- choice
- prompt "Select HOST_WAKE_IRQ event type"
- default CYBSP_HOST_WAKE_IRQ_EVENT_FALL
- config CYBSP_HOST_WAKE_IRQ_EVENT_FALL
- bool "falling"
- config CYBSP_HOST_WAKE_IRQ_EVENT_RISE
- bool "rising"
- config CYBSP_HOST_WAKE_IRQ_EVENT_BOTH
- bool "rising and falling"
- endchoice
- config CYBSP_OOB_INTR_PRIORITY
- int "Set the interrput priority for HOST_WAKE_IRQ pin"
- default 2
- config CY_WIFI_USING_THREAD_INIT
- bool "Using thread initialization"
- default n
- if CY_WIFI_USING_THREAD_INIT
- config CY_WIFI_INIT_THREAD_STACK_SIZE
- int "The stack size for init thread"
- range 0 8192
- default 2048
- endif # CY_WIFI_USING_THREAD_INIT
- choice
- prompt "Select the log level"
- default CY_WIFI_LOG_LEVEL_INFO
- config CY_WIFI_LOG_LEVEL_NONE
- bool "None"
- config CY_WIFI_LOG_LEVEL_ERROR
- bool "Error"
- config CY_WIFI_LOG_LEVEL_INFO
- bool "Info"
- config CY_WIFI_LOG_LEVEL_DEBUG
- bool "Debug"
- config CY_WIFI_LOG_LEVEL_DATA_TRACE
- bool "Data Trace"
- endchoice
- endif # RT_USING_WIFI_HOST_DRIVER
|