|
| 1 | + |
| 2 | +# Kconfig file for package wifi-host-driver |
| 3 | +menuconfig PKG_USING_WIFI_HOST_DRIVER |
| 4 | + bool "Wifi-Host-Driver(WHD) for RT-Thread" |
| 5 | + select RT_USING_WIFI |
| 6 | + select RT_USING_SAL |
| 7 | + select RT_USING_SDIO |
| 8 | + select BSP_USING_SDIO |
| 9 | + default n |
| 10 | + |
| 11 | +if PKG_USING_WIFI_HOST_DRIVER |
| 12 | + |
| 13 | + choice |
| 14 | + prompt "Select Chips" |
| 15 | + default WHD_USING_CHIP_CYW43438 |
| 16 | + |
| 17 | + config WHD_USING_CHIP_CYW43438 |
| 18 | + bool "cyw43438" |
| 19 | + |
| 20 | + config WHD_USING_CHIP_CYW4373 |
| 21 | + bool "cyw4373" |
| 22 | + |
| 23 | + config WHD_USING_CHIP_CYW43012 |
| 24 | + bool "cyw43012" |
| 25 | + |
| 26 | + config WHD_USING_CHIP_CYW43439 |
| 27 | + bool "cyw43439" |
| 28 | + |
| 29 | + config WHD_USING_CHIP_CYW43022 |
| 30 | + bool "cyw43022" |
| 31 | + |
| 32 | + config WHD_USING_CHIP_CYW4343W |
| 33 | + bool "cyw4343W" |
| 34 | + |
| 35 | + endchoice |
| 36 | + |
| 37 | + menuconfig WHD_RESOURCES_IN_EXTERNAL_STORAGE |
| 38 | + bool "Use resources in external storage(FAL)" |
| 39 | + select RT_USING_FAL |
| 40 | + default n |
| 41 | + |
| 42 | + if WHD_RESOURCES_IN_EXTERNAL_STORAGE |
| 43 | + |
| 44 | + config WHD_RESOURCES_FIRMWARE_NAME |
| 45 | + string "Set the partition name of the firmware files" |
| 46 | + default "whd_firmware" |
| 47 | + |
| 48 | + config WHD_RESOURCES_CLM_NAME |
| 49 | + string "Set the partition name of the clm files" |
| 50 | + default "whd_clm" |
| 51 | + |
| 52 | + config WHD_RESOURCES_BLOCK_SIZE |
| 53 | + int "Set the block size for resources" |
| 54 | + default 1024 |
| 55 | + |
| 56 | + endif |
| 57 | + |
| 58 | + config CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE |
| 59 | + bool "Default enable powersave mode" |
| 60 | + default n |
| 61 | + |
| 62 | + if CY_WIFI_DEFAULT_ENABLE_POWERSAVE_MODE |
| 63 | + config CY_WIFI_DEFAULT_PM2_SLEEP_RET_TIME |
| 64 | + int "Set return to sleep delay.(PM2)" |
| 65 | + default 200 |
| 66 | + endif |
| 67 | + |
| 68 | + config CY_WIFI_WHD_THREAD_PRIORITY |
| 69 | + int "The priority level value of WHD thread" |
| 70 | + range 0 32 |
| 71 | + default 8 |
| 72 | + |
| 73 | + config CY_WIFI_WHD_THREAD_STACK_SIZE |
| 74 | + int "The stack size for WHD thread" |
| 75 | + range 0 8192 |
| 76 | + default 5120 |
| 77 | + |
| 78 | + config CYBSP_REG_ON_PIN |
| 79 | + int "Set the WiFi_REG ON pin" |
| 80 | + default -1 |
| 81 | + |
| 82 | + config CYBSP_HOST_WAKE_IRQ_PIN |
| 83 | + int "Set the HOST_WAKE_IRQ pin" |
| 84 | + default -1 |
| 85 | + |
| 86 | + choice |
| 87 | + prompt "Select HOST_WAKE_IRQ event type" |
| 88 | + default CYBSP_HOST_WAKE_IRQ_EVENT_FALLING |
| 89 | + |
| 90 | + config CYBSP_HOST_WAKE_IRQ_EVENT_FALL |
| 91 | + bool "falling" |
| 92 | + |
| 93 | + config CYBSP_HOST_WAKE_IRQ_EVENT_RISE |
| 94 | + bool "rising" |
| 95 | + |
| 96 | + config CYBSP_HOST_WAKE_IRQ_EVENT_BOTH |
| 97 | + bool "rising and falling" |
| 98 | + |
| 99 | + endchoice |
| 100 | + |
| 101 | + config CYBSP_OOB_INTR_PRIORITY |
| 102 | + int "Set the interrput priority for HOST_WAKE_IRQ pin" |
| 103 | + default 2 |
| 104 | + |
| 105 | + config CY_WIFI_USING_THREAD_INIT |
| 106 | + bool "Using thread initialization" |
| 107 | + default n |
| 108 | + |
| 109 | + if CY_WIFI_USING_THREAD_INIT |
| 110 | + config CY_WIFI_INIT_THREAD_STACK_SIZE |
| 111 | + int "The stack size for init thread" |
| 112 | + range 0 8192 |
| 113 | + default 2048 |
| 114 | + endif |
| 115 | + |
| 116 | + config CY_WIFI_MMCSD_WAIT_TIME |
| 117 | + int "Set the waiting time for mmcsd card scanning" |
| 118 | + default 500 |
| 119 | + |
| 120 | + config PKG_WIFI_HOST_DRIVER_PATH |
| 121 | + string |
| 122 | + default "/packages/iot/wifi-host-driver" |
| 123 | + |
| 124 | + choice |
| 125 | + prompt "Version" |
| 126 | + default PKG_USING_WIFI_HOST_DRIVER_LATEST_VERSION |
| 127 | + help |
| 128 | + Select the package version |
| 129 | + |
| 130 | + config PKG_USING_WIFI_HOST_DRIVER_V100 |
| 131 | + bool "v1.0.0" |
| 132 | + |
| 133 | + config PKG_USING_WIFI_HOST_DRIVER_LATEST_VERSION |
| 134 | + bool "latest" |
| 135 | + endchoice |
| 136 | + |
| 137 | + config PKG_WIFI_HOST_DRIVER_VER |
| 138 | + string |
| 139 | + default "v1.0.0" if PKG_USING_WIFI_HOST_DRIVER_V100 |
| 140 | + default "latest" if PKG_USING_WIFI_HOST_DRIVER_LATEST_VERSION |
| 141 | + |
| 142 | +endif |
| 143 | + |
0 commit comments