1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/sam0_common/include/vendor/samd5x.h
Benjamin Valentin 3cd119a6e6 cpu/sam0_common: import vendor files for samd51
Atmel Software Framework (ASF) provides a set of low-level header files
that give access to different hardware peripherals of Atmel's ICs.

Origin: Atmel SAMD51 Series Device Support (1.1.96)
License: Apache-2.0
URL: http://packs.download.atmel.com/Atmel.SAMD51_DFP.1.1.96.atpack
2019-06-06 16:47:11 +02:00

80 lines
2.1 KiB
C

/*
* Copyright (C) 2019 ML!PA Consulting GmbH
*
* 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_samd5x
* @{
*
* @file
* @brief Wrapper include file for including the specific
* SAMD5x/SAME5x vendor header
*
* @author Benjamin Valentin <benjamin.valentin@ml-pa.com>
*/
#ifndef SAMD5X_H
#define SAMD5X_H
#ifdef __cplusplus
extern "C" {
#endif
/* Workaround redefinition of LITTLE_ENDIAN macro (part1) */
#ifdef LITTLE_ENDIAN
#define __TMP_LITTLE_ENDIAN LITTLE_ENDIAN
#undef LITTLE_ENDIAN
#endif
#if defined(CPU_MODEL_SAMD51G18A)
#include "vendor/samd51/include/samd51g18a.h"
#elif defined(CPU_MODEL_SAMD51G19A)
#include "vendor/samd51/include/samd51g19a.h"
#elif defined(CPU_MODEL_SAMD51J18A)
#include "vendor/samd51/include/samd51j18a.h"
#elif defined(CPU_MODEL_SAMD51J19A)
#include "vendor/samd51/include/samd51j19a.h"
#elif defined(CPU_MODEL_SAMD51J20A)
#include "vendor/samd51/include/samd51j20a.h"
#elif defined(CPU_MODEL_SAMD51N19A)
#include "vendor/samd51/include/samd51n19a.h"
#elif defined(CPU_MODEL_SAMD51N20A)
#include "vendor/samd51/include/samd51n20a.h"
#elif defined(CPU_MODEL_SAMD51P19A)
#include "vendor/samd51/include/samd51p19a.h"
#elif defined(CPU_MODEL_SAMD51P20A)
#include "vendor/samd51/include/samd51p20a.h"
#elif defined(CPU_MODEL_SAME54N19A)
#include "vendor/same54/include/same54n19a.h"
#elif defined(CPU_MODEL_SAME54N20A)
#include "vendor/same54/include/same54n20a.h"
#elif defined(CPU_MODEL_SAME54P19A)
#include "vendor/same54/include/same54p19a.h"
#elif defined(CPU_MODEL_SAME54P20A)
#include "vendor/same54/include/same54p20a.h"
#else
#error "Unsupported SAMD5x/SAME5x variant."
#endif
/* Workaround redefinition of LITTLE_ENDIAN macro (part2) */
#ifdef LITTLE_ENDIAN
#undef LITTLE_ENDIAN
#endif
#ifdef __TMP_LITTLE_ENDIAN
#define LITTLE_ENDIAN __TMP_LITTLE_ENDIAN
#endif
#ifdef __cplusplus
}
#endif
#endif /* SAMD5x_H */
/** @} */