1 /** 2 * \file 3 * 4 * \brief Instance description for TWIHS1 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 2019-01-18T21:21:15Z */ 31 #ifndef _SAMV71_TWIHS1_INSTANCE_H_ 32 #define _SAMV71_TWIHS1_INSTANCE_H_ 33 34 /* ========== Register definition for TWIHS1 peripheral ========== */ 35 #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) 36 37 #define REG_TWIHS1_CR (0x4001C000) /**< (TWIHS1) Control Register */ 38 #define REG_TWIHS1_MMR (0x4001C004) /**< (TWIHS1) Master Mode Register */ 39 #define REG_TWIHS1_SMR (0x4001C008) /**< (TWIHS1) Slave Mode Register */ 40 #define REG_TWIHS1_IADR (0x4001C00C) /**< (TWIHS1) Internal Address Register */ 41 #define REG_TWIHS1_CWGR (0x4001C010) /**< (TWIHS1) Clock Waveform Generator Register */ 42 #define REG_TWIHS1_SR (0x4001C020) /**< (TWIHS1) Status Register */ 43 #define REG_TWIHS1_IER (0x4001C024) /**< (TWIHS1) Interrupt Enable Register */ 44 #define REG_TWIHS1_IDR (0x4001C028) /**< (TWIHS1) Interrupt Disable Register */ 45 #define REG_TWIHS1_IMR (0x4001C02C) /**< (TWIHS1) Interrupt Mask Register */ 46 #define REG_TWIHS1_RHR (0x4001C030) /**< (TWIHS1) Receive Holding Register */ 47 #define REG_TWIHS1_THR (0x4001C034) /**< (TWIHS1) Transmit Holding Register */ 48 #define REG_TWIHS1_SMBTR (0x4001C038) /**< (TWIHS1) SMBus Timing Register */ 49 #define REG_TWIHS1_FILTR (0x4001C044) /**< (TWIHS1) Filter Register */ 50 #define REG_TWIHS1_SWMR (0x4001C04C) /**< (TWIHS1) SleepWalking Matching Register */ 51 #define REG_TWIHS1_WPMR (0x4001C0E4) /**< (TWIHS1) Write Protection Mode Register */ 52 #define REG_TWIHS1_WPSR (0x4001C0E8) /**< (TWIHS1) Write Protection Status Register */ 53 54 #else 55 56 #define REG_TWIHS1_CR (*(__O uint32_t*)0x4001C000U) /**< (TWIHS1) Control Register */ 57 #define REG_TWIHS1_MMR (*(__IO uint32_t*)0x4001C004U) /**< (TWIHS1) Master Mode Register */ 58 #define REG_TWIHS1_SMR (*(__IO uint32_t*)0x4001C008U) /**< (TWIHS1) Slave Mode Register */ 59 #define REG_TWIHS1_IADR (*(__IO uint32_t*)0x4001C00CU) /**< (TWIHS1) Internal Address Register */ 60 #define REG_TWIHS1_CWGR (*(__IO uint32_t*)0x4001C010U) /**< (TWIHS1) Clock Waveform Generator Register */ 61 #define REG_TWIHS1_SR (*(__I uint32_t*)0x4001C020U) /**< (TWIHS1) Status Register */ 62 #define REG_TWIHS1_IER (*(__O uint32_t*)0x4001C024U) /**< (TWIHS1) Interrupt Enable Register */ 63 #define REG_TWIHS1_IDR (*(__O uint32_t*)0x4001C028U) /**< (TWIHS1) Interrupt Disable Register */ 64 #define REG_TWIHS1_IMR (*(__I uint32_t*)0x4001C02CU) /**< (TWIHS1) Interrupt Mask Register */ 65 #define REG_TWIHS1_RHR (*(__I uint32_t*)0x4001C030U) /**< (TWIHS1) Receive Holding Register */ 66 #define REG_TWIHS1_THR (*(__O uint32_t*)0x4001C034U) /**< (TWIHS1) Transmit Holding Register */ 67 #define REG_TWIHS1_SMBTR (*(__IO uint32_t*)0x4001C038U) /**< (TWIHS1) SMBus Timing Register */ 68 #define REG_TWIHS1_FILTR (*(__IO uint32_t*)0x4001C044U) /**< (TWIHS1) Filter Register */ 69 #define REG_TWIHS1_SWMR (*(__IO uint32_t*)0x4001C04CU) /**< (TWIHS1) SleepWalking Matching Register */ 70 #define REG_TWIHS1_WPMR (*(__IO uint32_t*)0x4001C0E4U) /**< (TWIHS1) Write Protection Mode Register */ 71 #define REG_TWIHS1_WPSR (*(__I uint32_t*)0x4001C0E8U) /**< (TWIHS1) Write Protection Status Register */ 72 73 #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */ 74 75 /* ========== Instance Parameter definitions for TWIHS1 peripheral ========== */ 76 #define TWIHS1_DMAC_ID_RX 17 77 #define TWIHS1_DMAC_ID_TX 16 78 #define TWIHS1_INSTANCE_ID 20 79 #define TWIHS1_CLOCK_ID 20 80 81 #endif /* _SAMV71_TWIHS1_INSTANCE_ */ 82