From 1fb53348e720deaa32e453e9f931c4d56564e60b Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 27 Dec 2014 17:15:49 +0100 Subject: [PATCH] USB Wakeup u2 Series fix Now working with HoodLoader2. Also got the chance to test the features on a PC where USB wakeup is supported. It seems to work now properly. --- USBCore.cpp | 36 ++++++++++-------------------------- hidtests2/hidtests2.ino | 8 ++++---- 2 files changed, 14 insertions(+), 30 deletions(-) diff --git a/USBCore.cpp b/USBCore.cpp index 242c6dc..764a411 100644 --- a/USBCore.cpp +++ b/USBCore.cpp @@ -654,32 +654,6 @@ void USB_Flush(u8 ep) ReleaseTX(); } -// edit by NicoHood -// added from teensy definition by paul stoffregen -//TODO remove, not needed anymore -#if defined(__AVR_AT90USB82__) || defined(__AVR_AT90USB162__) || defined(__AVR_ATmega32U2__) || defined(__AVR_ATmega16U2__) || defined(__AVR_ATmega8U2__) -#define HW_CONFIG() -#define PLL_CONFIG() (PLLCSR = ((1<