1 /** 2 * \file 3 * 4 * \brief Instance description for USART0 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_USART0_INSTANCE_H_ 32 #define _SAMV71_USART0_INSTANCE_H_ 33 34 /* ========== Register definition for USART0 peripheral ========== */ 35 #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) 36 37 #define REG_USART0_US_CR (0x40024000) /**< (USART0) Control Register */ 38 #define REG_USART0_US_MR (0x40024004) /**< (USART0) Mode Register */ 39 #define REG_USART0_US_IER (0x40024008) /**< (USART0) Interrupt Enable Register */ 40 #define REG_USART0_US_IDR (0x4002400C) /**< (USART0) Interrupt Disable Register */ 41 #define REG_USART0_US_IMR (0x40024010) /**< (USART0) Interrupt Mask Register */ 42 #define REG_USART0_US_CSR (0x40024014) /**< (USART0) Channel Status Register */ 43 #define REG_USART0_US_RHR (0x40024018) /**< (USART0) Receive Holding Register */ 44 #define REG_USART0_US_THR (0x4002401C) /**< (USART0) Transmit Holding Register */ 45 #define REG_USART0_US_BRGR (0x40024020) /**< (USART0) Baud Rate Generator Register */ 46 #define REG_USART0_US_RTOR (0x40024024) /**< (USART0) Receiver Timeout Register */ 47 #define REG_USART0_US_TTGR (0x40024028) /**< (USART0) Transmitter Timeguard Register */ 48 #define REG_USART0_US_FIDI (0x40024040) /**< (USART0) FI DI Ratio Register */ 49 #define REG_USART0_US_NER (0x40024044) /**< (USART0) Number of Errors Register */ 50 #define REG_USART0_US_IF (0x4002404C) /**< (USART0) IrDA Filter Register */ 51 #define REG_USART0_US_MAN (0x40024050) /**< (USART0) Manchester Configuration Register */ 52 #define REG_USART0_US_LINMR (0x40024054) /**< (USART0) LIN Mode Register */ 53 #define REG_USART0_US_LINIR (0x40024058) /**< (USART0) LIN Identifier Register */ 54 #define REG_USART0_US_LINBRR (0x4002405C) /**< (USART0) LIN Baud Rate Register */ 55 #define REG_USART0_US_LONMR (0x40024060) /**< (USART0) LON Mode Register */ 56 #define REG_USART0_US_LONPR (0x40024064) /**< (USART0) LON Preamble Register */ 57 #define REG_USART0_US_LONDL (0x40024068) /**< (USART0) LON Data Length Register */ 58 #define REG_USART0_US_LONL2HDR (0x4002406C) /**< (USART0) LON L2HDR Register */ 59 #define REG_USART0_US_LONBL (0x40024070) /**< (USART0) LON Backlog Register */ 60 #define REG_USART0_US_LONB1TX (0x40024074) /**< (USART0) LON Beta1 Tx Register */ 61 #define REG_USART0_US_LONB1RX (0x40024078) /**< (USART0) LON Beta1 Rx Register */ 62 #define REG_USART0_US_LONPRIO (0x4002407C) /**< (USART0) LON Priority Register */ 63 #define REG_USART0_US_IDTTX (0x40024080) /**< (USART0) LON IDT Tx Register */ 64 #define REG_USART0_US_IDTRX (0x40024084) /**< (USART0) LON IDT Rx Register */ 65 #define REG_USART0_US_ICDIFF (0x40024088) /**< (USART0) IC DIFF Register */ 66 #define REG_USART0_US_WPMR (0x400240E4) /**< (USART0) Write Protection Mode Register */ 67 #define REG_USART0_US_WPSR (0x400240E8) /**< (USART0) Write Protection Status Register */ 68 #define REG_USART0_US_VERSION (0x400240FC) /**< (USART0) Version Register */ 69 70 #else 71 72 #define REG_USART0_US_CR (*(__O uint32_t*)0x40024000U) /**< (USART0) Control Register */ 73 #define REG_USART0_US_MR (*(__IO uint32_t*)0x40024004U) /**< (USART0) Mode Register */ 74 #define REG_USART0_US_IER (*(__O uint32_t*)0x40024008U) /**< (USART0) Interrupt Enable Register */ 75 #define REG_USART0_US_IDR (*(__O uint32_t*)0x4002400CU) /**< (USART0) Interrupt Disable Register */ 76 #define REG_USART0_US_IMR (*(__I uint32_t*)0x40024010U) /**< (USART0) Interrupt Mask Register */ 77 #define REG_USART0_US_CSR (*(__I uint32_t*)0x40024014U) /**< (USART0) Channel Status Register */ 78 #define REG_USART0_US_RHR (*(__I uint32_t*)0x40024018U) /**< (USART0) Receive Holding Register */ 79 #define REG_USART0_US_THR (*(__O uint32_t*)0x4002401CU) /**< (USART0) Transmit Holding Register */ 80 #define REG_USART0_US_BRGR (*(__IO uint32_t*)0x40024020U) /**< (USART0) Baud Rate Generator Register */ 81 #define REG_USART0_US_RTOR (*(__IO uint32_t*)0x40024024U) /**< (USART0) Receiver Timeout Register */ 82 #define REG_USART0_US_TTGR (*(__IO uint32_t*)0x40024028U) /**< (USART0) Transmitter Timeguard Register */ 83 #define REG_USART0_US_FIDI (*(__IO uint32_t*)0x40024040U) /**< (USART0) FI DI Ratio Register */ 84 #define REG_USART0_US_NER (*(__I uint32_t*)0x40024044U) /**< (USART0) Number of Errors Register */ 85 #define REG_USART0_US_IF (*(__IO uint32_t*)0x4002404CU) /**< (USART0) IrDA Filter Register */ 86 #define REG_USART0_US_MAN (*(__IO uint32_t*)0x40024050U) /**< (USART0) Manchester Configuration Register */ 87 #define REG_USART0_US_LINMR (*(__IO uint32_t*)0x40024054U) /**< (USART0) LIN Mode Register */ 88 #define REG_USART0_US_LINIR (*(__IO uint32_t*)0x40024058U) /**< (USART0) LIN Identifier Register */ 89 #define REG_USART0_US_LINBRR (*(__I uint32_t*)0x4002405CU) /**< (USART0) LIN Baud Rate Register */ 90 #define REG_USART0_US_LONMR (*(__IO uint32_t*)0x40024060U) /**< (USART0) LON Mode Register */ 91 #define REG_USART0_US_LONPR (*(__IO uint32_t*)0x40024064U) /**< (USART0) LON Preamble Register */ 92 #define REG_USART0_US_LONDL (*(__IO uint32_t*)0x40024068U) /**< (USART0) LON Data Length Register */ 93 #define REG_USART0_US_LONL2HDR (*(__IO uint32_t*)0x4002406CU) /**< (USART0) LON L2HDR Register */ 94 #define REG_USART0_US_LONBL (*(__I uint32_t*)0x40024070U) /**< (USART0) LON Backlog Register */ 95 #define REG_USART0_US_LONB1TX (*(__IO uint32_t*)0x40024074U) /**< (USART0) LON Beta1 Tx Register */ 96 #define REG_USART0_US_LONB1RX (*(__IO uint32_t*)0x40024078U) /**< (USART0) LON Beta1 Rx Register */ 97 #define REG_USART0_US_LONPRIO (*(__IO uint32_t*)0x4002407CU) /**< (USART0) LON Priority Register */ 98 #define REG_USART0_US_IDTTX (*(__IO uint32_t*)0x40024080U) /**< (USART0) LON IDT Tx Register */ 99 #define REG_USART0_US_IDTRX (*(__IO uint32_t*)0x40024084U) /**< (USART0) LON IDT Rx Register */ 100 #define REG_USART0_US_ICDIFF (*(__IO uint32_t*)0x40024088U) /**< (USART0) IC DIFF Register */ 101 #define REG_USART0_US_WPMR (*(__IO uint32_t*)0x400240E4U) /**< (USART0) Write Protection Mode Register */ 102 #define REG_USART0_US_WPSR (*(__I uint32_t*)0x400240E8U) /**< (USART0) Write Protection Status Register */ 103 #define REG_USART0_US_VERSION (*(__I uint32_t*)0x400240FCU) /**< (USART0) Version Register */ 104 105 #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */ 106 107 /* ========== Instance Parameter definitions for USART0 peripheral ========== */ 108 #define USART0_DMAC_ID_RX 8 109 #define USART0_DMAC_ID_TX 7 110 #define USART0_INSTANCE_ID 13 111 112 #endif /* _SAMV71_USART0_INSTANCE_ */ 113