diff options
Diffstat (limited to 'components/drivers')
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 |
