Blame view

RIOT/cpu/sam0_common/include/vendor/sam0.h 4.78 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
  /*
   * Copyright (C) 2016 Kees Bakker
   *               2016 Freie Universitรคt Berlin
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup         cpu_sam0_common
   * @{
   *
   * @file
   * @brief           Wrapper include file for including the specific SAM0 vendor
   *                  header
   *
   * @author          Kees Bakker <kees@sodaq.com>
   * @author          Hauke Petersen <hauke.petersen@fu-berlin.de>
   */
  
  #ifndef SAM0_H
  #define SAM0_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  /* Workaround redefinition of LITTLE_ENDIAN macro (part1) */
  #ifdef LITTLE_ENDIAN
  #define __TMP_LITTLE_ENDIAN     LITTLE_ENDIAN
  #undef LITTLE_ENDIAN
  #endif
  
  #if   defined(CPU_MODEL_SAML21E18A)
    #include "vendor/saml21/include/saml21e18a.h"
  #elif defined(CPU_MODEL_SAML21G18A)
    #include "vendor/saml21/include/saml21g18a.h"
  #elif defined(CPU_MODEL_SAML21J18A)
    #include "vendor/saml21/include/saml21j18a.h"
  #elif defined(CPU_MODEL_SAML21E15B)
    #include "vendor/saml21/include_b/saml21e15b.h"
  #elif defined(CPU_MODEL_SAML21E16B)
    #include "vendor/saml21/include_b/saml21e16b.h"
  #elif defined(CPU_MODEL_SAML21E17B)
    #include "vendor/saml21/include_b/saml21e17b.h"
  #elif defined(CPU_MODEL_SAML21E18B)
    #include "vendor/saml21/include_b/saml21e18b.h"
  #elif defined(CPU_MODEL_SAML21G16B)
    #include "vendor/saml21/include_b/saml21g16b.h"
  #elif defined(CPU_MODEL_SAML21G17B)
    #include "vendor/saml21/include_b/saml21g17b.h"
  #elif defined(CPU_MODEL_SAML21G18B)
    #include "vendor/saml21/include_b/saml21g18b.h"
  #elif defined(CPU_MODEL_SAML21J16B)
    #include "vendor/saml21/include_b/saml21j16b.h"
  #elif defined(CPU_MODEL_SAML21J17B)
    #include "vendor/saml21/include_b/saml21j17b.h"
  #elif defined(CPU_MODEL_SAML21J18B)
    #include "vendor/saml21/include_b/saml21j18b.h"
  
  #elif defined(CPU_MODEL_SAMR21E16A)
    #include "vendor/samr21/include/samr21e16a.h"
  #elif defined(CPU_MODEL_SAMR21E17A)
    #include "vendor/samr21/include/samr21e17a.h"
  #elif defined(CPU_MODEL_SAMR21E18A)
    #include "vendor/samr21/include/samr21e18a.h"
  #elif defined(CPU_MODEL_SAMR21G16A)
    #include "vendor/samr21/include/samr21g16a.h"
  #elif defined(CPU_MODEL_SAMR21G17A)
    #include "vendor/samr21/include/samr21g17a.h"
  #elif defined(CPU_MODEL_SAMR21G18A)
    #include "vendor/samr21/include/samr21g18a.h"
  
  #elif defined(CPU_MODEL_SAMD21E15A)
    #include "vendor/samd21/include/samd21e15a.h"
  #elif defined(CPU_MODEL_SAMD21E16A)
    #include "vendor/samd21/include/samd21e16a.h"
  #elif defined(CPU_MODEL_SAMD21E17A)
    #include "vendor/samd21/include/samd21e17a.h"
  #elif defined(CPU_MODEL_SAMD21E18A)
    #include "vendor/samd21/include/samd21e18a.h"
  #elif defined(CPU_MODEL_SAMD21G15A)
    #include "vendor/samd21/include/samd21g15a.h"
  #elif defined(CPU_MODEL_SAMD21G16A)
    #include "vendor/samd21/include/samd21g16a.h"
  #elif defined(CPU_MODEL_SAMD21G17A)
    #include "vendor/samd21/include/samd21g17a.h"
  #elif defined(CPU_MODEL_SAMD21G17AU)
    #include "vendor/samd21/include/samd21g17au.h"
  #elif defined(CPU_MODEL_SAMD21G18A)
    #include "vendor/samd21/include/samd21g18a.h"
  #elif defined(CPU_MODEL_SAMD21G18AU)
    #include "vendor/samd21/include/samd21g18au.h"
  #elif defined(CPU_MODEL_SAMD21J15A)
    #include "vendor/samd21/include/samd21j15a.h"
  #elif defined(CPU_MODEL_SAMD21J16A)
    #include "vendor/samd21/include/samd21j16a.h"
  #elif defined(CPU_MODEL_SAMD21J17A)
    #include "vendor/samd21/include/samd21j17a.h"
  #elif defined(CPU_MODEL_SAMD21J18A)
    #include "vendor/samd21/include/samd21j18a.h"
  #elif defined(CPU_MODEL_SAMD21E15B)
    #include "vendor/samd21/include/samd21e15b.h"
  #elif defined(CPU_MODEL_SAMD21E15BU)
    #include "vendor/samd21/include/samd21e15bu.h"
  #elif defined(CPU_MODEL_SAMD21E15L)
    #include "vendor/samd21/include/samd21e15l.h"
  #elif defined(CPU_MODEL_SAMD21E16B)
    #include "vendor/samd21/include/samd21e16b.h"
  #elif defined(CPU_MODEL_SAMD21E16BU)
    #include "vendor/samd21/include/samd21e16bu.h"
  #elif defined(CPU_MODEL_SAMD21E16L)
    #include "vendor/samd21/include/samd21e16l.h"
  #elif defined(CPU_MODEL_SAMD21G15B)
    #include "vendor/samd21/include/samd21g15b.h"
  #elif defined(CPU_MODEL_SAMD21G15L)
    #include "vendor/samd21/include/samd21g15l.h"
  #elif defined(CPU_MODEL_SAMD21G16B)
    #include "vendor/samd21/include/samd21g16b.h"
  #elif defined(CPU_MODEL_SAMD21G16L)
    #include "vendor/samd21/include/samd21g16l.h"
  #elif defined(CPU_MODEL_SAMD21J15B)
    #include "vendor/samd21/include/samd21j15b.h"
  #elif defined(CPU_MODEL_SAMD21J16B)
    #include "vendor/samd21/include/samd21j16b.h"
  
  #else
    #error "Unsupported SAM0 variant."
  #endif
  
  /* Workaround redefinition of LITTLE_ENDIAN macro (part2) */
  #ifdef LITTLE_ENDIAN
  #undef LITTLE_ENDIAN
  #endif
  
  #ifdef __TMP_LITTLE_ENDIAN
  #define LITTLE_ENDIAN       __TMP_LITTLE_ENDIAN
  #endif
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* SAM0_H */
  /** @} */