summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-01-25 18:43:56 +0800
committersakumisu <[email protected]>2026-01-28 13:15:53 +0800
commit12b3eca447059d29752a170dd008340571067e4c (patch)
tree3a584b24ef9456ed0496da56aaaeb3634cf29d73
parent1a3343bc114b1db7f2aeed05ae0b047772b41888 (diff)
chore: update kconfig
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--Kconfig.rtt8
-rw-r--r--Kconfig.rttpkg16
-rw-r--r--SConscript3
3 files changed, 14 insertions, 13 deletions
diff --git a/Kconfig.rtt b/Kconfig.rtt
index 35a8e15f..769bfb95 100644
--- a/Kconfig.rtt
+++ b/Kconfig.rtt
@@ -470,22 +470,22 @@ if RT_USING_CHERRYUSB
default "/"
menu "Select USB host template, please select class driver first"
- config CONFIG_TEST_USBH_SERIAL
+ config RT_TEST_USBH_SERIAL
bool
prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test"
default n
depends on CONFIG_USBHOST_SERIAL
- config CONFIG_TEST_USBH_HID
+ config RT_TEST_USBH_HID
int
prompt "demo for test hid"
default 0
depends on RT_CHERRYUSB_HOST_HID
- config CONFIG_TEST_USBH_MSC
+ config RT_TEST_USBH_MSC
bool
prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test"
default n
depends on RT_CHERRYUSB_HOST_MSC
- config CONFIG_TEST_USBH_NET
+ config RT_TEST_USBH_NET
bool
prompt "demo for test net, cannot enable this demo, you can use lwip api to test"
default n
diff --git a/Kconfig.rttpkg b/Kconfig.rttpkg
index 5d9a077f..e5875abd 100644
--- a/Kconfig.rttpkg
+++ b/Kconfig.rttpkg
@@ -469,22 +469,22 @@ if PKG_USING_CHERRYUSB
default "/"
menu "Select USB host template, please select class driver first"
- config CONFIG_TEST_USBH_SERIAL
+ config PKG_TEST_USBH_SERIAL
bool
prompt "demo for test seial, cannot enable this demo, you can use rt-thread device api to test"
default n
depends on CONFIG_USBHOST_SERIAL
- config CONFIG_TEST_USBH_HID
+ config PKG_TEST_USBH_HID
int
prompt "demo for test hid"
default 0
depends on PKG_CHERRYUSB_HOST_HID
- config CONFIG_TEST_USBH_MSC
+ config PKG_TEST_USBH_MSC
bool
prompt "demo for test msc, cannot enable this demo, you can use rt-thread dfs api to test"
default n
depends on PKG_CHERRYUSB_HOST_MSC
- config CONFIG_TEST_USBH_NET
+ config PKG_TEST_USBH_NET
bool
prompt "demo for test net, cannot enable this demo, you can use lwip api to test"
default n
@@ -498,14 +498,14 @@ if PKG_USING_CHERRYUSB
choice
prompt "Version"
- default PKG_USING_CHERRYUSB_V010504
+ default PKG_USING_CHERRYUSB_V010503
help
Select the package version
config PKG_USING_CHERRYUSB_LATEST_VERSION
bool "latest"
- config PKG_USING_CHERRYUSB_V010504
- bool "v1.5.4"
+ config PKG_USING_CHERRYUSB_V010503
+ bool "v1.5.3.99"
config PKG_USING_CHERRYUSB_V010502
bool "v1.5.2"
config PKG_USING_CHERRYUSB_V010500
@@ -523,7 +523,7 @@ if PKG_USING_CHERRYUSB
config PKG_CHERRYUSB_VER
string
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.0" if PKG_USING_CHERRYUSB_V010500
default "v1.4.3" if PKG_USING_CHERRYUSB_V010403
diff --git a/SConscript b/SConscript
index 5a4f95d8..0a786116 100644
--- a/SConscript
+++ b/SConscript
@@ -314,7 +314,8 @@ if GetDepend(['PKG_CHERRYUSB_HOST']):
if GetDepend(['PKG_CHERRYUSB_HOST_PL2303']):
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')
if GetDepend(['PKG_CHERRYUSB_HOST_CDC_ACM']) \