From 27b0d98d085454a9f3fbaeb73ac3000e5a965db4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 30 Jun 2015 21:42:21 +0200 Subject: added support for C++ based projects --- lib/rda1846.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/rda1846.h') diff --git a/lib/rda1846.h b/lib/rda1846.h index d043f00..c744444 100644 --- a/lib/rda1846.h +++ b/lib/rda1846.h @@ -23,6 +23,10 @@ #ifndef SPREADAVR_rda1846_h_INCLUDED #define SPREADAVR_rda1846_h_INCLUDED +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { b_2m, b_1m5, b_70cm } rf_band_t; char* rda1846_rf_band_to_string(rf_band_t); typedef enum { bw_12k5, bw_25k } channel_bw_t; @@ -64,4 +68,8 @@ uint16_t rda1846_get_flags(void); void rda1846_dump_register(void); +#ifdef __cplusplus +} +#endif + #endif -- cgit v1.2.3