summaryrefslogtreecommitdiff
path: root/lib/serialio.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/serialio.h
parentupdated copyright info (diff)
added support for C++ based projects
Diffstat (limited to 'lib/serialio.h')
-rw-r--r--lib/serialio.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/serialio.h b/lib/serialio.h
index 3d1cbe1..ca24482 100644
--- a/lib/serialio.h
+++ b/lib/serialio.h
@@ -23,10 +23,18 @@
#ifndef SPREADAVR_serialio_h_INCLUDED
#define SPREADAVR_serialio_h_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdint.h>
void serialio_init(const uint32_t baudrate, const uint8_t doublespeed);
void serialio_task(void);
int16_t serialio_bytes_received(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif