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 cb9624909f cpu/sam0_common: import vendor files for same54
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 SAME54 Series Device Support (1.0.87)
License: Apache-2.0
URL: http://packs.download.atmel.com/Atmel.SAME54_DFP.1.0.87.atpack
2019-06-06 16:47:11 +02:00

61 lines
1.3 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_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 */
/** @} */