From e118525731a1a53b8b3523553c25e7d710b5486c Mon Sep 17 00:00:00 2001 From: Kees Bakker <kees@sodaq.com> Date: Sat, 20 Aug 2016 12:23:48 +0200 Subject: [PATCH] cpu/sam21_common: add C++ wrapper to sam0.h --- cpu/sam21_common/include/sam0.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cpu/sam21_common/include/sam0.h b/cpu/sam21_common/include/sam0.h index 9c34732483..ae8d986a8e 100644 --- a/cpu/sam21_common/include/sam0.h +++ b/cpu/sam21_common/include/sam0.h @@ -19,11 +19,19 @@ #ifndef SAM0_H #define SAM0_H +#ifdef __cplusplus +extern "C" { +#endif + #if defined(__SAMR21G18A__) || defined(__ATSAMR21G18A__) #include "cmsis/samr21/include/samr21g18a.h" #else #error "Unsupported SAM0 variant." #endif +#ifdef __cplusplus +} +#endif + #endif /* SAM0_H */ /** @} */ -- GitLab