update hpm host ehci glue

This commit is contained in:
sakumisu
2022-09-12 11:42:35 +08:00
parent 8e43045ddb
commit d1c9bb663d
9 changed files with 195 additions and 950 deletions

View File

@@ -9,11 +9,12 @@ sdk_inc(class/audio)
sdk_inc(class/video)
sdk_inc(class/hub)
sdk_compile_definitions(-DCONFIG_USB_ALIGN_SIZE=64)
if(CONFIG_CHERRYUSB_DEVICE)
sdk_src(core/usbd_core.c)
sdk_src(port/hpm/usb_dc_hpm.c)
sdk_compile_definitions(-DCONFIG_USB_HS -DCONFIG_USB_ALIGN_SIZE=64)
#sdk_compile_definitions(-DCONFIG_USB_DCACHE_ENABLE)
sdk_compile_definitions(-DCONFIG_USB_HS)
if(CONFIG_CHERRYUSB_DEVICE_CDC)
sdk_src(class/cdc/usbd_cdc.c)
endif()
@@ -40,9 +41,10 @@ endif()
elseif(CONFIG_CHERRYUSB_HOST)
sdk_src(core/usbh_core.c)
sdk_src(port/hpm/usb_hc_hpm.c)
sdk_src(class/hub/usbh_hub.c)
sdk_src(port/ehci/usb_hc_ehci.c)
sdk_src(port/ehci/usb_glue_hpm.c)
sdk_src(osal/usb_osal_freertos.c)
sdk_compile_definitions(-DCONFIG_USB_ALIGN_SIZE=64)
sdk_src(class/cdc/usbh_cdc_acm.c)
sdk_src(class/msc/usbh_msc.c)
sdk_src(class/hid/usbh_hid.c)