1 /** 2 * \file 3 * 4 * \brief Instance description for UART2 5 * 6 * Copyright (c) 2019 Microchip Technology Inc. 7 * 8 * \license_start 9 * 10 * \page License 11 * 12 * SPDX-License-Identifier: Apache-2.0 13 * 14 * Licensed under the Apache License, Version 2.0 (the "License"); 15 * you may not use this file except in compliance with the License. 16 * You may obtain a copy of the License at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, software 21 * distributed under the License is distributed on an "AS IS" BASIS, 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. 25 * 26 * \license_stop 27 * 28 */ 29 30 /* file generated from device description version 2017-01-08T14:00:00Z */ 31 #ifndef _SAMV71_UART2_INSTANCE_H_ 32 #define _SAMV71_UART2_INSTANCE_H_ 33 34 /* ========== Register definition for UART2 peripheral ========== */ 35 #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) 36 37 #define REG_UART2_CR (0x400E1A00) /**< (UART2) Control Register */ 38 #define REG_UART2_MR (0x400E1A04) /**< (UART2) Mode Register */ 39 #define REG_UART2_IER (0x400E1A08) /**< (UART2) Interrupt Enable Register */ 40 #define REG_UART2_IDR (0x400E1A0C) /**< (UART2) Interrupt Disable Register */ 41 #define REG_UART2_IMR (0x400E1A10) /**< (UART2) Interrupt Mask Register */ 42 #define REG_UART2_SR (0x400E1A14) /**< (UART2) Status Register */ 43 #define REG_UART2_RHR (0x400E1A18) /**< (UART2) Receive Holding Register */ 44 #define REG_UART2_THR (0x400E1A1C) /**< (UART2) Transmit Holding Register */ 45 #define REG_UART2_BRGR (0x400E1A20) /**< (UART2) Baud Rate Generator Register */ 46 #define REG_UART2_CMPR (0x400E1A24) /**< (UART2) Comparison Register */ 47 #define REG_UART2_WPMR (0x400E1AE4) /**< (UART2) Write Protection Mode Register */ 48 #define REG_UART2_VERSION (0x400E1AFC) /**< (UART2) Version Register */ 49 50 #else 51 52 #define REG_UART2_CR (*(__O uint32_t*)0x400E1A00U) /**< (UART2) Control Register */ 53 #define REG_UART2_MR (*(__IO uint32_t*)0x400E1A04U) /**< (UART2) Mode Register */ 54 #define REG_UART2_IER (*(__O uint32_t*)0x400E1A08U) /**< (UART2) Interrupt Enable Register */ 55 #define REG_UART2_IDR (*(__O uint32_t*)0x400E1A0CU) /**< (UART2) Interrupt Disable Register */ 56 #define REG_UART2_IMR (*(__I uint32_t*)0x400E1A10U) /**< (UART2) Interrupt Mask Register */ 57 #define REG_UART2_SR (*(__I uint32_t*)0x400E1A14U) /**< (UART2) Status Register */ 58 #define REG_UART2_RHR (*(__I uint32_t*)0x400E1A18U) /**< (UART2) Receive Holding Register */ 59 #define REG_UART2_THR (*(__O uint32_t*)0x400E1A1CU) /**< (UART2) Transmit Holding Register */ 60 #define REG_UART2_BRGR (*(__IO uint32_t*)0x400E1A20U) /**< (UART2) Baud Rate Generator Register */ 61 #define REG_UART2_CMPR (*(__IO uint32_t*)0x400E1A24U) /**< (UART2) Comparison Register */ 62 #define REG_UART2_WPMR (*(__IO uint32_t*)0x400E1AE4U) /**< (UART2) Write Protection Mode Register */ 63 #define REG_UART2_VERSION (*(__I uint32_t*)0x400E1AFCU) /**< (UART2) Version Register */ 64 65 #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */ 66 67 /* ========== Instance Parameter definitions for UART2 peripheral ========== */ 68 #define UART2_DMAC_ID_RX 25 69 #define UART2_DMAC_ID_TX 24 70 #define UART2_INSTANCE_ID 44 71 72 #endif /* _SAMV71_UART2_INSTANCE_ */ 73