soc: arm: atmel: Add sam4e mcu
Add sam4e related soc files. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
527ebe131d
commit
4a5de7bb87
9 changed files with 564 additions and 0 deletions
49
soc/arm/atmel_sam/sam4e/soc.h
Normal file
49
soc/arm/atmel_sam/sam4e/soc.h
Normal file
|
@ -0,0 +1,49 @@
|
|||
/*
|
||||
* Copyright (c) 2019 Gerson Fernando Budke
|
||||
* Copyright (c) 2018 Vincent van der Locht
|
||||
* Copyright (c) 2017 Justin Watson
|
||||
* Copyright (c) 2016 Intel Corporation.
|
||||
* Copyright (c) 2013-2015 Wind River Systems, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file SoC configuration macros for the Atmel SAM4E family processors.
|
||||
*/
|
||||
|
||||
#ifndef _ATMEL_SAM4E_SOC_H_
|
||||
#define _ATMEL_SAM4E_SOC_H_
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
|
||||
#define DONT_USE_CMSIS_INIT
|
||||
#define DONT_USE_PREDEFINED_CORE_HANDLERS
|
||||
#define DONT_USE_PREDEFINED_PERIPHERALS_HANDLERS
|
||||
|
||||
#if defined(CONFIG_SOC_PART_NUMBER_SAM4E16E)
|
||||
#include <sam4e16e.h>
|
||||
#elif defined(CONFIG_SOC_PART_NUMBER_SAM4E16C)
|
||||
#include <sam4e16c.h>
|
||||
#elif defined(CONFIG_SOC_PART_NUMBER_SAM4E8E)
|
||||
#include <sam4e8e.h>
|
||||
#elif defined(CONFIG_SOC_PART_NUMBER_SAM4E8C)
|
||||
#include <sam4e8c.h>
|
||||
#else
|
||||
#error Library does not support the specified device.
|
||||
#endif
|
||||
|
||||
#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 DT_ARM_CORTEX_M4F_0_CLOCK_FREQUENCY
|
||||
|
||||
/** Master Clock (MCK) Frequency */
|
||||
#define SOC_ATMEL_SAM_MCK_FREQ_HZ SOC_ATMEL_SAM_HCLK_FREQ_HZ
|
||||
|
||||
#endif /* _ATMEL_SAM4E_SOC_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue