Skip to content

Commit 9ac5976

Browse files
committed
ext: import ASF files for SAMV70(b) family
Import upstream ASF support pack for the SAM V70(b). Atmel Software Framework (ASF) provides a set of low-level header files that give access to different hardware peripherals of Atmel's ICs. Origin: Atmel SAMV70(b) Series Device Support (2.4.130) License: Apache-2.0 URL: http://packs.download.atmel.com/Atmel.SAMV70_DFP_2.4.130.atpack Purpose: Introduction of ASF for the SAM series. Maintained-by: External Signed-off-by: Perry Hung <[email protected]>
1 parent 7518d0b commit 9ac5976

File tree

217 files changed

+127153
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+127153
-0
lines changed

asf/sam/include/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
if(CONFIG_SOC_ATMEL_SAME70_REVB OR
2+
CONFIG_SOC_ATMEL_SAMV70_REVB OR
23
CONFIG_SOC_ATMEL_SAMV71_REVB)
34
zephyr_include_directories(${CONFIG_SOC_SERIES}b)
45
else()

asf/sam/include/samv70/README

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Atmel SAM V70
2+
#############
3+
4+
Origin:
5+
Microchip Packs Repository
6+
http://packs.download.atmel.com/
7+
8+
Atmel SAMV70 Series Device Support (2.4.130)
9+
http://packs.download.atmel.com/Atmel.SAMV70_DFP.2.4.130.atpack
10+
11+
Status:
12+
version 2.4.130
13+
14+
Purpose:
15+
Official package for SAM V70.
16+
17+
Description:
18+
Atmel Software Framework (ASF) provides a set of low-level
19+
header files that give access to different hardware
20+
peripherals of Atmel's ICs.
21+
22+
URL:
23+
http://packs.download.atmel.com/
24+
http://packs.download.atmel.com/Atmel.SAMV70_DFP.2.4.130.atpack
25+
26+
commit:
27+
n/a
28+
29+
Maintained-by:
30+
External
31+
32+
License:
33+
Apache-2.0
34+
35+
License Link:
36+
https://www.apache.org/licenses/LICENSE-2.0
37+
38+
Patch List:
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
/**
2+
* \file
3+
*
4+
* \brief Component version header file
5+
*
6+
* Copyright (c) 2019 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc.
7+
*
8+
* \license_start
9+
*
10+
* \page License
11+
*
12+
* Licensed under the Apache License, Version 2.0 (the "License");
13+
* you may not use this file except in compliance with the License.
14+
* You may obtain a copy of the License at
15+
*
16+
* http://www.apache.org/licenses/LICENSE-2.0
17+
*
18+
* Unless required by applicable law or agreed to in writing, software
19+
* distributed under the License is distributed on an "AS IS" BASIS,
20+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21+
* See the License for the specific language governing permissions and
22+
* limitations under the License.
23+
*
24+
* \license_stop
25+
*
26+
*/
27+
28+
#ifndef _COMPONENT_VERSION_H_INCLUDED
29+
#define _COMPONENT_VERSION_H_INCLUDED
30+
31+
#define COMPONENT_VERSION_MAJOR 2
32+
#define COMPONENT_VERSION_MINOR 4
33+
34+
//
35+
// The COMPONENT_VERSION define is composed of the major and the minor version number.
36+
//
37+
// The last four digits of the COMPONENT_VERSION is the minor version with leading zeros.
38+
// The rest of the COMPONENT_VERSION is the major version.
39+
//
40+
#define COMPONENT_VERSION 20004
41+
42+
//
43+
// The build number does not refer to the component, but to the build number
44+
// of the device pack that provides the component.
45+
//
46+
#define BUILD_NUMBER 130
47+
48+
//
49+
// The COMPONENT_VERSION_STRING is a string (enclosed in ") that can be used for logging or embedding.
50+
//
51+
#define COMPONENT_VERSION_STRING "2.4"
52+
53+
//
54+
// The COMPONENT_DATE_STRING contains a timestamp of when the pack was generated.
55+
//
56+
// The COMPONENT_DATE_STRING is written out using the following strftime pattern.
57+
//
58+
// "%Y-%m-%d %H:%M:%S"
59+
//
60+
//
61+
#define COMPONENT_DATE_STRING "2019-02-18 11:35:41"
62+
63+
#endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */
64+

asf/sam/include/samv70/component/acc.h

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

asf/sam/include/samv70/component/aes.h

Lines changed: 581 additions & 0 deletions
Large diffs are not rendered by default.

asf/sam/include/samv70/component/afec.h

Lines changed: 1710 additions & 0 deletions
Large diffs are not rendered by default.

asf/sam/include/samv70/component/chipid.h

Lines changed: 242 additions & 0 deletions
Large diffs are not rendered by default.

asf/sam/include/samv70/component/dacc.h

Lines changed: 713 additions & 0 deletions
Large diffs are not rendered by default.

