1 /** 2 * \file 3 * 4 * \brief Instance description for TRNG 5 * 6 * Copyright (c) 2016 Atmel Corporation, 7 * a wholly owned subsidiary of Microchip Technology Inc. 8 * 9 * \asf_license_start 10 * 11 * \page License 12 * 13 * Licensed under the Apache License, Version 2.0 (the "License"); 14 * you may not use this file except in compliance with the License. 15 * You may obtain a copy of the Licence at 16 * 17 * http://www.apache.org/licenses/LICENSE-2.0 18 * 19 * Unless required by applicable law or agreed to in writing, software 20 * distributed under the License is distributed on an "AS IS" BASIS, 21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 * See the License for the specific language governing permissions and 23 * limitations under the License. 24 * 25 * \asf_license_stop 26 * 27 */ 28 29 #ifndef _SAM4L_TRNG_INSTANCE_ 30 #define _SAM4L_TRNG_INSTANCE_ 31 32 /* ========== Register definition for TRNG peripheral ========== */ 33 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 #define REG_TRNG_CR (0x40068000) /**< \brief (TRNG) Control Register */ 35 #define REG_TRNG_IER (0x40068010) /**< \brief (TRNG) Interrupt Enable Register */ 36 #define REG_TRNG_IDR (0x40068014) /**< \brief (TRNG) Interrupt Disable Register */ 37 #define REG_TRNG_IMR (0x40068018) /**< \brief (TRNG) Interrupt Mask Register */ 38 #define REG_TRNG_ISR (0x4006801C) /**< \brief (TRNG) Interrupt Status Register */ 39 #define REG_TRNG_ODATA (0x40068050) /**< \brief (TRNG) Output Data Register */ 40 #define REG_TRNG_VERSION (0x400680FC) /**< \brief (TRNG) Version Register */ 41 #else 42 #define REG_TRNG_CR (*(WoReg *)0x40068000UL) /**< \brief (TRNG) Control Register */ 43 #define REG_TRNG_IER (*(WoReg *)0x40068010UL) /**< \brief (TRNG) Interrupt Enable Register */ 44 #define REG_TRNG_IDR (*(WoReg *)0x40068014UL) /**< \brief (TRNG) Interrupt Disable Register */ 45 #define REG_TRNG_IMR (*(RoReg *)0x40068018UL) /**< \brief (TRNG) Interrupt Mask Register */ 46 #define REG_TRNG_ISR (*(RoReg *)0x4006801CUL) /**< \brief (TRNG) Interrupt Status Register */ 47 #define REG_TRNG_ODATA (*(RoReg *)0x40068050UL) /**< \brief (TRNG) Output Data Register */ 48 #define REG_TRNG_VERSION (*(RoReg *)0x400680FCUL) /**< \brief (TRNG) Version Register */ 49 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 50 51 52 #endif /* _SAM4L_TRNG_INSTANCE_ */ 53