2016-01-21 13:10:59 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Intel Corporation.
|
|
|
|
* Copyright (c) 2013-2015 Wind River Systems, Inc.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-01-21 13:10:59 +08:00
|
|
|
*/
|
|
|
|
|
2017-05-08 04:17:54 +08:00
|
|
|
/** @file
|
|
|
|
* @brief Register access macros for the Atmel SAM3X MCU.
|
|
|
|
*
|
|
|
|
* This file provides register access macros for the Atmel SAM3X MCU, HAL
|
|
|
|
* drivers for core peripherals as well as symbols specific to Atmel SAM family.
|
2016-01-21 13:10:59 +08:00
|
|
|
*/
|
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
#ifndef _ATMEL_SAM3X_SOC_H_
|
|
|
|
#define _ATMEL_SAM3X_SOC_H_
|
2016-01-21 13:10:59 +08:00
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
|
|
|
|
2017-05-08 04:17:54 +08:00
|
|
|
#define DONT_USE_CMSIS_INIT
|
|
|
|
#define DONT_USE_PREDEFINED_CORE_HANDLERS
|
|
|
|
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
|
|
|
|
|
|
|
#if defined CONFIG_SOC_PART_NUMBER_SAM3X4C
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <sam3x4c.h>
|
2017-05-08 04:17:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X4E
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <sam3x4e.h>
|
2017-05-08 04:17:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8C
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <sam3x8c.h>
|
2017-05-08 04:17:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8E
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <sam3x8e.h>
|
2017-05-08 04:17:54 +08:00
|
|
|
#elif defined CONFIG_SOC_PART_NUMBER_SAM3X8H
|
2017-09-02 17:05:57 +08:00
|
|
|
#include <sam3x8h.h>
|
2017-05-08 04:17:54 +08:00
|
|
|
#else
|
2017-09-02 17:05:57 +08:00
|
|
|
#error Library does not support the specified device.
|
2017-05-08 04:17:54 +08:00
|
|
|
#endif
|
|
|
|
|
2019-03-14 23:13:43 +08:00
|
|
|
/* Add include for DTS generated information */
|
|
|
|
#include <generated_dts_board.h>
|
|
|
|
|
2017-05-08 04:17:54 +08:00
|
|
|
#define ID_UART0 ID_UART
|
|
|
|
#define UART0 UART
|
|
|
|
|
|
|
|
#include "soc_pinmap.h"
|
|
|
|
|
|
|
|
#include "../common/soc_pmc.h"
|
|
|
|
#include "../common/soc_gpio.h"
|
|
|
|
|
|
|
|
#endif /* _ASMLANGUAGE */
|
|
|
|
|
|
|
|
/** Processor Clock (HCLK) Frequency */
|
|
|
|
#define SOC_ATMEL_SAM_HCLK_FREQ_HZ CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC
|
|
|
|
/** Master Clock (MCK) Frequency */
|
|
|
|
#define SOC_ATMEL_SAM_MCK_FREQ_HZ SOC_ATMEL_SAM_HCLK_FREQ_HZ
|
2016-01-21 13:10:59 +08:00
|
|
|
|
2017-04-27 00:52:42 +08:00
|
|
|
#endif /* _ATMEL_SAM3X_SOC_H_ */
|