asf/sam/include/samv70/component/efc.h

Lines changed: 288 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/**
2+
* \file
3+
*
4+
* \brief Component description for GPBR
5+
*
6+
* Copyright (c) 2019 Microchip Technology Inc.
7+
*
8+
* \license_start
9+
*
10+
* \page License
11+
*
12+
* SPDX-License-Identifier: Apache-2.0
13+
*
14+
* Licensed under the Apache License, Version 2.0 (the "License");
15+
* you may not use this file except in compliance with the License.
16+
* You may obtain a copy of the License at
17+
*
18+
* http://www.apache.org/licenses/LICENSE-2.0
19+
*
20+
* Unless required by applicable law or agreed to in writing, software
21+
* distributed under the License is distributed on an "AS IS" BASIS,
22+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
* See the License for the specific language governing permissions and
24+
* limitations under the License.
25+
*
26+
* \license_stop
27+
*
28+
*/
29+
30+
/* file generated from device description version 2017-01-08T14:00:00Z */
31+
#ifndef _SAMV70_GPBR_COMPONENT_H_
32+
#define _SAMV70_GPBR_COMPONENT_H_
33+
#define _SAMV70_GPBR_COMPONENT_ /**< \deprecated Backward compatibility for ASF */
34+
35+
/** \addtogroup SAMV_SAMV70 General Purpose Backup Registers
36+
* @{
37+
*/
38+
/* ========================================================================== */
39+
/** SOFTWARE API DEFINITION FOR GPBR */
40+
/* ========================================================================== */
41+
#ifndef COMPONENT_TYPEDEF_STYLE
42+
#define COMPONENT_TYPEDEF_STYLE 'R' /**< Defines default style of typedefs for the component header files ('R' = RFO, 'N' = NTO)*/
43+
#endif
44+
45+
#define GPBR_6378 /**< (GPBR) Module ID */
46+
#define REV_GPBR H /**< (GPBR) Module revision */
47+
48+
/* -------- GPBR_SYS_GPBR : (GPBR Offset: 0x00) (R/W 32) General Purpose Backup Register 0 -------- */
49+
#if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
50+
#if COMPONENT_TYPEDEF_STYLE == 'N'
51+
typedef union {
52+
struct {
53+
uint32_t GPBR_VALUE:32; /**< bit: 0..31 Value of GPBR x */
54+
} bit; /**< Structure used for bit access */
55+
uint32_t reg; /**< Type used for register access */
56+
} GPBR_SYS_GPBR_Type;
57+
#endif
58+
#endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
59+
60+
#define GPBR_SYS_GPBR_OFFSET (0x00) /**< (GPBR_SYS_GPBR) General Purpose Backup Register 0 Offset */
61+
62+
#define GPBR_SYS_GPBR_GPBR_VALUE_Pos 0 /**< (GPBR_SYS_GPBR) Value of GPBR x Position */
63+
#define GPBR_SYS_GPBR_GPBR_VALUE_Msk (_U_(0xFFFFFFFF) << GPBR_SYS_GPBR_GPBR_VALUE_Pos) /**< (GPBR_SYS_GPBR) Value of GPBR x Mask */
64+
#define GPBR_SYS_GPBR_GPBR_VALUE(value) (GPBR_SYS_GPBR_GPBR_VALUE_Msk & ((value) << GPBR_SYS_GPBR_GPBR_VALUE_Pos))
65+
#define GPBR_SYS_GPBR_MASK _U_(0xFFFFFFFF) /**< \deprecated (GPBR_SYS_GPBR) Register MASK (Use GPBR_SYS_GPBR_Msk instead) */
66+
#define GPBR_SYS_GPBR_Msk _U_(0xFFFFFFFF) /**< (GPBR_SYS_GPBR) Register Mask */
67+
68+
69+
#if !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
70+
#if COMPONENT_TYPEDEF_STYLE == 'R'
71+
/** \brief GPBR hardware registers */
72+
typedef struct {
73+
__IO uint32_t SYS_GPBR[8]; /**< (GPBR Offset: 0x00) General Purpose Backup Register 0 */
74+
} Gpbr;
75+
76+
#elif COMPONENT_TYPEDEF_STYLE == 'N'
77+
/** \brief GPBR hardware registers */
78+
typedef struct {
79+
__IO GPBR_SYS_GPBR_Type SYS_GPBR[8]; /**< Offset: 0x00 (R/W 32) General Purpose Backup Register 0 */
80+
} Gpbr;
81+
82+
#else /* COMPONENT_TYPEDEF_STYLE */
83+
#error Unknown component typedef style
84+
#endif /* COMPONENT_TYPEDEF_STYLE */
85+
86+
#endif /* !(defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
87+
/** @} end of General Purpose Backup Registers */
88+
89+
#endif /* _SAMV70_GPBR_COMPONENT_H_ */

0 commit comments

Comments
 (0)