1 /** 2 * \file 3 * 4 * \brief Instance description for EFC 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_EFC_INSTANCE_H_ 32 #define _SAMV71_EFC_INSTANCE_H_ 33 34 /* ========== Register definition for EFC peripheral ========== */ 35 #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) 36 37 #define REG_EEFC_FMR (0x400E0C00) /**< (EFC) EEFC Flash Mode Register */ 38 #define REG_EEFC_FCR (0x400E0C04) /**< (EFC) EEFC Flash Command Register */ 39 #define REG_EEFC_FSR (0x400E0C08) /**< (EFC) EEFC Flash Status Register */ 40 #define REG_EEFC_FRR (0x400E0C0C) /**< (EFC) EEFC Flash Result Register */ 41 #define REG_EEFC_VERSION (0x400E0C14) /**< (EFC) EEFC Version Register */ 42 #define REG_EEFC_WPMR (0x400E0CE4) /**< (EFC) Write Protection Mode Register */ 43 44 #else 45 46 #define REG_EEFC_FMR (*(__IO uint32_t*)0x400E0C00U) /**< (EFC) EEFC Flash Mode Register */ 47 #define REG_EEFC_FCR (*(__O uint32_t*)0x400E0C04U) /**< (EFC) EEFC Flash Command Register */ 48 #define REG_EEFC_FSR (*(__I uint32_t*)0x400E0C08U) /**< (EFC) EEFC Flash Status Register */ 49 #define REG_EEFC_FRR (*(__I uint32_t*)0x400E0C0CU) /**< (EFC) EEFC Flash Result Register */ 50 #define REG_EEFC_VERSION (*(__I uint32_t*)0x400E0C14U) /**< (EFC) EEFC Version Register */ 51 #define REG_EEFC_WPMR (*(__IO uint32_t*)0x400E0CE4U) /**< (EFC) Write Protection Mode Register */ 52 53 #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */ 54 55 /* ========== Instance Parameter definitions for EFC peripheral ========== */ 56 #define EFC_FLASH_SIZE 2097152 57 #define EFC_PAGE_SIZE 512 58 #define EFC_INSTANCE_ID 6 59 #define EFC_PAGES_PR_REGION 32 60 61 #endif /* _SAMV71_EFC_INSTANCE_ */ 62