Skip to content

Commit

Permalink
lib: Add atmel same51 and same54 build definitions
Browse files Browse the repository at this point in the history
This also replaces the samd51 component files with the definitions
from the same54 repository.

Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
KevinOConnor committed Oct 13, 2022
1 parent 960fd0b commit 69bd26b
Show file tree
Hide file tree
Showing 129 changed files with 43,711 additions and 737 deletions.
10 changes: 10 additions & 0 deletions lib/README
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ Atmel.SAMD51_DFP.1.1.96.atpack zip file found at:
http://packs.download.atmel.com/
version 1.1.96 (extracted on 20190110).

The same51 directory contains code from the
Atmel.SAME51_DFP.1.1.139.atpack zip file found at:
http://packs.download.atmel.com/
version 1.1.139 (extracted on 20220929).

The same54 directory contains code from the
Atmel.SAME54_DFP.1.1.134.atpack zip file found at:
http://packs.download.atmel.com/
version 1.1.134 (extracted on 20221005).

The same70b directory contains code from the
Atmel.SAME70_DFP.2.4.166.atpack zip file found at:
http://packs.download.atmel.com/
Expand Down
1,376 changes: 1,376 additions & 0 deletions lib/same51/include/pio/same51g18a.h

Large diffs are not rendered by default.

1,376 changes: 1,376 additions & 0 deletions lib/same51/include/pio/same51g19a.h

Large diffs are not rendered by default.

1,892 changes: 1,892 additions & 0 deletions lib/same51/include/pio/same51j18a.h

Large diffs are not rendered by default.

1,892 changes: 1,892 additions & 0 deletions lib/same51/include/pio/same51j19a.h

Large diffs are not rendered by default.

1,892 changes: 1,892 additions & 0 deletions lib/same51/include/pio/same51j20a.h

Large diffs are not rendered by default.

2,558 changes: 2,558 additions & 0 deletions lib/same51/include/pio/same51n19a.h

Large diffs are not rendered by default.

2,558 changes: 2,558 additions & 0 deletions lib/same51/include/pio/same51n20a.h

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions lib/same51/include/sam.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* \file
*
* \brief Top level header file
*
* 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
*
*/

#ifndef _SAM_
#define _SAM_

#if defined(__SAME51G19A__) || defined(__ATSAME51G19A__)
#include "same51g19a.h"
#elif defined(__SAME51G18A__) || defined(__ATSAME51G18A__)
#include "same51g18a.h"
#elif defined(__SAME51N20A__) || defined(__ATSAME51N20A__)
#include "same51n20a.h"
#elif defined(__SAME51N19A__) || defined(__ATSAME51N19A__)
#include "same51n19a.h"
#elif defined(__SAME51J19A__) || defined(__ATSAME51J19A__)
#include "same51j19a.h"
#elif defined(__SAME51J18A__) || defined(__ATSAME51J18A__)
#include "same51j18a.h"
#elif defined(__SAME51J20A__) || defined(__ATSAME51J20A__)
#include "same51j20a.h"
#else
#error Library does not support the specified device
#endif

#endif /* _SAM_ */

56 changes: 56 additions & 0 deletions lib/same51/include/same51.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* \file
*
* \brief Top header file for SAME51
*
* Copyright (c) 2019 Microchip Technology Inc.
*
* \asf_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 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 _SAME51_
#define _SAME51_

/**
* \defgroup SAME51_definitions SAME51 Device Definitions
* \brief SAME51 CMSIS Definitions.
*/

#if defined(__SAME51G18A__) || defined(__ATSAME51G18A__)
#include "same51g18a.h"
#elif defined(__SAME51G19A__) || defined(__ATSAME51G19A__)
#include "same51g19a.h"
#elif defined(__SAME51J18A__) || defined(__ATSAME51J18A__)
#include "same51j18a.h"
#elif defined(__SAME51J19A__) || defined(__ATSAME51J19A__)
#include "same51j19a.h"
#elif defined(__SAME51J20A__) || defined(__ATSAME51J20A__)
#include "same51j20a.h"
#elif defined(__SAME51N19A__) || defined(__ATSAME51N19A__)
#include "same51n19a.h"
#elif defined(__SAME51N20A__) || defined(__ATSAME51N20A__)
#include "same51n20a.h"
#else
#error Library does not support the specified device.
#endif

#endif /* _SAME51_ */
985 changes: 985 additions & 0 deletions lib/same51/include/same51g18a.h

Large diffs are not rendered by default.

985 changes: 985 additions & 0 deletions lib/same51/include/same51g19a.h

Large diffs are not rendered by default.

