Fix all device mode demos broken in the recent API changes.
Change USBtoSerial Tx to polling-driven rather than interrupt driven, to ensure more time for the Rx interrupt to be serviced.
This commit is contained in:
@@ -139,7 +139,7 @@ int main (void)
|
||||
/** Event handler for the USB_Disconnect event. This indicates that the bootloader should exit and the user
|
||||
* application started.
|
||||
*/
|
||||
void EventHandler_USB_Disconnect(void)
|
||||
void EVENT_USB_Disconnect(void)
|
||||
{
|
||||
/* Upon disconnection, run user application */
|
||||
RunBootloader = false;
|
||||
@@ -149,7 +149,7 @@ void EventHandler_USB_Disconnect(void)
|
||||
* control requests that are not handled internally by the USB library (including the DFU commands, which are
|
||||
* all issued via the control endpoint), so that they can be handled appropriately for the application.
|
||||
*/
|
||||
void EventHandler_USB_UnhandledControlPacket(void)
|
||||
void EVENT_USB_UnhandledControlPacket(void)
|
||||
{
|
||||
/* Get the size of the command and data from the wLength value */
|
||||
SentCommand.DataSize = USB_ControlRequest.wLength;
|
||||
|
||||
Reference in New Issue
Block a user