Skip to content

Commit a213e5e

Browse files
aethanielcmaglie
authored andcommitted
Adding SAM L21 series definitions
Signed-off-by: Thibaut VIARD <aethaniel@sam-geek.org>
1 parent ef0dde6 commit a213e5e

File tree

206 files changed

+74803
-2
lines changed

Some content is hidden

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

206 files changed

+74803
-2
lines changed

CMSIS-Atmel/CMSIS/Device/ATMEL/sam.h

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,53 @@
161161
#define SAMD21_SERIES (SAMD21J17 || SAMD21G17A || SAMD21E15B || SAMD21E15 || SAMD21E16 || SAMD21E17 || SAMD21E18 || SAMD21E16B || SAMD21J15 || SAMD21J16 || SAMD21G16 || SAMD21G17 || SAMD21G18A || SAMD21G15 || SAMD21G18 || SAMD21J18)
162162

163163
/* Entire SAMD family */
164-
#define SAMD_SERIES ( SAMD10_SERIES || SAMD11_SERIES || SAMD21_SERIES)
164+
#define SAMD_SERIES (SAMD10_SERIES || SAMD11_SERIES || SAMD21_SERIES)
165+
166+
/*
167+
* ----------------------------------------------------------------------------
168+
* SAML family
169+
* ----------------------------------------------------------------------------
170+
*/
171+
172+
/* SAML21 series */
173+
#define SAML21E18A ( \
174+
part_is_defined( SAML21E18A ) )
175+
#define SAML21G18A ( \
176+
part_is_defined( SAML21G18A ) )
177+
#define SAML21J18A ( \
178+
part_is_defined( SAML21J18A ) )
179+
180+
#define SAML21E15B ( \
181+
part_is_defined( SAML21E15B ) )
182+
#define SAML21E16B ( \
183+
part_is_defined( SAML21E16B ) )
184+
#define SAML21E17B ( \
185+
part_is_defined( SAML21E17B ) )
186+
#define SAML21E18B ( \
187+
part_is_defined( SAML21E18B ) )
188+
#define SAML21G16B ( \
189+
part_is_defined( SAML21G16B ) )
190+
#define SAML21G17B ( \
191+
part_is_defined( SAML21G17B ) )
192+
#define SAML21G18B ( \
193+
part_is_defined( SAML21G18B ) )
194+
#define SAML21J16B ( \
195+
part_is_defined( SAML21J16B ) )
196+
#define SAML21J17B ( \
197+
part_is_defined( SAML21J17B ) )
198+
#define SAML21J18B ( \
199+
part_is_defined( SAML21J18B ) )
200+
#define SAML21J18BU ( \
201+
part_is_defined( SAML21J18BU ) )
202+
203+
/* Entire SAML21A series */
204+
#define SAML21_SERIES (SAML21E18A || SAML21G18A || SAML21J18A)
205+
206+
/* Entire SAML21B series */
207+
#define SAML21B_SERIES (SAML21E15B || SAML21E16B || SAML21E17B || SAML21E18B || SAML21G16B || SAML21G17B || SAML21G18B || SAML21J16B || SAML21J17B || SAML21J18B || SAML21J18BU)
208+
209+
/* Entire SAMD family */
210+
#define SAML_SERIES (SAML21A_SERIES || SAML21B_SERIES)
165211

166212
/*
167213
* ----------------------------------------------------------------------------
@@ -404,7 +450,7 @@
404450
* ----------------------------------------------------------------------------
405451
*/
406452

407-
#define SAM (SAM4_SERIES || SAMR_SERIES || SAM3_SERIES || SAMS_SERIES || SAME_SERIES || SAMD_SERIES || SAMG_SERIES)
453+
#define SAM (SAM4_SERIES || SAMR_SERIES || SAM3_SERIES || SAMS_SERIES || SAME_SERIES || SAMD_SERIES || SAML_SERIES || SAMG_SERIES)
408454

409455
/*
410456
* ----------------------------------------------------------------------------
@@ -424,6 +470,10 @@
424470
#include "samd.h"
425471
#endif /* SAMD_SERIES */
426472

473+
#if SAML_SERIES
474+
#include "saml.h"
475+
#endif /* SAML_SERIES */
476+
427477
#if SAMS_SERIES
428478
#include "sams.h"
429479
#endif /* SAMS_SERIES */

