Skip to content

Commit 2281d05

Browse files
EvlersRbb666
authored andcommitted
add wifi-host-driver for rt-thread
1 parent 6fd2cc7 commit 2281d05

File tree

3 files changed

+177
-0
lines changed

3 files changed

+177
-0
lines changed

iot/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ source "$PKGS_DIR/packages/iot/bc28_mqtt/Kconfig"
1414
source "$PKGS_DIR/packages/iot/WebTerminal/Kconfig"
1515
source "$PKGS_DIR/packages/iot/freemodbus/Kconfig"
1616
source "$PKGS_DIR/packages/iot/nanopb/Kconfig"
17+
source "$PKGS_DIR/packages/iot/wifi-host-driver/Kconfig"
1718
source "$PKGS_DIR/packages/iot/WiFi/Kconfig"
1819
source "$PKGS_DIR/packages/iot/coap/Kconfig"
1920
source "$PKGS_DIR/packages/iot/nopoll/Kconfig"

iot/wifi-host-driver/Kconfig

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
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+

iot/wifi-host-driver/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "wifi-host-driver",
3+
"description": "WiFi Host Driver for RT-Thread.",
4+
"description_zh": "用于RT-Thread的WiFi主机驱动程序。",
5+
"enable": "PKG_USING_WIFI_HOST_DRIVER",
6+
"keywords": [
7+
"wifi-host-driver"
8+
],
9+
"category": "iot",
10+
"author": {
11+
"name": "Evlers",
12+
"email": "1425295900@qq.com",
13+
"github": "Evlers"
14+
},
15+
"license": "MIT",
16+
"repository": "https://github.com/Evlers/rt-thread_wifi-host-driver",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/Evlers/rt-thread_wifi-host-driver#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://wifi-host-driver-1.0.0.zip",
24+
"filename": "wifi-host-driver-1.0.0.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/Evlers/rt-thread_wifi-host-driver.git",
29+
"filename": "",
30+
"VER_SHA": "master"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)