From 3ebad06ff3055b1bdffecb1de0262b0f2dfc39a3 Mon Sep 17 00:00:00 2001 From: zhangyan <103986797+messigogogo@users.noreply.github.com> Date: Mon, 14 Apr 2025 19:14:54 +0800 Subject: [bsp/phytium]适配rtthread5.2版本 (#10178) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rtthread 5.2适配 --- components/drivers/usb/cherryusb/SConscript | 2 +- components/drivers/usb/cherryusb/port/pusb2/rt-thread/usb_config.h | 1 + .../drivers/usb/cherryusb/port/pusb2/rt-thread/usb_dc_glue_phytium.c | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'components/drivers') 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 /* ================ 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 -- cgit v1.3.1