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/AVRISP-MKII | |
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/AVRISP-MKII')
-rw-r--r-- | Projects/AVRISP-MKII/AVRISP.c | 2 | ||||
-rw-r--r-- | Projects/AVRISP-MKII/makefile | 1 |
2 files changed, 2 insertions, 1 deletions
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 \ |