CMSIS-Atmel/CMSIS/Device/ATMEL/saml.h

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/* ----------------------------------------------------------------------------
2+
* SAM Software Package License
3+
* ----------------------------------------------------------------------------
4+
* Copyright (c) 2016 Atmel Corporation,
5+
* a wholly owned subsidiary of Microchip Technology Inc.
6+
*
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the Licence at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* ----------------------------------------------------------------------------
19+
*/
20+
#ifndef _SAML_INCLUDED_
21+
#define _SAML_INCLUDED_
22+
23+
#if defined(__SAML21E18A__) || defined(__ATSAML21E18A__)
24+
#include "saml21a1/saml21e18a.h"
25+
#elif defined(__SAML21G18A__) || defined(__ATSAML21G18A__)
26+
#include "saml21a1/saml21g18a.h"
27+
#elif defined(__SAML21J18A__) || defined(__ATSAML21J18A__)
28+
#include "saml21a1/saml21j18a.h"
29+
30+
#elif defined(__SAML21E15B__) || defined(__ATSAML21E15B__)
31+
#include "saml21b/saml21e15b.h"
32+
#elif defined(__SAML21E16B__) || defined(__ATSAML21E16B__)
33+
#include "saml21b/saml21e16b.h"
34+
#elif defined(__SAML21E17B__) || defined(__ATSAML21E17B__)
35+
#include "saml21b/saml21e17b.h"
36+
#elif defined(__SAML21E18B__) || defined(__ATSAML21E18B__)
37+
#include "saml21b/saml21e18b.h"
38+
#elif defined(__SAML21G16B__) || defined(__ATSAML21G16B__)
39+
#include "saml21b/saml21g16b.h"
40+
#elif defined(__SAML21G17B__) || defined(__ATSAML21G17B__)
41+
#include "saml21b/saml21g17b.h"
42+
#elif defined(__SAML21G18B__) || defined(__ATSAML21G18B__)
43+
#include "saml21b/saml21g18b.h"
44+
#elif defined(__SAML21J16B__) || defined(__ATSAML21J16B__)
45+
#include "saml21b/saml21j16b.h"
46+
#elif defined(__SAML21J17B__) || defined(__ATSAML21J17B__)
47+
#include "saml21b/saml21j17b.h"
48+
#elif defined(__SAML21J18B__) || defined(__ATSAML21J18B__)
49+
#include "saml21b/saml21j18b.h"
50+
#elif defined(__SAML21J18BU__) || defined(__ATSAML21J18BU__)
51+
#include "saml21b/saml21j18bu.h"
52+
#else
53+
#error Device not supported
54+
#endif
55+
56+
#endif /* _SAML_INCLUDED_ */
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
/*****************************************************************************
2+
*
3+
* Copyright (C) 2016 Atmel Corporation
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions are met:
8+
*
9+
* * Redistributions of source code must retain the above copyright
10+
* notice, this list of conditions and the following disclaimer.
11+
*
12+
* * Redistributions in binary form must reproduce the above copyright
13+
* notice, this list of conditions and the following disclaimer in
14+
* the documentation and/or other materials provided with the
15+
* distribution.
16+
*
17+
* * Neither the name of the copyright holders nor the names of
18+
* contributors may be used to endorse or promote products derived
19+
* from this software without specific prior written permission.
20+
*
21+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25+
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31+
* POSSIBILITY OF SUCH DAMAGE.
32+
****************************************************************************/
33+
34+
35+
#ifndef _COMPONENT_VERSION_H_INCLUDED
36+
#define _COMPONENT_VERSION_H_INCLUDED
37+
38+
#define COMPONENT_VERSION_MAJOR 1
39+
#define COMPONENT_VERSION_MINOR 1
40+
41+
//
42+
// The COMPONENT_VERSION define is composed of the major and the minor version number.
43+
//
44+
// The last four digits of the COMPONENT_VERSION is the minor version with leading zeros.
45+
// The rest of the COMPONENT_VERSION is the major version, with leading zeros. The COMPONENT_VERSION
46+
// is at least 8 digits long.
47+
//
48+
#define COMPONENT_VERSION 00010001
49+
50+
//
51+
// The build number does not refer to the component, but to the build number
52+
// of the device pack that provides the component.
53+
//
54+
#define BUILD_NUMBER 103
55+
56+
//
57+
// The COMPONENT_VERSION_STRING is a string (enclosed in ") that can be used for logging or embedding.
58+
//
59+
#define COMPONENT_VERSION_STRING "1.1"
60+
61+
//
62+
// The COMPONENT_DATE_STRING contains a timestamp of when the pack was generated.
63+
//
64+
// The COMPONENT_DATE_STRING is written out using the following strftime pattern.
65+
//
66+
// "%Y-%m-%d %H:%M:%S"
67+
//
68+
//
69+
#define COMPONENT_DATE_STRING "2016-09-15 17:17:26"
70+
71+
#endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */
72+

0 commit comments

Comments
 (0)