diff options
Diffstat (limited to 'lib/serialio.h')
-rw-r--r-- | lib/serialio.h | 8 |
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 |