diff options
| author | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-07-02 03:37:19 +0000 |
|---|---|---|
| committer | Dean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28> | 2010-07-02 03:37:19 +0000 |
| commit | 0a1d59e787980acd9b7f7d665920e377c2238bb4 (patch) | |
| tree | a4204e3e270ef15a17068e6aba01788ab28464f1 /Projects/XPLAINBridge/XPLAINBridge.c | |
| parent | 7c1050962340e40877b5acc7157207412244de44 (diff) | |
Added new Drivers/USB/LowLevel/Device.c file to house Device mode specific functions that are more complicated than simple macros. Moved USB_Device_SendRemoteWakeup() to the new Device.c source file and corrected it to unfreeze and restart the USB controller clock before issuing a Remote Wakeup request.
Removed the USB_Device_IsRemoteWakeupSent() and USB_Device_IsUSBSuspended() macros, as they are now obsolete.
git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1358 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Projects/XPLAINBridge/XPLAINBridge.c')
| -rw-r--r-- | Projects/XPLAINBridge/XPLAINBridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Projects/XPLAINBridge/XPLAINBridge.c b/Projects/XPLAINBridge/XPLAINBridge.c index 2a71c561..4ba9fd99 100644 --- a/Projects/XPLAINBridge/XPLAINBridge.c +++ b/Projects/XPLAINBridge/XPLAINBridge.c @@ -76,7 +76,8 @@ RingBuff_t UARTtoUSB_Buffer; int main(void) { SetupHardware(); - + V2Protocol_Init(); + RingBuffer_InitBuffer(&USBtoUART_Buffer); RingBuffer_InitBuffer(&UARTtoUSB_Buffer); @@ -147,7 +148,6 @@ void SetupHardware(void) SoftUART_Init(); LEDs_Init(); USB_Init(); - V2Protocol_Init(); /* Disable JTAG debugging */ MCUCR |= (1 << JTD); |
