summaryrefslogtreecommitdiff
path: root/lib/usbio.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-06-30 21:42:21 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-06-30 21:42:21 +0200
commit27b0d98d085454a9f3fbaeb73ac3000e5a965db4 (patch)
tree01c5cd7a67d25a26fe1e886999c4a48dd37dd00e /lib/usbio.h
parentupdated copyright info (diff)
added support for C++ based projects
Diffstat (limited to 'lib/usbio.h')
-rw-r--r--lib/usbio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/usbio.h b/lib/usbio.h
index 4abdb2c..3373855 100644
--- a/lib/usbio.h
+++ b/lib/usbio.h
@@ -24,10 +24,18 @@
#ifndef SPREADAVR_usbio_h_INCLUDED
#define SPREADAVR_usbio_h_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
void usbio_init(void);
void usbio_task(void);
int16_t usbio_bytes_received(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif