aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBAPI.h
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-08-30 11:50:08 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-08-30 11:50:08 -0400
commitaf635024db2b5d46d57eb5f5da959f6b4f4bf42c (patch)
tree37c2727e05642c2ed5ca2b9267adbf2d6fde70ce /cores/arduino/USBAPI.h
parent481fdeab797d449f6b82473b1e377c495224cff7 (diff)
support for non-Leonardo boards is back!
Diffstat (limited to 'cores/arduino/USBAPI.h')
-rw-r--r--cores/arduino/USBAPI.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cores/arduino/USBAPI.h b/cores/arduino/USBAPI.h
index b833009..0dad176 100644
--- a/cores/arduino/USBAPI.h
+++ b/cores/arduino/USBAPI.h
@@ -3,6 +3,8 @@
#ifndef __USBAPI__
#define __USBAPI__
+#if defined(USBCON)
+
//================================================================================
//================================================================================
// USB
@@ -153,4 +155,6 @@ int USB_Recv(uint8_t ep, void* data, int len); // non-blocking
int USB_Recv(uint8_t ep); // non-blocking
void USB_Flush(uint8_t ep);
-#endif \ No newline at end of file
+#endif
+
+#endif /* if defined(USBCON) */ \ No newline at end of file