From 60e64cfd353fa61bf792e0477183d6ca4d4bf272 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 7 Aug 2015 19:47:37 +0200 Subject: [PATCH] Added u2 Series support --- .../arduino/avr/cores/arduino/USBCore.cpp | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/hardware/arduino/avr/cores/arduino/USBCore.cpp b/hardware/arduino/avr/cores/arduino/USBCore.cpp index fd2579393..f12d3269a 100644 --- a/hardware/arduino/avr/cores/arduino/USBCore.cpp +++ b/hardware/arduino/avr/cores/arduino/USBCore.cpp @@ -627,13 +627,19 @@ void USB_Flush(u8 ep) static inline void USB_ClockDisable() { +#if defined(OTGPADE) USBCON = (USBCON & ~(1<