1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam21_common/include/sam0.h
Kees Bakker 8644b5f7a0 cpu/samd21: introduce sam0.h so that we can select samr21.h or other
In the Makefile.include of the board it is required to set the correct
define.

Currently only SAMRG18A is supported, as required by samr21-xpro.
2016-09-21 19:43:30 +02:00

30 lines
615 B
C

/*
* Copyright (C) 2016 Kees Bakker
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup cpu_sam21_common
* @{
*
* @file
* @brief Wrapper include file for samd21.h, samr21.h, etc
*
* @author Kees Bakker <kees@sodaq.com>
*/
#ifndef SAM0_H
#define SAM0_H
#if defined(__SAMR21G18A__) || defined(__ATSAMR21G18A__)
#include "cmsis/samr21/include/samr21g18a.h"
#else
#error "Unsupported SAM0 variant."
#endif
#endif /* SAM0_H */
/** @} */