From 69bd26b75718dbd18812dec3e4725fe467e43f46 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 29 Sep 2022 12:17:20 -0400 Subject: lib: Add atmel same51 and same54 build definitions This also replaces the samd51 component files with the definitions from the same54 repository. Signed-off-by: Kevin O'Connor --- lib/same54/include/instance/pcc.h | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lib/same54/include/instance/pcc.h (limited to 'lib/same54/include/instance/pcc.h') diff --git a/lib/same54/include/instance/pcc.h b/lib/same54/include/instance/pcc.h new file mode 100644 index 00000000..01e353e9 --- /dev/null +++ b/lib/same54/include/instance/pcc.h @@ -0,0 +1,58 @@ +/** + * \file + * + * \brief Instance description for PCC + * + * Copyright (c) 2019 Microchip Technology Inc. + * + * \asf_license_start + * + * \page License + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the Licence at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * \asf_license_stop + * + */ + +#ifndef _SAME54_PCC_INSTANCE_ +#define _SAME54_PCC_INSTANCE_ + +/* ========== Register definition for PCC peripheral ========== */ +#if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) +#define REG_PCC_MR (0x43002C00) /**< \brief (PCC) Mode Register */ +#define REG_PCC_IER (0x43002C04) /**< \brief (PCC) Interrupt Enable Register */ +#define REG_PCC_IDR (0x43002C08) /**< \brief (PCC) Interrupt Disable Register */ +#define REG_PCC_IMR (0x43002C0C) /**< \brief (PCC) Interrupt Mask Register */ +#define REG_PCC_ISR (0x43002C10) /**< \brief (PCC) Interrupt Status Register */ +#define REG_PCC_RHR (0x43002C14) /**< \brief (PCC) Reception Holding Register */ +#define REG_PCC_WPMR (0x43002CE0) /**< \brief (PCC) Write Protection Mode Register */ +#define REG_PCC_WPSR (0x43002CE4) /**< \brief (PCC) Write Protection Status Register */ +#else +#define REG_PCC_MR (*(RwReg *)0x43002C00UL) /**< \brief (PCC) Mode Register */ +#define REG_PCC_IER (*(WoReg *)0x43002C04UL) /**< \brief (PCC) Interrupt Enable Register */ +#define REG_PCC_IDR (*(WoReg *)0x43002C08UL) /**< \brief (PCC) Interrupt Disable Register */ +#define REG_PCC_IMR (*(RoReg *)0x43002C0CUL) /**< \brief (PCC) Interrupt Mask Register */ +#define REG_PCC_ISR (*(RoReg *)0x43002C10UL) /**< \brief (PCC) Interrupt Status Register */ +#define REG_PCC_RHR (*(RoReg *)0x43002C14UL) /**< \brief (PCC) Reception Holding Register */ +#define REG_PCC_WPMR (*(RwReg *)0x43002CE0UL) /**< \brief (PCC) Write Protection Mode Register */ +#define REG_PCC_WPSR (*(RoReg *)0x43002CE4UL) /**< \brief (PCC) Write Protection Status Register */ +#endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ + +/* ========== Instance parameters for PCC peripheral ========== */ +#define PCC_DATA_SIZE 14 +#define PCC_DMAC_ID_RX 80 + +#endif /* _SAME54_PCC_INSTANCE_ */ -- cgit v1.2.3-70-g09d2