Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/sams70 asf support #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion asf/sam/include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
if(CONFIG_SOC_ATMEL_SAME70_REVB OR
if(CONFIG_SOC_ATMEL_SAMS70_REVB OR
CONFIG_SOC_ATMEL_SAME70_REVB OR
CONFIG_SOC_ATMEL_SAMV71_REVB)
zephyr_include_directories(${CONFIG_SOC_SERIES}b)
else()
Expand Down
49 changes: 49 additions & 0 deletions asf/sam/include/sams70/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright (c) 2023 Marius Scholtz
# SPDX-License-Identifier: Apache-2.0

Atmel SAM S70
#############

Origin:
Microchip Packs Repository
http://packs.download.atmel.com/

Atmel SAMS70 Series Device Support (2.4.134)
http://packs.download.atmel.com/Atmel.SAMS70_DFP.2.4.134.atpack

Status:
version 2.4.134

Purpose:
Official package for SAM S70.

Description:
Atmel Software Framework (ASF) provides a set of low-level
header files that give access to different hardware
peripherals of Atmel's ICs.

URL:
http://packs.download.atmel.com/
http://packs.download.atmel.com/Atmel.SAMS70_DFP.2.4.134.atpack

commit:
n/a

Maintained-by:
External

License:
Apache-2.0

License Link:
https://www.apache.org/licenses/LICENSE-2.0

Patch List:
* Fix XDMAC_CHID register name.
* Fix TC_CHANNEL register name.
* Fix USBHS_DEVDMA register name.
* Fix USBHS_HSTDMA register name.
* Fix MATRIX_PR register name.
* Fix PWM_CMP register name.
* Fix PWM_CH_NUM register name.
* Fix SMC_CS_NUMBER register name.
64 changes: 64 additions & 0 deletions asf/sam/include/sams70/component-version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* \file
*
* \brief Component version header file
*
* Copyright (c) 2019 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc.
*
* \license_start
*
* \page License
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* \license_stop
*
*/

#ifndef _COMPONENT_VERSION_H_INCLUDED
#define _COMPONENT_VERSION_H_INCLUDED

#define COMPONENT_VERSION_MAJOR 2
#define COMPONENT_VERSION_MINOR 4

//
// The COMPONENT_VERSION define is composed of the major and the minor version number.
//
// The last four digits of the COMPONENT_VERSION is the minor version with leading zeros.
// The rest of the COMPONENT_VERSION is the major version.
//
#define COMPONENT_VERSION 20004

//
// The build number does not refer to the component, but to the build number
// of the device pack that provides the component.
//
#define BUILD_NUMBER 134

//
// The COMPONENT_VERSION_STRING is a string (enclosed in ") that can be used for logging or embedding.
//
#define COMPONENT_VERSION_STRING "2.4"

//
// The COMPONENT_DATE_STRING contains a timestamp of when the pack was generated.
//
// The COMPONENT_DATE_STRING is written out using the following strftime pattern.
//
// "%Y-%m-%d %H:%M:%S"
//
//
#define COMPONENT_DATE_STRING "2019-02-21 03:49:14"

#endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */

390 changes: 390 additions & 0 deletions asf/sam/include/sams70/component/acc.h

Large diffs are not rendered by default.

581 changes: 581 additions & 0 deletions asf/sam/include/sams70/component/aes.h

Large diffs are not rendered by default.

1,710 changes: 1,710 additions & 0 deletions asf/sam/include/sams70/component/afec.h

Large diffs are not rendered by default.

248 changes: 248 additions & 0 deletions asf/sam/include/sams70/component/chipid.h

Large diffs are not rendered by default.

713 changes: 713 additions & 0 deletions asf/sam/include/sams70/component/dacc.h

Large diffs are not rendered by default.

288 changes: 288 additions & 0 deletions asf/sam/include/sams70/component/efc.h

Large diffs are not rendered by default.

89 changes: 89 additions & 0 deletions asf/sam/include/sams70/component/gpbr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/**
* \file
*
* \brief Component description for GPBR
*
* Copyright (c) 2019 Microchip Technology Inc.
*
* \license_start
*
* \page License
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* \license_stop
*
*/

/* file generated from device description version 2017-01-08T14:00:00Z */
#ifndef _SAMS70_GPBR_COMPONENT_H_
#define _SAMS70_GPBR_COMPONENT_H_
#define _SAMS70_GPBR_COMPONENT_ /**< \deprecated Backward compatibility for ASF */

/** \addtogroup SAMS_SAMS70 General Purpose Backup Registers
* @{
*/
/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR GPBR */
/* ========================================================================== */
#ifndef COMPONENT_TYPEDEF_STYLE
#define COMPONENT_TYPEDEF_STYLE 'R' /**< Defines default style of typedefs for the component header files ('R' = RFO, 'N' = NTO)*/
#endif

#define GPBR_6378 /**< (GPBR) Module ID */
#define REV_GPBR H /**< (GPBR) Module revision */

/* -------- GPBR_SYS_GPBR : (GPBR Offset: 0x00) (R/W 32) General Purpose Backup Register 0 -------- */
#if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
#if COMPONENT_TYPEDEF_STYLE == 'N'
typedef union {
struct {
uint32_t GPBR_VALUE:32; /**< bit: 0..31 Value of GPBR x */
} bit; /**< Structure used for bit access */
uint32_t reg; /**< Type used for register access */
} GPBR_SYS_GPBR_Type;
#endif
#endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */

#define GPBR_SYS_GPBR_OFFSET (0x00) /**< (GPBR_SYS_GPBR) General Purpose Backup Register 0 Offset */

#define GPBR_SYS_GPBR_GPBR_VALUE_Pos 0 /**< (GPBR_SYS_GPBR) Value of GPBR x Position */
#define GPBR_SYS_GPBR_GPBR_VALUE_Msk (_U_(0xFFFFFFFF) << GPBR_SYS_GPBR_GPBR_VALUE_Pos) /**< (GPBR_SYS_GPBR) Value of GPBR x Mask */
#define GPBR_SYS_GPBR_GPBR_VALUE(value) (GPBR_SYS_GPBR_GPBR_VALUE_Msk & ((value) << GPBR_SYS_GPBR_GPBR_VALUE_Pos))
#define GPBR_SYS_GPBR_MASK _U_(0xFFFFFFFF) /**< \deprecated (GPBR_SYS_GPBR) Register MASK (Use GPBR_SYS_GPBR_Msk instead) */
#define GPBR_SYS_GPBR_Msk _U_(0xFFFFFFFF) /**< (GPBR_SYS_GPBR) Register Mask */


#if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
#if COMPONENT_TYPEDEF_STYLE == 'R'
/** \brief GPBR hardware registers */
typedef struct {
__IO uint32_t SYS_GPBR[8]; /**< (GPBR Offset: 0x00) General Purpose Backup Register 0 */
} Gpbr;

#elif COMPONENT_TYPEDEF_STYLE == 'N'
/** \brief GPBR hardware registers */
typedef struct {
__IO GPBR_SYS_GPBR_Type SYS_GPBR[8]; /**< Offset: 0x00 (R/W 32) General Purpose Backup Register 0 */
} Gpbr;

#else /* COMPONENT_TYPEDEF_STYLE */
#error Unknown component typedef style
#endif /* COMPONENT_TYPEDEF_STYLE */

#endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
/** @} end of General Purpose Backup Registers */

#endif /* _SAMS70_GPBR_COMPONENT_H_ */
Loading