mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
076d5bda11
The following features were tested (briefly): * UART (the first) * I2C using a BMP180 on a SODAQ TPH board * SPI0, connected to the on-board serial data flash (only DevID was read using the periph_spi test program) * xtimer is working (it's the same code as in samr21) boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
42 lines
892 B
C
42 lines
892 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
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(__SAMR21G18A__) || defined(__ATSAMR21G18A__)
|
|
#include "cmsis/samr21/include/samr21g18a.h"
|
|
#elif defined(__SAMR21E18A__) || defined(__ATSAMR21E18A__)
|
|
#include "cmsis/samr21/include/samr21e18a.h"
|
|
#elif defined(__SAMD21J18A__) || defined(__ATSAMD21J18A__)
|
|
#include "cmsis/samd21/include/samd21j18a.h"
|
|
#else
|
|
#error "Unsupported SAM0 variant."
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SAM0_H */
|
|
/** @} */
|