/* * Copyright (c) 2019 Gerson Fernando Budke * Copyright (c) 2016 Piotr Mienkowski * SPDX-License-Identifier: Apache-2.0 */ /** @file * @brief Register access macros for the Atmel SAM V71 MCU. * * This file provides register access macros for the Atmel SAM V71 MCU, HAL * drivers for core peripherals as well as symbols specific to Atmel SAM family. */ #ifndef _ATMEL_SAMV71_SOC_H_ #define _ATMEL_SAMV71_SOC_H_ #include #ifndef _ASMLANGUAGE /* Add include for DTS generated information */ #include #define DONT_USE_CMSIS_INIT #define DONT_USE_PREDEFINED_CORE_HANDLERS #define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS #if defined CONFIG_SOC_PART_NUMBER_SAMV71J19 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71J20 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71J21 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N19 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N20 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N21 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q19 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q20 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q21 #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71J19B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71J20B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71J21B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N19B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N20B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71N21B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q19B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q20B #include #elif defined CONFIG_SOC_PART_NUMBER_SAMV71Q21B #include #else #error Library does not support the specified device. #endif #include "../common/soc_pmc.h" #include "../common/soc_gpio.h" #include "../common/atmel_sam_dt.h" /** Processor Clock (HCLK) Frequency */ #define SOC_ATMEL_SAM_HCLK_FREQ_HZ ATMEL_SAM_DT_CPU_CLK_FREQ_HZ /** Master Clock (MCK) Frequency */ #define SOC_ATMEL_SAM_MCK_FREQ_HZ \ (SOC_ATMEL_SAM_HCLK_FREQ_HZ / CONFIG_SOC_ATMEL_SAMV71_MDIV) #endif /* _ASMLANGUAGE */ #endif /* _ATMEL_SAMV71_SOC_H_ */