USB Library
v2.7

  1. Fixed error where USBHandleGetAddr() didn't convert the return address from a physical address to a virtual address for PIC32.
  2. Added macro versions of USBDeviceAttach() and USBDeviceDetach() so they will compile without error when using polling mode.
  3. Fixes issue in dual role example where a device in polling mode can still have interrupts enabled from the host mode causing an incorrect vectoring to the host interrupt controller while in device mode.
    • Stack files affected: usb_hal_pic18.h, usb_hal_pic24.h, usb_hal-pic32.h, usb_device.c
  4. Modified the SetConfigurationOptions() function for PIC32 to explicitly reconfigure the pull-up/pull-down settings for the D+/D- pins in case the host code leaves the pull-downs enabled when running in a dual role configuration.
    • Stack files affected: usb_hal_pic32.h
  5. Fixed error where the USB error interrupt flag was not getting cleared properly for PIC32 resulting in extra error interrupts (http://www.microchip.com/forums/tm.aspx?m=479085).
    • Stack files affected: usb_device.c
  6. Updated the device stack to move to the configuration state only after the user event completes.
    • Stack files affected: usb_device.c
  7. Fixed error in the part support list of the variables section where the address of the CDC variables are defined. The PIC18F2553 was incorrectly named PIC18F2453 and the PIC18F4558 was incorrectly named PIC18F4458 (http://www.microchip.com/forums/fb.aspx?m=487397).
    • Stack files affected: usb_function_cdc.c
  8. Fixed an error where the USBHostClearEndpointErrors() function didn't properly return USB_SUCCESS if the errors were successfully cleared (http://www.microchip.com/forums/fb.aspx?m=490651).
    • Stack files affected: usb_host.c
  9. Fixed issue where deviceInfoHID[i].rptDescriptor was incorrectly freed twice. The second free results in possible issues in future malloc() calls in the C32 compiler.
    • Stack files affected: usb_host_hid.c
  10. Fixed an issue where the MSD client driver would issue a transfer events to an incorrect/invalid client driver number when transfer events are enabled.
    • Stack files affected: usb_host_msd.c
  11. Fixed issue where a device that is already connected to the embedded host when the system is initialized may not enumerate.
    • Stack files affected: usb_host.c
  12. Fixed issue where the embedded host or OTG device did not properly check bmRequestType when it thinks that a HALT_ENDPOINT request was sent to the device. This resulted in the DTS bits for the attached device getting reset causing possible communication issues.
    • Stack files affected: usb_host.c
  13. Changed how the bus sensing works. In previous revisions it was impossible to use the USBDeviceDetach to detach from the bus if the bus voltage was still present. This is now possible. It was also possible to move the device to the ATTACHED state in interrupt mode even if the bus voltage wasn't available. This is now prohibited unless VBUS is present.
    • Stack files affected: usb_device.c
  14. Added USBSleepOnSuspend() function. This function shows how to put the PIC24F to sleep while the USB module is in suspend and have the USB module wake up the device on activity on the bus.
    • Stack files affected: usb_hal_pic24.h, usb_hal_pic24.c
  15. Modified the code to allow connection of USB-RS232 dongles that do not fully comply with CDC specifications.
    • Stack files affected: usb_host_cdc.h, usb_host_cdc.c, usb_host_cdc_interface.c, usb_host_interface.h
  16. Modified API USBHostCDC_Api_Send_OUT_Data to allow data transfers more than 256 bytes.
    • Stack files affected: usb_host_cdc.h, usb_host_cdc.c, usb_host_cdc_interface.c, usb_host_interface.h
  17. Improved error case handling when the host sends more OUT bytes in a control transfer than the firmware was expecting to receive (based on the size parameter when calling USBEP0Receive()).
    • Stack files affected: usb_device.c
  18. Added CCID (Circuit Cards Interface Device) class device/function support.
    • Stack Files affected: usb_function_ccid.h, usb_function_ccid.c
  19. Added Audio v1 class embedded host support.
    • Stack files affected: usb_host_audio_v1.h, usb_host_audio_v1.c

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla