State information for class drivers is now zeroed out during enumeration (both in device and host mode) to ensure sane values after each enumeration. User code should no longer explicitly set state information as this is no longer preserved.
This commit is contained in:
parent
b9dd51cd63
commit
864196c884
34 changed files with 26 additions and 101 deletions
|
@ -67,11 +67,6 @@ USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
|
|||
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
|
||||
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
|
||||
},
|
||||
|
||||
.State =
|
||||
{
|
||||
// Leave all state values to their defaults
|
||||
}
|
||||
};
|
||||
|
||||
/** Main program entry point. This routine contains the overall program flow, including initial
|
||||
|
|
|
@ -60,11 +60,6 @@ USB_ClassInfo_HID_Device_t Keyboard_HID_Interface =
|
|||
|
||||
.ReportINBufferSize = sizeof(USB_KeyboardReport_Data_t),
|
||||
},
|
||||
|
||||
.State =
|
||||
{
|
||||
// Leave all state values to their defaults
|
||||
}
|
||||
};
|
||||
|
||||
/** Main program entry point. This routine contains the overall program flow, including initial
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue