chore: update kconfig

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2026-01-25 18:43:56 +08:00
parent 1a3343bc11
commit 12b3eca447
3 changed files with 14 additions and 13 deletions

View File

@@ -470,22 +470,22 @@ if RT_USING_CHERRYUSB
default "/" default "/"
menu "Select USB host template, please select class driver first" menu "Select USB host template, please select class driver first"
config CONFIG_TEST_USBH_SERIAL config RT_TEST_USBH_SERIAL
bool bool
prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test" prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test"
default n default n
depends on CONFIG_USBHOST_SERIAL depends on CONFIG_USBHOST_SERIAL
config CONFIG_TEST_USBH_HID config RT_TEST_USBH_HID
int int
prompt "demo for test hid" prompt "demo for test hid"
default 0 default 0
depends on RT_CHERRYUSB_HOST_HID depends on RT_CHERRYUSB_HOST_HID
config CONFIG_TEST_USBH_MSC config RT_TEST_USBH_MSC
bool bool
prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test" prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test"
default n default n
depends on RT_CHERRYUSB_HOST_MSC depends on RT_CHERRYUSB_HOST_MSC
config CONFIG_TEST_USBH_NET config RT_TEST_USBH_NET
bool bool
prompt "demo for test net, cannot enable this demo, you can use lwip api to test" prompt "demo for test net, cannot enable this demo, you can use lwip api to test"
default n default n

View File

@@ -469,22 +469,22 @@ if PKG_USING_CHERRYUSB
default "/" default "/"
menu "Select USB host template, please select class driver first" menu "Select USB host template, please select class driver first"
config CONFIG_TEST_USBH_SERIAL config PKG_TEST_USBH_SERIAL
bool bool
prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test" prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test"
default n default n
depends on CONFIG_USBHOST_SERIAL depends on CONFIG_USBHOST_SERIAL
config CONFIG_TEST_USBH_HID config PKG_TEST_USBH_HID
int int
prompt "demo for test hid" prompt "demo for test hid"
default 0 default 0
depends on PKG_CHERRYUSB_HOST_HID depends on PKG_CHERRYUSB_HOST_HID
config CONFIG_TEST_USBH_MSC config PKG_TEST_USBH_MSC
bool bool
prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test" prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test"
default n default n
depends on PKG_CHERRYUSB_HOST_MSC depends on PKG_CHERRYUSB_HOST_MSC
config CONFIG_TEST_USBH_NET config PKG_TEST_USBH_NET
bool bool
prompt "demo for test net, cannot enable this demo, you can use lwip api to test" prompt "demo for test net, cannot enable this demo, you can use lwip api to test"
default n default n
@@ -498,14 +498,14 @@ if PKG_USING_CHERRYUSB
choice choice
prompt "Version" prompt "Version"
default PKG_USING_CHERRYUSB_V010504 default PKG_USING_CHERRYUSB_V010503
help help
Select the package version Select the package version
config PKG_USING_CHERRYUSB_LATEST_VERSION config PKG_USING_CHERRYUSB_LATEST_VERSION
bool "latest" bool "latest"
config PKG_USING_CHERRYUSB_V010504 config PKG_USING_CHERRYUSB_V010503
bool "v1.5.4" bool "v1.5.3.99"
config PKG_USING_CHERRYUSB_V010502 config PKG_USING_CHERRYUSB_V010502
bool "v1.5.2" bool "v1.5.2"
config PKG_USING_CHERRYUSB_V010500 config PKG_USING_CHERRYUSB_V010500
@@ -523,7 +523,7 @@ if PKG_USING_CHERRYUSB
config PKG_CHERRYUSB_VER config PKG_CHERRYUSB_VER
string string
default "latest" if PKG_USING_CHERRYUSB_LATEST_VERSION default "latest" if PKG_USING_CHERRYUSB_LATEST_VERSION
default "v1.5.4" if PKG_USING_CHERRYUSB_V010504 default "v1.5.3.99" if PKG_USING_CHERRYUSB_V010503
default "v1.5.2" if PKG_USING_CHERRYUSB_V010502 default "v1.5.2" if PKG_USING_CHERRYUSB_V010502
default "v1.5.0" if PKG_USING_CHERRYUSB_V010500 default "v1.5.0" if PKG_USING_CHERRYUSB_V010500
default "v1.4.3" if PKG_USING_CHERRYUSB_V010403 default "v1.4.3" if PKG_USING_CHERRYUSB_V010403

View File

@@ -314,7 +314,8 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
if GetDepend(['PKG_CHERRYUSB_HOST_PL2303']): if GetDepend(['PKG_CHERRYUSB_HOST_PL2303']):
src += Glob('class/serial/usbh_pl2303.c') src += Glob('class/serial/usbh_pl2303.c')
if GetDepend(['CONFIG_TEST_USBH_HID']): if GetDepend(['PKG_TEST_USBH_HID']):
CPPDEFINES+=['CONFIG_TEST_USBH_HID']
src += Glob('demo/usb_host.c') src += Glob('demo/usb_host.c')
if GetDepend(['PKG_CHERRYUSB_HOST_CDC_ACM']) \ if GetDepend(['PKG_CHERRYUSB_HOST_CDC_ACM']) \