Skip to content
Permalink
Browse files

ext: Import Atmel SAMR21 header files from ASF library

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 SAMR21 Series Device Support (1.1.72)
License: Apache-2.0
URL: http://packs.download.atmel.com/Atmel.SAMR21_DFP.1.1.72.atpack
Purpose: Introduction of ASF for the SAM0 series.
Maintained-by: External

Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
  • Loading branch information...
benpicco authored and nashif committed Feb 19, 2019
1 parent 9e98a94 commit f1f46e2cd1f1573baba05f3e87863f4f5ca8a2f4
Showing with 28,361 additions and 0 deletions.
  1. +65 −0 ext/hal/atmel/asf/sam0/include/samr21/component-version.h
  2. +544 −0 ext/hal/atmel/asf/sam0/include/samr21/component/ac.h
  3. +684 −0 ext/hal/atmel/asf/sam0/include/samr21/component/adc.h
  4. +271 −0 ext/hal/atmel/asf/sam0/include/samr21/component/dac.h
  5. +1,072 −0 ext/hal/atmel/asf/sam0/include/samr21/component/dmac.h
  6. +536 −0 ext/hal/atmel/asf/sam0/include/samr21/component/dsu.h
  7. +666 −0 ext/hal/atmel/asf/sam0/include/samr21/component/eic.h
  8. +589 −0 ext/hal/atmel/asf/sam0/include/samr21/component/evsys.h
  9. +295 −0 ext/hal/atmel/asf/sam0/include/samr21/component/gclk.h
  10. +103 −0 ext/hal/atmel/asf/sam0/include/samr21/component/hmatrixb.h
  11. +381 −0 ext/hal/atmel/asf/sam0/include/samr21/component/mtb.h
  12. +512 −0 ext/hal/atmel/asf/sam0/include/samr21/component/nvmctrl.h
  13. +89 −0 ext/hal/atmel/asf/sam0/include/samr21/component/pac.h
  14. +519 −0 ext/hal/atmel/asf/sam0/include/samr21/component/pm.h
  15. +379 −0 ext/hal/atmel/asf/sam0/include/samr21/component/port.h
  16. +89 −0 ext/hal/atmel/asf/sam0/include/samr21/component/rfctrl.h
  17. +1,053 −0 ext/hal/atmel/asf/sam0/include/samr21/component/rtc.h
  18. +1,493 −0 ext/hal/atmel/asf/sam0/include/samr21/component/sercom.h
  19. +933 −0 ext/hal/atmel/asf/sam0/include/samr21/component/sysctrl.h
  20. +669 −0 ext/hal/atmel/asf/sam0/include/samr21/component/tc.h
  21. +1,802 −0 ext/hal/atmel/asf/sam0/include/samr21/component/tcc.h
  22. +1,790 −0 ext/hal/atmel/asf/sam0/include/samr21/component/usb.h
  23. +288 −0 ext/hal/atmel/asf/sam0/include/samr21/component/wdt.h
  24. +72 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/ac.h
  25. +84 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/adc.h
  26. +59 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/dac.h
  27. +94 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/dmac.h
  28. +84 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/dsu.h
  29. +63 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/eic.h
  30. +179 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/evsys.h
  31. +64 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/gclk.h
  32. +88 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/mtb.h
  33. +76 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/nvmctrl.h
  34. +44 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/pac0.h
  35. +44 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/pac1.h
  36. +44 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/pac2.h
  37. +72 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/pm.h
  38. +147 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/port.h
  39. +42 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/rfctrl.h
  40. +102 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/rtc.h
  41. +150 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sbmatrix.h
  42. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom0.h
  43. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom1.h
  44. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom2.h
  45. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom3.h
  46. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom4.h
  47. +128 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sercom5.h
  48. +106 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/sysctrl.h
  49. +96 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tc3.h
  50. +96 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tc4.h
  51. +96 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tc5.h
  52. +96 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tc6.h
  53. +96 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tc7.h
  54. +116 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tcc0.h
  55. +104 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tcc1.h
  56. +100 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/tcc2.h
  57. +329 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/usb.h
  58. +56 −0 ext/hal/atmel/asf/sam0/include/samr21/instance/wdt.h
  59. +718 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21e16a.h
  60. +718 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21e17a.h
  61. +718 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21e18a.h
  62. +835 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21e19a.h
  63. +986 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21g16a.h
  64. +986 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21g17a.h
  65. +986 −0 ext/hal/atmel/asf/sam0/include/samr21/pio/samr21g18a.h
  66. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21e16a.h
  67. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21e17a.h
  68. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21e18a.h
  69. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21e19a.h
  70. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21g16a.h
  71. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21g17a.h
  72. +575 −0 ext/hal/atmel/asf/sam0/include/samr21/samr21g18a.h
@@ -0,0 +1,65 @@
/**
* \file
*
* \brief Component version header file
*
* Copyright (c) 2017 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 1
#define COMPONENT_VERSION_MINOR 1

//
// 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, with leading zeros. The COMPONENT_VERSION
// is at least 8 digits long.
//
#define COMPONENT_VERSION 00010001

//
// 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 72

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

//
// 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 "2017-02-07 07:43:46"

#endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -0,0 +1,103 @@
/**
* \file
*
* \brief Component description for HMATRIXB
*
* Copyright (c) 2016 Atmel Corporation,
* a wholly owned subsidiary of Microchip Technology Inc.
*
* \asf_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 Licence 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.
*
* \asf_license_stop
*
*/

#ifndef _SAMR21_HMATRIXB_COMPONENT_
#define _SAMR21_HMATRIXB_COMPONENT_

/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR HMATRIXB */
/* ========================================================================== */
/** \addtogroup SAMR21_HMATRIXB HSB Matrix */
/*@{*/

#define HMATRIXB_I7638
#define REV_HMATRIXB 0x212

/* -------- HMATRIXB_PRAS : (HMATRIXB Offset: 0x080) (R/W 32) PRS Priority A for Slave -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
uint32_t reg; /*!< Type used for register access */
} HMATRIXB_PRAS_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

#define HMATRIXB_PRAS_OFFSET 0x080 /**< \brief (HMATRIXB_PRAS offset) Priority A for Slave */
#define HMATRIXB_PRAS_RESETVALUE _U(0x00000000) /**< \brief (HMATRIXB_PRAS reset_value) Priority A for Slave */

#define HMATRIXB_PRAS_MASK _U(0x00000000) /**< \brief (HMATRIXB_PRAS) MASK Register */

/* -------- HMATRIXB_PRBS : (HMATRIXB Offset: 0x084) (R/W 32) PRS Priority B for Slave -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
uint32_t reg; /*!< Type used for register access */
} HMATRIXB_PRBS_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

#define HMATRIXB_PRBS_OFFSET 0x084 /**< \brief (HMATRIXB_PRBS offset) Priority B for Slave */
#define HMATRIXB_PRBS_RESETVALUE _U(0x00000000) /**< \brief (HMATRIXB_PRBS reset_value) Priority B for Slave */

#define HMATRIXB_PRBS_MASK _U(0x00000000) /**< \brief (HMATRIXB_PRBS) MASK Register */

/* -------- HMATRIXB_SFR : (HMATRIXB Offset: 0x110) (R/W 32) Special Function -------- */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef union {
struct {
uint32_t SFR:32; /*!< bit: 0..31 Special Function Register */
} bit; /*!< Structure used for bit access */
uint32_t reg; /*!< Type used for register access */
} HMATRIXB_SFR_Type;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

#define HMATRIXB_SFR_OFFSET 0x110 /**< \brief (HMATRIXB_SFR offset) Special Function */
#define HMATRIXB_SFR_RESETVALUE _U(0x00000000) /**< \brief (HMATRIXB_SFR reset_value) Special Function */

#define HMATRIXB_SFR_SFR_Pos 0 /**< \brief (HMATRIXB_SFR) Special Function Register */
#define HMATRIXB_SFR_SFR_Msk (_U(0xFFFFFFFF) << HMATRIXB_SFR_SFR_Pos)
#define HMATRIXB_SFR_SFR(value) (HMATRIXB_SFR_SFR_Msk & ((value) << HMATRIXB_SFR_SFR_Pos))
#define HMATRIXB_SFR_MASK _U(0xFFFFFFFF) /**< \brief (HMATRIXB_SFR) MASK Register */

/** \brief HmatrixbPrs hardware registers */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct {
__IO HMATRIXB_PRAS_Type PRAS; /**< \brief Offset: 0x000 (R/W 32) Priority A for Slave */
__IO HMATRIXB_PRBS_Type PRBS; /**< \brief Offset: 0x004 (R/W 32) Priority B for Slave */
} HmatrixbPrs;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

/** \brief HMATRIXB hardware registers */
#if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
typedef struct {
RoReg8 Reserved1[0x80];
HmatrixbPrs Prs[16]; /**< \brief Offset: 0x080 HmatrixbPrs groups */
RoReg8 Reserved2[0x10];
__IO HMATRIXB_SFR_Type SFR[16]; /**< \brief Offset: 0x110 (R/W 32) Special Function */
} Hmatrixb;
#endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */

/*@}*/

#endif /* _SAMR21_HMATRIXB_COMPONENT_ */

0 comments on commit f1f46e2

Please sign in to comment.
You can’t perform that action at this time.