USB_HostRequest renamed to USB_ControlRequest, entire control request header is now read into USB_ControlRequest in Device mode rather than having the library pass only partially read header data to the application.
The USB_UnhandledControlPacket event has had its parameters removed, in favour of accessing the new USB_ControlRequest structure. The Endpoint control stream functions now correctly send a ZLP to the host when less data than requested is sent.
This commit is contained in:
parent
e5e7eaee7a
commit
d860e9e842
43 changed files with 209 additions and 317 deletions
|
|
@ -305,7 +305,7 @@
|
|||
* parameters (wValue, wIndex, wLength, and Data) remain in the control endpoint bank until
|
||||
* read out by the user application for processing.
|
||||
*/
|
||||
void USB_UnhandledControlPacket(const uint8_t bRequest, const uint8_t bmRequestType);
|
||||
void USB_UnhandledControlPacket(void);
|
||||
|
||||
/** Event for USB configuration number changed. This event fires when a the USB host changes the
|
||||
* selected configuration number while in device mode. This event should be hooked in device
|
||||
|
|
@ -392,7 +392,7 @@
|
|||
#endif
|
||||
|
||||
#if defined(USB_CAN_BE_DEVICE)
|
||||
#define USB_UnhandledControlPacket_P (const uint8_t bRequest, const uint8_t bmRequestType)
|
||||
#define USB_UnhandledControlPacket_P (void)
|
||||
#define USB_ConfigurationChanged_P (void)
|
||||
#define USB_Suspend_P (void)
|
||||
#define USB_WakeUp_P (void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue