diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-02 03:37:19 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-02 03:37:19 +0000 |
commit | 8b053d6ba5dddc5f00fb52873185a2350bef5ce8 (patch) | |
tree | a4204e3e270ef15a17068e6aba01788ab28464f1 /Projects/XPLAINBridge/XPLAINBridge.c | |
parent | 31a34154dbbc20adc523eb08678977d218ae8135 (diff) | |
download | lufa-8b053d6ba5dddc5f00fb52873185a2350bef5ce8.tar.gz lufa-8b053d6ba5dddc5f00fb52873185a2350bef5ce8.tar.bz2 lufa-8b053d6ba5dddc5f00fb52873185a2350bef5ce8.zip |
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.
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 2a71c5617..4ba9fd991 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); |