add hpm usb host driver and demo
This commit is contained in:
@@ -7,6 +7,7 @@ sdk_inc(class/hid)
|
||||
sdk_inc(class/msc)
|
||||
sdk_inc(class/audio)
|
||||
sdk_inc(class/video)
|
||||
sdk_inc(class/hub)
|
||||
|
||||
if(CONFIG_CHERRYUSB_DEVICE)
|
||||
sdk_src(core/usbd_core.c)
|
||||
@@ -37,6 +38,19 @@ if(CONFIG_CHERRYUSB_DEVICE_DEMO_CDC_MSC)
|
||||
sdk_src(demo/cdc_acm_msc_template.c)
|
||||
endif()
|
||||
|
||||
elseif(CONFIG_CHERRYUSB_HOST)
|
||||
sdk_src(core/usbh_core.c)
|
||||
sdk_src(port/hpm/usb_hc_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)
|
||||
sdk_src(class/wireless/usbh_rndis.c)
|
||||
if(CONFIG_CHERRYUSB_HOST_DEMO)
|
||||
sdk_src(demo/usb_host.c)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user