aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r--cores/arduino/USBCore.cpp6
1 files changed, 5 insertions, 1 deletions
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