Skip to content

CherryUSB v1.5.2

Choose a tag to compare

@sakumisu sakumisu released this 07 Aug 13:25
· 117 commits to master since this release

Common

  • update(common/usb_hc): change interval u8 to u32 for us
  • update(usb_config): change CONFIG_USBHOST_MAX_INTF_ALTSETTINGS to 2 as default for less memory usage
  • update(osal/idf): change freertos timer to esp_timer, change xtaskcreate to xTaskCreatePinnedToCore
  • fix(common/usb_util): fix missing __ICCARM_V8 define
  • style: remove some logs, fix log typo, format log

Device

Host

  • update: add output_len param for usbh_get_string_desc
  • update(core/usbh_core): do not assert when parse desc fail, just return error
  • update(core/usbh_core): check string support and then get string desc
  • fix(core/usbh_core): change 2ms to 10ms because some platform's tick is 100hz then 2ms = 0ms, refs: #342
  • fix(class/msc/usbh_msc): Clear error code after intentionally ignoring it @dkonigsberg

Port

  • feat(port): add urb->complete in usbh_kill_urb
  • Add FS support for ESP32-P4 @udoudou
  • feat(port/dwc2): support ep mult
  • update(port): remove CONFIG_USBDEV_EP_NUM & CONFIG_USBHOST_PIPE_NUM macro
  • update(port/musb): If ep control register group exists, do not use epidx register
  • update(port/dwc2/usb_glue_kendryte): update dwc2 param
  • update(port/dwc2): invalid data before start read
  • update(port/dwc2/usb_hc_dwc2): optimize split transfer code, mainly for cache and intr nak issue (56c864b, cc3e91e, f949e16, 65288c9, 9ddcbf5, 7037fd0)
  • update(port/musb): add mode check
  • update(port/dwc2): add mode check
  • fix(port/dwc2/usb_hc_dwc2): exit porten loop check when device disconnects
  • add reset port timeout check for dwc2, prevent unplug with loop @udoudou
  • Fix a bug where the channel might not be released, timeout but give sem @udoudou
  • Fix the bug that dwc2_halt may cause hardware abnormality, do not clear USB_OTG_HCCHAR_EPDIR @udoudou
  • fix(port/dwc2/usb_glue_at): fix host rx size
  • fix(port/dwc2/usb_glue_st): reduce f4 total size for some specific f4 chips
  • fix(port/ehci): remove usb_osal_msleep in critical section
  • fix(port/dwc2/usb_dwc2_param): fix macro literal types @Egahp

Platform

  • update(platform/rtthread): remove align size check
  • fix(platform/rtthread): change RT_USING_CACHE to CONFIG_USB_DCACHE_ENABLE
  • fix(platform/rtthread): restart read at usbd_cdc_acm_bulk_out @uid-matthew
  • fix(platform/rtthread): add RT_DEVICE_FLAG_INT_RX falg to device @uid-matthew

Security Check