summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorzhangyan <[email protected]>2025-04-14 19:14:54 +0800
committerGitHub <[email protected]>2025-04-14 19:14:54 +0800
commit3ebad06ff3055b1bdffecb1de0262b0f2dfc39a3 (patch)
tree172f559dc30698920f278d128391835cc0352bbb /components
parent9d1fb86020c250da6248d8b942b553a0f84aeb6f (diff)
[bsp/phytium]适配rtthread5.2版本 (#10178)
* rtthread 5.2适配
Diffstat (limited to 'components')
-rw-r--r--components/drivers/usb/cherryusb/SConscript2
-rw-r--r--components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h1
-rw-r--r--components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c5
3 files changed, 7 insertions, 1 deletions
diff --git a/components/drivers/usb/cherryusb/SConscript b/components/drivers/usb/cherryusb/SConscript
index e4af1fc5f6..1263af6e79 100644
--- a/components/drivers/usb/cherryusb/SConscript
+++ b/components/drivers/usb/cherryusb/SConscript
@@ -89,7 +89,7 @@ if GetDepend(['RT_CHERRYUSB_DEVICE']):
else:
src += Glob('port/ch32/usb_dc_usbfs.c')
if GetDepend(['RT_CHERRYUSB_DEVICE_PUSB2']):
- path += [cwd + '/port/xhci/rt-thread']
+ path += [cwd + '/port/pusb2/rt-thread']
src += Glob('port/pusb2/rt-thread/usb_dc_glue_phytium.c')
if GetDepend(['ARCH_ARMV8']):
LIBPATH = [cwd + '/port/pusb2']
diff --git a/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h b/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h
index 2a42c47856..ec8faa2e92 100644
--- a/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h
+++ b/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h
@@ -12,6 +12,7 @@
#define CHERRYUSB_CONFIG_H
#include "rtconfig.h"
+#include <rtthread.h>
/* ================ USB common Configuration ================ */
diff --git a/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c b/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c
index fdcf300458..49088d953d 100644
--- a/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c
+++ b/components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c
@@ -86,4 +86,9 @@ void *usb_sys_malloc_align(size_t align, size_t size)
}
return buf;
+}
+
+int usbd_set_remote_wakeup(uint8_t busid)
+{
+ return -1;
} \ No newline at end of file