1,033 changes: 1,033 additions & 0 deletions lib/same51/include/same51j18a.h

Large diffs are not rendered by default.

1,033 changes: 1,033 additions & 0 deletions lib/same51/include/same51j19a.h

Large diffs are not rendered by default.

1,033 changes: 1,033 additions & 0 deletions lib/same51/include/same51j20a.h

Large diffs are not rendered by default.

1,069 changes: 1,069 additions & 0 deletions lib/same51/include/same51n19a.h

Large diffs are not rendered by default.

1,069 changes: 1,069 additions & 0 deletions lib/same51/include/same51n20a.h

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions lib/same51/include/system_same51.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* \file
*
* \brief Low-level initialization functions called upon chip startup
*
* Copyright (c) 2019 Microchip Technology Inc.
*
* \asf_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 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 _SYSTEM_SAME51_H_INCLUDED_
#define _SYSTEM_SAME51_H_INCLUDED_

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */

void SystemInit(void);
void SystemCoreClockUpdate(void);

#ifdef __cplusplus
}
#endif

#endif /* SYSTEM_SAME51_H_INCLUDED */
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* \brief Component version header file
*
* Copyright (c) 2018 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc.
* Copyright (c) 2019 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc.
*
* \license_start
*
Expand Down Expand Up @@ -43,7 +43,7 @@
// 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 96
#define BUILD_NUMBER 134

//
// The COMPONENT_VERSION_STRING is a string (enclosed in ") that can be used for logging or embedding.
Expand All @@ -58,7 +58,7 @@
// "%Y-%m-%d %H:%M:%S"
//
//
#define COMPONENT_DATE_STRING "2018-09-21 03:51:18"
#define COMPONENT_DATE_STRING "2019-04-09 08:16:19"

#endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* \brief Component description for AC
*
* Copyright (c) 2018 Microchip Technology Inc.
* Copyright (c) 2019 Microchip Technology Inc.
*
* \asf_license_start
*
Expand All @@ -27,13 +27,13 @@
*
*/

#ifndef _SAMD51_AC_COMPONENT_
#define _SAMD51_AC_COMPONENT_
#ifndef _SAME54_AC_COMPONENT_
#define _SAME54_AC_COMPONENT_

/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR AC */
/* ========================================================================== */
/** \addtogroup SAMD51_AC Analog Comparators */
/** \addtogroup SAME54_AC Analog Comparators */
/*@{*/

#define AC_U2501
Expand Down Expand Up @@ -595,4 +595,4 @@ typedef struct {

/*@}*/

#endif /* _SAMD51_AC_COMPONENT_ */
#endif /* _SAME54_AC_COMPONENT_ */
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* \brief Component description for ADC
*
* Copyright (c) 2018 Microchip Technology Inc.
* Copyright (c) 2019 Microchip Technology Inc.
*
* \asf_license_start
*
Expand All @@ -27,13 +27,13 @@
*
*/

#ifndef _SAMD51_ADC_COMPONENT_
#define _SAMD51_ADC_COMPONENT_
#ifndef _SAME54_ADC_COMPONENT_
#define _SAME54_ADC_COMPONENT_

/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR ADC */
/* ========================================================================== */
/** \addtogroup SAMD51_ADC Analog Digital Converter */
/** \addtogroup SAME54_ADC Analog Digital Converter */
/*@{*/

#define ADC_U2500
Expand Down Expand Up @@ -868,4 +868,4 @@ typedef struct {

/*@}*/

#endif /* _SAMD51_ADC_COMPONENT_ */
#endif /* _SAME54_ADC_COMPONENT_ */
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* \brief Component description for AES
*
* Copyright (c) 2018 Microchip Technology Inc.
* Copyright (c) 2019 Microchip Technology Inc.
*
* \asf_license_start
*
Expand All @@ -27,13 +27,13 @@
*
*/

#ifndef _SAMD51_AES_COMPONENT_
#define _SAMD51_AES_COMPONENT_
#ifndef _SAME54_AES_COMPONENT_
#define _SAME54_AES_COMPONENT_

/* ========================================================================== */
/** SOFTWARE API DEFINITION FOR AES */
/* ========================================================================== */
/** \addtogroup SAMD51_AES Advanced Encryption Standard */
/** \addtogroup SAME54_AES Advanced Encryption Standard */
/*@{*/

#define AES_U2238
Expand Down Expand Up @@ -372,4 +372,4 @@ typedef struct {

/*@}*/

#endif /* _SAMD51_AES_COMPONENT_ */
#endif /* _SAME54_AES_COMPONENT_ */
Loading

0 comments on commit 69bd26b

Please sign in to comment.