1 /** 2 * \file 3 * 4 * \brief Instance description for DIVAS 5 * 6 * Copyright (c) 2018 Microchip Technology Inc. 7 * 8 * \asf_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"); you may 15 * not use this file except in compliance with the License. 16 * You may obtain a copy of the Licence 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, WITHOUT 22 * 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 * \asf_license_stop 27 * 28 */ 29 30 #ifndef _SAMC21_DIVAS_INSTANCE_ 31 #define _SAMC21_DIVAS_INSTANCE_ 32 33 /* ========== Register definition for DIVAS peripheral ========== */ 34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 35 #define REG_DIVAS_CTRLA (0x48000000) /**< \brief (DIVAS) Control */ 36 #define REG_DIVAS_STATUS (0x48000004) /**< \brief (DIVAS) Status */ 37 #define REG_DIVAS_DIVIDEND (0x48000008) /**< \brief (DIVAS) Dividend */ 38 #define REG_DIVAS_DIVISOR (0x4800000C) /**< \brief (DIVAS) Divisor */ 39 #define REG_DIVAS_RESULT (0x48000010) /**< \brief (DIVAS) Result */ 40 #define REG_DIVAS_REM (0x48000014) /**< \brief (DIVAS) Remainder */ 41 #define REG_DIVAS_SQRNUM (0x48000018) /**< \brief (DIVAS) Square Root Input */ 42 #else 43 #define REG_DIVAS_CTRLA (*(RwReg8 *)0x48000000UL) /**< \brief (DIVAS) Control */ 44 #define REG_DIVAS_STATUS (*(RwReg8 *)0x48000004UL) /**< \brief (DIVAS) Status */ 45 #define REG_DIVAS_DIVIDEND (*(RwReg *)0x48000008UL) /**< \brief (DIVAS) Dividend */ 46 #define REG_DIVAS_DIVISOR (*(RwReg *)0x4800000CUL) /**< \brief (DIVAS) Divisor */ 47 #define REG_DIVAS_RESULT (*(RoReg *)0x48000010UL) /**< \brief (DIVAS) Result */ 48 #define REG_DIVAS_REM (*(RoReg *)0x48000014UL) /**< \brief (DIVAS) Remainder */ 49 #define REG_DIVAS_SQRNUM (*(RwReg *)0x48000018UL) /**< \brief (DIVAS) Square Root Input */ 50 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 51 52 /* ========== Instance parameters for DIVAS peripheral ========== */ 53 #define DIVAS_CLK_AHB_ID 12 // AHB clock index 54 55 #endif /* _SAMC21_DIVAS_INSTANCE_ */ 56