From 8b053d6ba5dddc5f00fb52873185a2350bef5ce8 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 2 Jul 2010 03:37:19 +0000 Subject: 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. --- Projects/AVRISP-MKII/AVRISP.c | 2 +- Projects/AVRISP-MKII/makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'Projects/AVRISP-MKII') diff --git a/Projects/AVRISP-MKII/AVRISP.c b/Projects/AVRISP-MKII/AVRISP.c index 7b2429cdc..33ea07b52 100644 --- a/Projects/AVRISP-MKII/AVRISP.c +++ b/Projects/AVRISP-MKII/AVRISP.c @@ -42,6 +42,7 @@ int main(void) { SetupHardware(); + V2Protocol_Init(); LEDs_SetAllLEDs(LEDMASK_USB_NOTREADY); sei(); @@ -66,7 +67,6 @@ void SetupHardware(void) /* Hardware Initialization */ LEDs_Init(); USB_Init(); - V2Protocol_Init(); } /** Event handler for the library USB Connection event. */ diff --git a/Projects/AVRISP-MKII/makefile b/Projects/AVRISP-MKII/makefile index ab2e862dc..ff0370617 100644 --- a/Projects/AVRISP-MKII/makefile +++ b/Projects/AVRISP-MKII/makefile @@ -135,6 +135,7 @@ SRC = $(TARGET).c \ Lib/XPROG/XMEGANVM.c \ Lib/XPROG/TINYNVM.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/DevChapter9.c \ + $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Device.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Endpoint.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/Host.c \ $(LUFA_PATH)/LUFA/Drivers/USB/LowLevel/HostChapter9.c \ -- cgit v1.2.3