projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor updates to the Benito programmer - remove redundant PORT register manipulations.
[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
ac63f0f
..
637071a
100644
(file)
--- a/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
+++ b/
Demos/Device/ClassDriver/USBtoSerial/USBtoSerial.c
@@
-95,7
+95,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
@@
-152,7
+152,7
@@
void EVENT_USB_UnhandledControlPacket(void)
*/
\r
ISR(USART1_RX_vect, ISR_BLOCK)
\r
{
\r
*/
\r
ISR(USART1_RX_vect, ISR_BLOCK)
\r
{
\r
- if (USB_
IsConnect
ed)
\r
+ if (USB_
DeviceState == DEVICE_STATE_Configur
ed)
\r
Buffer_StoreElement(&Tx_Buffer, UDR1);
\r
}
\r
\r
Buffer_StoreElement(&Tx_Buffer, UDR1);
\r
}
\r
\r