1 /*
2  * Copyright (c) 2013-2015 Wind River Systems, Inc.
3  * Copyright (c) 2016 Intel Corporation.
4  * Copyright (c) 2024 Gerson Fernando Budke <nandojve@gmail.com>
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 /** @file
10  * @brief Register access macros for the Atmel SAM3X MCU.
11  *
12  * This file provides register access macros for the Atmel SAM3X MCU, HAL
13  * drivers for core peripherals as well as symbols specific to Atmel SAM family.
14  */
15 
16 #ifndef _SOC_ATMEL_SAM_SAM3X_SOC_H_
17 #define _SOC_ATMEL_SAM_SAM3X_SOC_H_
18 
19 #ifndef _ASMLANGUAGE
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_SAM3X4C)
26 #include <sam3x4c.h>
27 #elif defined(CONFIG_SOC_SAM3X4E)
28 #include <sam3x4e.h>
29 #elif defined(CONFIG_SOC_SAM3X8C)
30 #include <sam3x8c.h>
31 #elif defined(CONFIG_SOC_SAM3X8E)
32 #include <sam3x8e.h>
33 #elif defined(CONFIG_SOC_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/soc_supc.h"
42 #include "../common/atmel_sam_dt.h"
43 
44 /** Processor Clock (HCLK) Frequency */
45 #define SOC_ATMEL_SAM_HCLK_FREQ_HZ ATMEL_SAM_DT_CPU_CLK_FREQ_HZ
46 
47 /** Master Clock (MCK) Frequency */
48 #define SOC_ATMEL_SAM_MCK_FREQ_HZ SOC_ATMEL_SAM_HCLK_FREQ_HZ
49 
50 #endif /* _ASMLANGUAGE */
51 
52 #endif /* _SOC_ATMEL_SAM_SAM3X_SOC_H_ */
53