projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed report data alignment issues in the MouseHostWithParser demo when X and Y movem...
[pub/USBasp.git]
/
Demos
/
Device
/
ClassDriver
/
USBtoSerial
/
USBtoSerial.c
diff --git
a/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
b/Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
index
8953706
..
e51963c
100644
(file)
--- a/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
+++ b/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
@@
-61,11
+61,6
@@
USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
\r
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
},
\r
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
\r
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
},
\r
-
\r
- .State =
\r
- {
\r
- // Leave all state values to their defaults
\r
- }
\r
};
\r
\r
/** Main program entry point. This routine contains the overall program flow, including initial
\r
};
\r
\r
/** Main program entry point. This routine contains the overall program flow, including initial
\r
@@
-95,7
+90,7
@@
int main(void)
if (Tx_Buffer.Elements)
\r
CDC_Device_SendByte(&VirtualSerial_CDC_Interface, Buffer_GetElement(&Tx_Buffer));
\r
\r
if (Tx_Buffer.Elements)
\r
CDC_Device_SendByte(&VirtualSerial_CDC_Interface, Buffer_GetElement(&Tx_Buffer));
\r
\r
- /*
Re
ad bytes from the USART transmit buffer into the USART */
\r
+ /*
Lo
ad bytes from the USART transmit buffer into the USART */
\r
if (Rx_Buffer.Elements)
\r
Serial_TxByte(Buffer_GetElement(&Rx_Buffer));
\r
\r
if (Rx_Buffer.Elements)
\r
Serial_TxByte(Buffer_GetElement(&Rx_Buffer));
\r
\r