projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added support for the JM-DB-U2 board hardware.
[pub/USBasp.git]
/
Projects
/
XPLAINBridge
/
XPLAINBridge.c
diff --git
a/Projects/XPLAINBridge/XPLAINBridge.c
b/Projects/XPLAINBridge/XPLAINBridge.c
index
13752ef
..
e5b282e
100644
(file)
--- a/
Projects/XPLAINBridge/XPLAINBridge.c
+++ b/
Projects/XPLAINBridge/XPLAINBridge.c
@@
-51,11
+51,11
@@
USB_ClassInfo_CDC_Device_t VirtualSerial_CDC_Interface =
\r
.DataINEndpointNumber = CDC_TX_EPNUM,
\r
.DataINEndpointSize = CDC_TXRX_EPSIZE,
\r
\r
.DataINEndpointNumber = CDC_TX_EPNUM,
\r
.DataINEndpointSize = CDC_TXRX_EPSIZE,
\r
- .DataINEndpointDoubleBank =
fals
e,
\r
+ .DataINEndpointDoubleBank =
tru
e,
\r
\r
.DataOUTEndpointNumber = CDC_RX_EPNUM,
\r
.DataOUTEndpointSize = CDC_TXRX_EPSIZE,
\r
\r
.DataOUTEndpointNumber = CDC_RX_EPNUM,
\r
.DataOUTEndpointSize = CDC_TXRX_EPSIZE,
\r
- .DataOUTEndpointDoubleBank =
fals
e,
\r
+ .DataOUTEndpointDoubleBank =
tru
e,
\r
\r
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
\r
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
\r
.NotificationEndpointNumber = CDC_NOTIFICATION_EPNUM,
\r
.NotificationEndpointSize = CDC_NOTIFICATION_EPSIZE,
\r
@@
-169,6
+169,10
@@
void SetupHardware(void)
\r
/* Select the firmware mode based on the JTD pin's value */
\r
CurrentFirmwareMode = (PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
\r
\r
/* Select the firmware mode based on the JTD pin's value */
\r
CurrentFirmwareMode = (PINF & (1 << 7)) ? MODE_USART_BRIDGE : MODE_PDI_PROGRAMMER;
\r
+
\r
+ /* Re-enable JTAG debugging */
\r
+ MCUCR &= ~(1 << JTD);
\r
+ MCUCR &= ~(1 << JTD);
\r
}
\r
\r
/** Event handler for the library USB Configuration Changed event. */
\r
}
\r
\r
/** Event handler for the library USB Configuration Changed event. */
\r