From af635024db2b5d46d57eb5f5da959f6b4f4bf42c Mon Sep 17 00:00:00 2001 From: Zach Eveland Date: Tue, 30 Aug 2011 11:50:08 -0400 Subject: support for non-Leonardo boards is back! --- cores/arduino/USBCore.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cores/arduino/USBCore.cpp') diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp index 49fda35..9ce2e00 100644 --- a/cores/arduino/USBCore.cpp +++ b/cores/arduino/USBCore.cpp @@ -20,6 +20,8 @@ #include "USBAPI.h" #include "USBDesc.h" +#if defined(USBCON) + #define EP_TYPE_CONTROL 0x00 #define EP_TYPE_BULK_IN 0x81 #define EP_TYPE_BULK_OUT 0x80 @@ -648,4 +650,6 @@ void USB_::poll() if (USB_Available(MSC_RX)) MSC_Data(MSC_RX,MSC_TX); #endif -} \ No newline at end of file +} + +#endif /* if defined(USBCON) */ \ No newline at end of file -- cgit v1.2.3-18-g5258