cpu/sam21_common: add C++ wrapper to sam0.h

This commit is contained in:
Kees Bakker 2016-08-20 12:23:48 +02:00
parent bd2fbf040b
commit e118525731

View File

@ -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 */
/** @} */