1 /* 2 * Copyright (c) 2016 Intel Corporation. 3 * Copyright (c) 2013-2015 Wind River Systems, Inc. 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8 /** @file 9 * @brief Register access macros for the Atmel SAM3X MCU. 10 * 11 * This file provides register access macros for the Atmel SAM3X MCU, HAL 12 * drivers for core peripherals as well as symbols specific to Atmel SAM family. 13 */ 14 15 #ifndef _ATMEL_SAM3X_SOC_H_ 16 #define _ATMEL_SAM3X_SOC_H_ 17 18 #ifndef _ASMLANGUAGE 19 20 21 #define DONT_USE_CMSIS_INIT 22 #define DONT_USE_PREDEFINED_CORE_HANDLERS 23 #define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS 24 25 #if defined CONFIG_SOC_PART_NUMBER_SAM3X4C 26 #include <sam3x4c.h> 27 #elif defined CONFIG_SOC_PART_NUMBER_SAM3X4E 28 #include <sam3x4e.h> 29 #elif defined CONFIG_SOC_PART_NUMBER_SAM3X8C 30 #include <sam3x8c.h> 31 #elif defined CONFIG_SOC_PART_NUMBER_SAM3X8E 32 #include <sam3x8e.h> 33 #elif defined CONFIG_SOC_PART_NUMBER_SAM3X8H 34 #include <sam3x8h.h> 35 #else 36 #error Library does not support the specified device. 37 #endif 38 39 #include "../common/soc_pmc.h" 40 #include "../common/soc_gpio.h" 41 #include "../common/atmel_sam_dt.h" 42 43 /** Processor Clock (HCLK) Frequency */ 44 #define SOC_ATMEL_SAM_HCLK_FREQ_HZ ATMEL_SAM_DT_CPU_CLK_FREQ_HZ 45 46 /** Master Clock (MCK) Frequency */ 47 #define SOC_ATMEL_SAM_MCK_FREQ_HZ SOC_ATMEL_SAM_HCLK_FREQ_HZ 48 49 #endif /* _ASMLANGUAGE */ 50 51 #endif /* _ATMEL_SAM3X_SOC_H_ */ 52