├── .gitattributes ├── CMSIS-Atmel └── CMSIS │ └── Device │ └── ATMEL │ ├── sam-headers-version.txt │ ├── samd51 │ ├── include │ │ ├── system_samd51.h │ │ ├── sam.h │ │ ├── instance │ │ │ ├── rstc.h │ │ │ ├── trng.h │ │ │ ├── pukcc.h │ │ │ ├── ramecc.h │ │ │ ├── wdt.h │ │ │ ├── ccl.h │ │ │ ├── pcc.h │ │ │ ├── pm.h │ │ │ └── freqm.h │ │ ├── samd51.h │ │ └── component-version.h │ └── source │ │ └── system_samd51.c │ ├── saml21b │ ├── include │ │ ├── system_saml21.h │ │ ├── instance │ │ │ ├── opamp.h │ │ │ ├── trng.h │ │ │ ├── rstc.h │ │ │ ├── wdt.h │ │ │ ├── ccl.h │ │ │ └── pm.h │ │ ├── saml21.h │ │ └── component-version.h │ └── source │ │ └── system_saml21.c │ ├── saml21a1 │ ├── include │ │ ├── system_saml21.h │ │ ├── saml21.h │ │ ├── instance │ │ │ ├── opamp.h │ │ │ ├── trng.h │ │ │ ├── rstc_100.h │ │ │ ├── wdt.h │ │ │ ├── ccl.h │ │ │ └── pm_100.h │ │ └── component-version.h │ └── source │ │ └── system_saml21.c │ ├── samg55 │ └── include │ │ ├── samg55.h │ │ └── instance │ │ ├── gpbr.h │ │ ├── chipid.h │ │ ├── wdt.h │ │ └── rstc.h │ ├── samg54 │ └── include │ │ └── samg54.h │ ├── samd11 │ ├── include │ │ ├── samd11.h │ │ ├── system_samd11.h │ │ └── instance │ │ │ ├── pac0.h │ │ │ ├── pac1.h │ │ │ └── pac2.h │ └── source │ │ └── system_samd11.c │ ├── sam4e │ └── include │ │ └── sam4e.h │ ├── sam4n │ └── include │ │ └── sam4n.h │ ├── samg.h │ ├── sam3u │ └── include │ │ └── sam3u.h │ ├── samd10 │ ├── include │ │ ├── samd10.h │ │ ├── system_samd10.h │ │ └── instance │ │ │ ├── pac0.h │ │ │ ├── pac1.h │ │ │ └── pac2.h │ └── source │ │ └── system_samd10.c │ ├── sam3xa │ └── include │ │ └── sam3xa.h │ ├── samr.h │ ├── sams70 │ └── include │ │ └── sams70.h │ ├── same70 │ └── include │ │ └── same70.h │ ├── samc21 │ ├── include │ │ ├── system_samc21.h │ │ ├── instance │ │ │ ├── rstc.h │ │ │ └── pm.h │ │ └── samc21.h │ └── source │ │ └── system_samc21.c │ ├── samd21 │ ├── include │ │ ├── system_samd21.h │ │ ├── instance │ │ │ ├── pac0.h │ │ │ ├── pac1.h │ │ │ └── pac2.h │ │ └── component-version.h │ └── source │ │ └── system_samd21.c │ ├── same.h │ ├── samr21 │ ├── include │ │ ├── system_samr21.h │ │ ├── instance │ │ │ ├── rfctrl.h │ │ │ ├── pac0.h │ │ │ ├── pac1.h │ │ │ └── pac2.h │ │ ├── samr21.h │ │ └── component-version.h │ └── source │ │ └── system_samr21.c │ ├── sams.h │ ├── sam4c │ └── include │ │ └── sam4c.h │ ├── sam3.h │ ├── saml.h │ └── sam4s │ └── include │ └── sam4s.h ├── README.md ├── LICENSE └── extras └── package_index.json.template /.gitattributes: -------------------------------------------------------------------------------- 1 | *.h linguist-language=C 2 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam-headers-version.txt: -------------------------------------------------------------------------------- 1 | based on 6.2.0.1131 20150720 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Atmel CMSIS Arduino IDE package 2 | Atmel Smart ARM devices CMSIS module for Arduino IDE 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015, Thibaut VIARD 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 | 25 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/system_samd51.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SYSTEM_SAMD51_H_INCLUDED_ 30 | #define _SYSTEM_SAMD51_H_INCLUDED_ 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #include 37 | 38 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 39 | 40 | void SystemInit(void); 41 | void SystemCoreClockUpdate(void); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* SYSTEM_SAMD51_H_INCLUDED */ 48 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/system_saml21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SYSTEM_SAML21_H_INCLUDED_ 30 | #define _SYSTEM_SAML21_H_INCLUDED_ 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #include 37 | 38 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 39 | 40 | void SystemInit(void); 41 | void SystemCoreClockUpdate(void); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* SYSTEM_SAML21_H_INCLUDED */ 48 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/system_saml21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SYSTEM_SAML21_H_INCLUDED_ 30 | #define _SYSTEM_SAML21_H_INCLUDED_ 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | #include 37 | 38 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 39 | 40 | void SystemInit(void); 41 | void SystemCoreClockUpdate(void); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | 47 | #endif /* SYSTEM_SAML21_H_INCLUDED */ 48 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/saml21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top header file for SAML21 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_ 30 | #define _SAML21_ 31 | 32 | /** 33 | * \defgroup SAML21_definitions SAML21 Device Definitions 34 | * \brief SAML21 CMSIS Definitions. 35 | */ 36 | 37 | #if defined(__SAML21E18A__) || defined(__ATSAML21E18A__) 38 | #include "saml21e18a.h" 39 | #elif defined(__SAML21G18A__) || defined(__ATSAML21G18A__) 40 | #include "saml21g18a.h" 41 | #elif defined(__SAML21J18A__) || defined(__ATSAML21J18A__) 42 | #include "saml21j18a.h" 43 | #else 44 | #error Library does not support the specified device. 45 | #endif 46 | 47 | #endif /* _SAML21_ */ 48 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/sam.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top level header file 5 | * 6 | * Copyright (c) 2017 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 _SAM_ 29 | #define _SAM_ 30 | 31 | #if defined(__SAMD51G18A__) || defined(__ATSAMD51G18A__) 32 | #include "samd51g18a.h" 33 | #elif defined(__SAMD51G19A__) || defined(__ATSAMD51G19A__) 34 | #include "samd51g19a.h" 35 | #elif defined(__SAMD51J18A__) || defined(__ATSAMD51J18A__) 36 | #include "samd51j18a.h" 37 | #elif defined(__SAMD51J19A__) || defined(__ATSAMD51J19A__) 38 | #include "samd51j19a.h" 39 | #elif defined(__SAMD51J20A__) || defined(__ATSAMD51J20A__) 40 | #include "samd51j20a.h" 41 | #elif defined(__SAMD51N19A__) || defined(__ATSAMD51N19A__) 42 | #include "samd51n19a.h" 43 | #elif defined(__SAMD51N20A__) || defined(__ATSAMD51N20A__) 44 | #include "samd51n20a.h" 45 | #elif defined(__SAMD51P19A__) || defined(__ATSAMD51P19A__) 46 | #include "samd51p19a.h" 47 | #elif defined(__SAMD51P20A__) || defined(__ATSAMD51P20A__) 48 | #include "samd51p20a.h" 49 | #else 50 | #error Library does not support the specified device 51 | #endif 52 | 53 | #endif /* _SAM_ */ 54 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/source/system_samd51.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #include "samd51.h" 30 | 31 | /** 32 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 33 | * the source for the main clock at chip startup. 34 | */ 35 | #define __SYSTEM_CLOCK (48000000) 36 | 37 | uint32_t SystemCoreClock = __SYSTEM_CLOCK; /*!< System Clock Frequency (Core Clock)*/ 38 | 39 | /** 40 | * Initialize the system 41 | * 42 | * @brief Setup the microcontroller system. 43 | * Initialize the System and update the SystemCoreClock variable. 44 | */ 45 | void SystemInit(void) 46 | { 47 | // Keep the default device state after reset 48 | SystemCoreClock = __SYSTEM_CLOCK; 49 | return; 50 | } 51 | 52 | /** 53 | * Update SystemCoreClock variable 54 | * 55 | * @brief Updates the SystemCoreClock with current core Clock 56 | * retrieved from cpu registers. 57 | */ 58 | void SystemCoreClockUpdate(void) 59 | { 60 | // Not implemented 61 | SystemCoreClock = __SYSTEM_CLOCK; 62 | return; 63 | } 64 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg55/include/samg55.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAMG55_ 31 | #define _SAMG55_ 32 | 33 | #if defined (__SAMG55G19__) 34 | #include "samg55g19.h" 35 | #elif defined (__SAMG55J19__) 36 | #include "samg55j19.h" 37 | #else 38 | #error Library does not support the specified device. 39 | #endif 40 | 41 | #endif /* _SAMG55_ */ 42 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/source/system_saml21.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #include "saml21.h" 30 | 31 | /** 32 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 33 | * the source for the main clock at chip startup. 34 | */ 35 | #define __SYSTEM_CLOCK (4000000) 36 | 37 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 38 | 39 | /** 40 | * Initialize the system 41 | * 42 | * @brief Setup the microcontroller system. 43 | * Initialize the System and update the SystemCoreClock variable. 44 | */ 45 | void SystemInit(void) 46 | { 47 | // Keep the default device state after reset 48 | SystemCoreClock = __SYSTEM_CLOCK; 49 | return; 50 | } 51 | 52 | /** 53 | * Update SystemCoreClock variable 54 | * 55 | * @brief Updates the SystemCoreClock with current core Clock 56 | * retrieved from cpu registers. 57 | */ 58 | void SystemCoreClockUpdate(void) 59 | { 60 | // Not implemented 61 | SystemCoreClock = __SYSTEM_CLOCK; 62 | return; 63 | } 64 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/source/system_saml21.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #include "saml21.h" 30 | 31 | /** 32 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 33 | * the source for the main clock at chip startup. 34 | */ 35 | #define __SYSTEM_CLOCK (4000000) 36 | 37 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 38 | 39 | /** 40 | * Initialize the system 41 | * 42 | * @brief Setup the microcontroller system. 43 | * Initialize the System and update the SystemCoreClock variable. 44 | */ 45 | void SystemInit(void) 46 | { 47 | // Keep the default device state after reset 48 | SystemCoreClock = __SYSTEM_CLOCK; 49 | return; 50 | } 51 | 52 | /** 53 | * Update SystemCoreClock variable 54 | * 55 | * @brief Updates the SystemCoreClock with current core Clock 56 | * retrieved from cpu registers. 57 | */ 58 | void SystemCoreClockUpdate(void) 59 | { 60 | // Not implemented 61 | SystemCoreClock = __SYSTEM_CLOCK; 62 | return; 63 | } 64 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/rstc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RSTC 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_RSTC_INSTANCE_ 30 | #define _SAMD51_RSTC_INSTANCE_ 31 | 32 | /* ========== Register definition for RSTC peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_RSTC_RCAUSE (0x40000C00) /**< \brief (RSTC) Reset Cause */ 35 | #define REG_RSTC_BKUPEXIT (0x40000C02) /**< \brief (RSTC) Backup Exit Source */ 36 | #else 37 | #define REG_RSTC_RCAUSE (*(RoReg8 *)0x40000C00UL) /**< \brief (RSTC) Reset Cause */ 38 | #define REG_RSTC_BKUPEXIT (*(RoReg8 *)0x40000C02UL) /**< \brief (RSTC) Backup Exit Source */ 39 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 40 | 41 | /* ========== Instance parameters for RSTC peripheral ========== */ 42 | #define RSTC_BACKUP_IMPLEMENTED 1 43 | #define RSTC_HIB_IMPLEMENTED 1 44 | #define RSTC_NUMBER_OF_EXTWAKE 0 // number of external wakeup line 45 | #define RSTC_NVMRST_IMPLEMENTED 1 46 | 47 | #endif /* _SAMD51_RSTC_INSTANCE_ */ 48 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg54/include/samg54.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAMG54_ 31 | #define _SAMG54_ 32 | 33 | #if defined (__SAMG54G19__) 34 | #include "samg54g19.h" 35 | #elif defined (__SAMG54J19__) 36 | #include "samg54j19.h" 37 | #elif defined (__SAMG54N19__) 38 | #include "samg54n19.h" 39 | #else 40 | #error Library does not support the specified device. 41 | #endif 42 | 43 | #endif /* _SAMG54_ */ 44 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/include/samd11.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMD11_ 30 | #define _SAMD11_ 31 | 32 | #if defined (__SAMD11C14A__) 33 | #include "samd11c14a.h" 34 | #elif defined (__SAMD11D14AS__) 35 | #include "samd11d14as.h" 36 | #elif defined (__SAMD11D14AM__) 37 | #include "samd11d14am.h" 38 | #else 39 | #error Library does not support the specified device. 40 | #endif 41 | 42 | #endif /* _SAMD11_ */ 43 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam4e/include/sam4e.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAM4E_ 30 | #define _SAM4E_ 31 | 32 | #if defined (__SAM4E8E__) 33 | #include "sam4e8e.h" 34 | #elif defined (__SAM4E16E__) 35 | #include "sam4e16e.h" 36 | #elif defined (__SAM4E8C__) 37 | #include "sam4e8c.h" 38 | #elif defined (__SAM4E16C__) 39 | #include "sam4e16c.h" 40 | #else 41 | #error Library does not support the specified device. 42 | #endif 43 | 44 | #endif /* _SAM4E_ */ 45 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/samd51.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top header file for SAMD51 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_ 30 | #define _SAMD51_ 31 | 32 | /** 33 | * \defgroup SAMD51_definitions SAMD51 Device Definitions 34 | * \brief SAMD51 CMSIS Definitions. 35 | */ 36 | 37 | #if defined(__SAMD51G18A__) || defined(__ATSAMD51G18A__) 38 | #include "samd51g18a.h" 39 | #elif defined(__SAMD51G19A__) || defined(__ATSAMD51G19A__) 40 | #include "samd51g19a.h" 41 | #elif defined(__SAMD51J18A__) || defined(__ATSAMD51J18A__) 42 | #include "samd51j18a.h" 43 | #elif defined(__SAMD51J19A__) || defined(__ATSAMD51J19A__) 44 | #include "samd51j19a.h" 45 | #elif defined(__SAMD51J20A__) || defined(__ATSAMD51J20A__) 46 | #include "samd51j20a.h" 47 | #elif defined(__SAMD51N19A__) || defined(__ATSAMD51N19A__) 48 | #include "samd51n19a.h" 49 | #elif defined(__SAMD51N20A__) || defined(__ATSAMD51N20A__) 50 | #include "samd51n20a.h" 51 | #elif defined(__SAMD51P19A__) || defined(__ATSAMD51P19A__) 52 | #include "samd51p19a.h" 53 | #elif defined(__SAMD51P20A__) || defined(__ATSAMD51P20A__) 54 | #include "samd51p20a.h" 55 | #else 56 | #error Library does not support the specified device. 57 | #endif 58 | 59 | #endif /* _SAMD51_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam4n/include/sam4n.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAM4N_ 30 | #define _SAM4N_ 31 | 32 | #if defined (__SAM4N8A__) 33 | #include "sam4n8a.h" 34 | #elif defined (__SAM4N8B__) 35 | #include "sam4n8b.h" 36 | #elif defined (__SAM4N8C__) 37 | #include "sam4n8c.h" 38 | #elif defined (__SAM4N16B__) 39 | #include "sam4n16b.h" 40 | #elif defined (__SAM4N16C__) 41 | #include "sam4n16c.h" 42 | #else 43 | #error Library does not support the specified device. 44 | #endif 45 | 46 | #endif /* _SAM4N_ */ 47 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMG_INCLUDED_ 30 | #define _SAMG_INCLUDED_ 31 | 32 | #if defined (__SAMG54G19__) 33 | #include "samg54/include/samg54.h" 34 | #elif defined (__SAMG54J19__) 35 | #include "samg54/include/samg54.h" 36 | #elif defined (__SAMG54N19__) 37 | #include "samg54/include/samg54.h" 38 | #elif defined (__SAMG55G19__) 39 | #include "samg55/include/samg55.h" 40 | #elif defined (__SAMG55J19__) 41 | #include "samg55/include/samg55.h" 42 | #endif 43 | 44 | #endif /* _SAMG_INCLUDED_ */ 45 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam3u/include/sam3u.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAM3U_ 31 | #define _SAM3U_ 32 | 33 | #if defined (__SAM3U4E__) 34 | #include "sam3u4e.h" 35 | #elif defined (__SAM3U4C__) 36 | #include "sam3u4c.h" 37 | #elif defined (__SAM3U2E__) 38 | #include "sam3u2e.h" 39 | #elif defined (__SAM3U2C__) 40 | #include "sam3u2c.h" 41 | #elif defined (__SAM3U1E__) 42 | #include "sam3u1e.h" 43 | #elif defined (__SAM3U1C__) 44 | #include "sam3u1c.h" 45 | #else 46 | #error Library does not support the specified device. 47 | #endif 48 | 49 | #endif /* _SAM3U_ */ 50 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/include/samd10.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMD10_ 30 | #define _SAMD10_ 31 | 32 | #if defined (__SAMD10C13A__) 33 | #include "samd10c13a.h" 34 | #elif defined (__SAMD10C14A__) 35 | #include "samd10c14a.h" 36 | #elif defined (__SAMD10D13AS__) 37 | #include "samd10d13as.h" 38 | #elif defined (__SAMD10D14AS__) 39 | #include "samd10d14as.h" 40 | #elif defined (__SAMD10D13AM__) 41 | #include "samd10d13am.h" 42 | #elif defined (__SAMD10D14AM__) 43 | #include "samd10d14am.h" 44 | #else 45 | #error Library does not support the specified device. 46 | #endif 47 | 48 | #endif /* _SAMD10_ */ 49 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/component-version.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Component version header file 5 | * 6 | * Copyright (c) 2017 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 0 32 | #define COMPONENT_VERSION_MINOR 1 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, with leading zeros. The COMPONENT_VERSION 39 | // is at least 8 digits long. 40 | // 41 | #define COMPONENT_VERSION 00000001 42 | 43 | // 44 | // The build number does not refer to the component, but to the build number 45 | // of the device pack that provides the component. 46 | // 47 | #define BUILD_NUMBER 61 48 | 49 | // 50 | // The COMPONENT_VERSION_STRING is a string (enclosed in ") that can be used for logging or embedding. 51 | // 52 | #define COMPONENT_VERSION_STRING "0.1" 53 | 54 | // 55 | // The COMPONENT_DATE_STRING contains a timestamp of when the pack was generated. 56 | // 57 | // The COMPONENT_DATE_STRING is written out using the following strftime pattern. 58 | // 59 | // "%Y-%m-%d %H:%M:%S" 60 | // 61 | // 62 | #define COMPONENT_DATE_STRING "2017-01-26 16:39:41" 63 | 64 | #endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */ 65 | 66 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam3xa/include/sam3xa.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAM3XA_ 31 | #define _SAM3XA_ 32 | 33 | #if defined (__SAM3A4C__) 34 | #include "sam3a4c.h" 35 | #elif defined (__SAM3A8C__) 36 | #include "sam3a8c.h" 37 | #elif defined (__SAM3X4C__) 38 | #include "sam3x4c.h" 39 | #elif defined (__SAM3X4E__) 40 | #include "sam3x4e.h" 41 | #elif defined (__SAM3X8C__) 42 | #include "sam3x8c.h" 43 | #elif defined (__SAM3X8E__) 44 | #include "sam3x8e.h" 45 | #elif defined (__SAM3X8H__) 46 | #include "sam3x8h.h" 47 | #else 48 | #error Library does not support the specified device. 49 | #endif 50 | 51 | #endif /* _SAM3XA_ */ 52 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/opamp.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for OPAMP 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_OPAMP_INSTANCE_ 30 | #define _SAML21_OPAMP_INSTANCE_ 31 | 32 | /* ========== Register definition for OPAMP peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_OPAMP_CTRLA (0x43001800) /**< \brief (OPAMP) Control A */ 35 | #define REG_OPAMP_STATUS (0x43001802) /**< \brief (OPAMP) Status */ 36 | #define REG_OPAMP_OPAMPCTRL0 (0x43001804) /**< \brief (OPAMP) OPAMP Control 0 */ 37 | #define REG_OPAMP_OPAMPCTRL1 (0x43001808) /**< \brief (OPAMP) OPAMP Control 1 */ 38 | #define REG_OPAMP_OPAMPCTRL2 (0x4300180C) /**< \brief (OPAMP) OPAMP Control 2 */ 39 | #else 40 | #define REG_OPAMP_CTRLA (*(RwReg8 *)0x43001800UL) /**< \brief (OPAMP) Control A */ 41 | #define REG_OPAMP_STATUS (*(RoReg8 *)0x43001802UL) /**< \brief (OPAMP) Status */ 42 | #define REG_OPAMP_OPAMPCTRL0 (*(RwReg *)0x43001804UL) /**< \brief (OPAMP) OPAMP Control 0 */ 43 | #define REG_OPAMP_OPAMPCTRL1 (*(RwReg *)0x43001808UL) /**< \brief (OPAMP) OPAMP Control 1 */ 44 | #define REG_OPAMP_OPAMPCTRL2 (*(RwReg *)0x4300180CUL) /**< \brief (OPAMP) OPAMP Control 2 */ 45 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 46 | 47 | 48 | #endif /* _SAML21_OPAMP_INSTANCE_ */ 49 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/opamp.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for OPAMP 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_OPAMP_INSTANCE_ 30 | #define _SAML21_OPAMP_INSTANCE_ 31 | 32 | /* ========== Register definition for OPAMP peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_OPAMP_CTRLA (0x43001800) /**< \brief (OPAMP) Control A */ 35 | #define REG_OPAMP_STATUS (0x43001802) /**< \brief (OPAMP) Status */ 36 | #define REG_OPAMP_OPAMPCTRL0 (0x43001804) /**< \brief (OPAMP) OPAMP 0 Control */ 37 | #define REG_OPAMP_OPAMPCTRL1 (0x43001808) /**< \brief (OPAMP) OPAMP 1 Control */ 38 | #define REG_OPAMP_OPAMPCTRL2 (0x4300180C) /**< \brief (OPAMP) OPAMP 2 Control */ 39 | #else 40 | #define REG_OPAMP_CTRLA (*(RwReg8 *)0x43001800UL) /**< \brief (OPAMP) Control A */ 41 | #define REG_OPAMP_STATUS (*(RoReg8 *)0x43001802UL) /**< \brief (OPAMP) Status */ 42 | #define REG_OPAMP_OPAMPCTRL0 (*(RwReg *)0x43001804UL) /**< \brief (OPAMP) OPAMP 0 Control */ 43 | #define REG_OPAMP_OPAMPCTRL1 (*(RwReg *)0x43001808UL) /**< \brief (OPAMP) OPAMP 1 Control */ 44 | #define REG_OPAMP_OPAMPCTRL2 (*(RwReg *)0x4300180CUL) /**< \brief (OPAMP) OPAMP 2 Control */ 45 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 46 | 47 | 48 | #endif /* _SAML21_OPAMP_INSTANCE_ */ 49 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/saml21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top header file for SAML21 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_ 30 | #define _SAML21_ 31 | 32 | /** 33 | * \defgroup SAML21_definitions SAML21 Device Definitions 34 | * \brief SAML21 CMSIS Definitions. 35 | */ 36 | 37 | #if defined(__SAML21E15B__) || defined(__ATSAML21E15B__) 38 | #include "saml21e15b.h" 39 | #elif defined(__SAML21E16B__) || defined(__ATSAML21E16B__) 40 | #include "saml21e16b.h" 41 | #elif defined(__SAML21E17B__) || defined(__ATSAML21E17B__) 42 | #include "saml21e17b.h" 43 | #elif defined(__SAML21E18B__) || defined(__ATSAML21E18B__) 44 | #include "saml21e18b.h" 45 | #elif defined(__SAML21G16B__) || defined(__ATSAML21G16B__) 46 | #include "saml21g16b.h" 47 | #elif defined(__SAML21G17B__) || defined(__ATSAML21G17B__) 48 | #include "saml21g17b.h" 49 | #elif defined(__SAML21G18B__) || defined(__ATSAML21G18B__) 50 | #include "saml21g18b.h" 51 | #elif defined(__SAML21J16B__) || defined(__ATSAML21J16B__) 52 | #include "saml21j16b.h" 53 | #elif defined(__SAML21J17B__) || defined(__ATSAML21J17B__) 54 | #include "saml21j17b.h" 55 | #elif defined(__SAML21J18B__) || defined(__ATSAML21J18B__) 56 | #include "saml21j18b.h" 57 | #elif defined(__SAML21J18BU__) || defined(__ATSAML21J18BU__) 58 | #include "saml21j18bu.h" 59 | #else 60 | #error Library does not support the specified device. 61 | #endif 62 | 63 | #endif /* _SAML21_ */ 64 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMR_INCLUDED_ 30 | #define _SAMR_INCLUDED_ 31 | 32 | #if defined (__SAMR21E16A__) 33 | #include "samr21/include/samr21.h" 34 | #elif defined (__SAMR21E17A__) 35 | #include "samr21/include/samr21.h" 36 | #elif defined (__SAMR21E18A__) 37 | #include "samr21/include/samr21.h" 38 | #elif defined (__SAMR21G16A__) 39 | #include "samr21/include/samr21.h" 40 | #elif defined (__SAMR21G17A__) 41 | #include "samr21/include/samr21.h" 42 | #elif defined (__SAMR21G18A__) 43 | #include "samr21/include/samr21.h" 44 | #elif defined (__SAMR21E19A__) 45 | #include "samr21/include/samr21.h" 46 | #endif 47 | 48 | #endif /* _SAMR_INCLUDED_ */ 49 | -------------------------------------------------------------------------------- /extras/package_index.json.template: -------------------------------------------------------------------------------- 1 | { 2 | "name": "CMSIS-Atmel", 3 | "version": "%%VERSION%%", 4 | "systems": 5 | [ 6 | { 7 | "host": "i686-mingw32", 8 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 9 | "archiveFileName": "%%FILENAME%%", 10 | "checksum": "SHA-256:%%CHECKSUM%%", 11 | "size": "%%SIZE%%" 12 | }, 13 | { 14 | "host": "x86_64-apple-darwin", 15 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 16 | "archiveFileName": "%%FILENAME%%", 17 | "checksum": "SHA-256:%%CHECKSUM%%", 18 | "size": "%%SIZE%%" 19 | }, 20 | { 21 | "host": "x86_64-pc-linux-gnu", 22 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 23 | "archiveFileName": "%%FILENAME%%", 24 | "checksum": "SHA-256:%%CHECKSUM%%", 25 | "size": "%%SIZE%%" 26 | }, 27 | { 28 | "host": "i686-pc-linux-gnu", 29 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 30 | "archiveFileName": "%%FILENAME%%", 31 | "checksum": "SHA-256:%%CHECKSUM%%", 32 | "size": "%%SIZE%%" 33 | }, 34 | { 35 | "host": "arm-linux-gnueabihf", 36 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 37 | "archiveFileName": "%%FILENAME%%", 38 | "checksum": "SHA-256:%%CHECKSUM%%", 39 | "size": "%%SIZE%%" 40 | }, 41 | { 42 | "host": "all", 43 | "url": "https://github.com/arduino/ArduinoModule-CMSIS-Atmel/releases/download/v%%VERSION%%/%%FILENAME%%", 44 | "archiveFileName": "%%FILENAME%%", 45 | "checksum": "SHA-256:%%CHECKSUM%%", 46 | "size": "%%SIZE%%" 47 | } 48 | ] 49 | } 50 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sams70/include/sams70.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMS70_ 30 | #define _SAMS70_ 31 | 32 | #if defined (__SAMS70J19__) 33 | #include "sams70j19.h" 34 | #elif defined (__SAMS70J20__) 35 | #include "sams70j20.h" 36 | #elif defined (__SAMS70J21__) 37 | #include "sams70j21.h" 38 | #elif defined (__SAMS70N19__) 39 | #include "sams70n19.h" 40 | #elif defined (__SAMS70N20__) 41 | #include "sams70n20.h" 42 | #elif defined (__SAMS70N21__) 43 | #include "sams70n21.h" 44 | #elif defined (__SAMS70Q19__) 45 | #include "sams70q19.h" 46 | #elif defined (__SAMS70Q20__) 47 | #include "sams70q20.h" 48 | #elif defined (__SAMS70Q21__) 49 | #include "sams70q21.h" 50 | #else 51 | #error Library does not support the specified device. 52 | #endif 53 | 54 | #endif /* _SAMS70_ */ 55 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/same70/include/same70.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAME70_ 31 | #define _SAME70_ 32 | 33 | #if defined (__SAME70J19__) 34 | #include "same70j19.h" 35 | #elif defined (__SAME70J20__) 36 | #include "same70j20.h" 37 | #elif defined (__SAME70J21__) 38 | #include "same70j21.h" 39 | #elif defined (__SAME70N19__) 40 | #include "same70n19.h" 41 | #elif defined (__SAME70N20__) 42 | #include "same70n20.h" 43 | #elif defined (__SAME70N21__) 44 | #include "same70n21.h" 45 | #elif defined (__SAME70Q19__) 46 | #include "same70q19.h" 47 | #elif defined (__SAME70Q20__) 48 | #include "same70q20.h" 49 | #elif defined (__SAME70Q21__) 50 | #include "same70q21.h" 51 | #else 52 | #error Library does not support the specified device. 53 | #endif 54 | 55 | #endif /* _SAME70_ */ 56 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/include/system_samc21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SYSTEM_SAMC21_H_INCLUDED_ 45 | #define _SYSTEM_SAMC21_H_INCLUDED_ 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | #include 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | void SystemInit(void); 56 | void SystemCoreClockUpdate(void); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* SYSTEM_SAMC21_H_INCLUDED */ 63 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/include/system_samd10.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SYSTEM_SAMD10_H_INCLUDED_ 45 | #define _SYSTEM_SAMD10_H_INCLUDED_ 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | #include 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | void SystemInit(void); 56 | void SystemCoreClockUpdate(void); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* SYSTEM_SAMD10_H_INCLUDED */ 63 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/include/system_samd11.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SYSTEM_SAMD11_H_INCLUDED_ 45 | #define _SYSTEM_SAMD11_H_INCLUDED_ 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | #include 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | void SystemInit(void); 56 | void SystemCoreClockUpdate(void); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* SYSTEM_SAMD11_H_INCLUDED */ 63 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/include/system_samd21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SYSTEM_SAMD21_H_INCLUDED_ 45 | #define _SYSTEM_SAMD21_H_INCLUDED_ 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | #include 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | void SystemInit(void); 56 | void SystemCoreClockUpdate(void); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* SYSTEM_SAMD21_H_INCLUDED */ 63 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/same.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAME_INCLUDED_ 30 | #define _SAME_INCLUDED_ 31 | 32 | #if defined (__SAME70J19__) 33 | #include "same70/include/same70.h" 34 | #elif defined (__SAME70J20__) 35 | #include "same70/include/same70.h" 36 | #elif defined (__SAME70J21__) 37 | #include "same70/include/same70.h" 38 | #elif defined (__SAME70N19__) 39 | #include "same70/include/same70.h" 40 | #elif defined (__SAME70N20__) 41 | #include "same70/include/same70.h" 42 | #elif defined (__SAME70N21__) 43 | #include "same70/include/same70.h" 44 | #elif defined (__SAME70Q19__) 45 | #include "same70/include/same70.h" 46 | #elif defined (__SAME70Q20__) 47 | #include "same70/include/same70.h" 48 | #elif defined (__SAME70Q21__) 49 | #include "same70/include/same70.h" 50 | #endif 51 | 52 | #endif /* _SAME_INCLUDED_ */ 53 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/system_samr21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SYSTEM_SAMR21_H_INCLUDED_ 45 | #define _SYSTEM_SAMR21_H_INCLUDED_ 46 | 47 | #ifdef __cplusplus 48 | extern "C" { 49 | #endif 50 | 51 | #include 52 | 53 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 54 | 55 | void SystemInit(void); 56 | void SystemCoreClockUpdate(void); 57 | 58 | #ifdef __cplusplus 59 | } 60 | #endif 61 | 62 | #endif /* SYSTEM_SAMR21_H_INCLUDED */ 63 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sams.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAMS_INCLUDED_ 30 | #define _SAMS_INCLUDED_ 31 | 32 | #if defined (__SAMS70J19__) 33 | #include "sams70/include/sams70.h" 34 | #elif defined (__SAMS70J20__) 35 | #include "sams70/include/sams70.h" 36 | #elif defined (__SAMS70J21__) 37 | #include "sams70/include/sams70.h" 38 | #elif defined (__SAMS70N19__) 39 | #include "sams70/include/sams70.h" 40 | #elif defined (__SAMS70N20__) 41 | #include "sams70/include/sams70.h" 42 | #elif defined (__SAMS70N21__) 43 | #include "sams70/include/sams70.h" 44 | #elif defined (__SAMS70Q19__) 45 | #include "sams70/include/sams70.h" 46 | #elif defined (__SAMS70Q20__) 47 | #include "sams70/include/sams70.h" 48 | #elif defined (__SAMS70Q21__) 49 | #include "sams70/include/sams70.h" 50 | #endif 51 | 52 | #endif /* _SAMS_INCLUDED_ */ 53 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam4c/include/sam4c.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | 30 | #ifndef _SAM4C_ 31 | #define _SAM4C_ 32 | 33 | #if defined (__SAM4C4C_0__) 34 | #include "sam4c4c_0.h" 35 | #elif defined (__SAM4C4C_1__) 36 | #include "sam4c4c_1.h" 37 | #elif defined (__SAM4C8C_0__) 38 | #include "sam4c8c_0.h" 39 | #elif defined (__SAM4C8C_1__) 40 | #include "sam4c8c_1.h" 41 | #elif defined (__SAM4C16C_0__) 42 | #include "sam4c16c_0.h" 43 | #elif defined (__SAM4C16C_1__) 44 | #include "sam4c16c_1.h" 45 | #elif defined (__SAM4C32C_0__) 46 | #include "sam4c32c_0.h" 47 | #elif defined (__SAM4C32C_1__) 48 | #include "sam4c32c_1.h" 49 | #elif defined (__SAM4C32E_0__) 50 | #include "sam4c32e_0.h" 51 | #elif defined (__SAM4C32E_1__) 52 | #include "sam4c32e_1.h" 53 | #else 54 | #error Library does not support the specified device. 55 | #endif 56 | 57 | #endif /* _SAM4C_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam3.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAM3_INCLUDED_ 30 | #define _SAM3_INCLUDED_ 31 | 32 | #if defined (__SAM3U4E__) 33 | #include "sam3u/include/sam3u.h" 34 | #elif defined (__SAM3U4C__) 35 | #include "sam3u/include/sam3u.h" 36 | #elif defined (__SAM3U2E__) 37 | #include "sam3u/include/sam3u.h" 38 | #elif defined (__SAM3U2C__) 39 | #include "sam3u/include/sam3u.h" 40 | #elif defined (__SAM3U1E__) 41 | #include "sam3u/include/sam3u.h" 42 | #elif defined (__SAM3U1C__) 43 | #include "sam3u/include/sam3u.h" 44 | #elif defined (__SAM3X4C__) 45 | #include "sam3xa/include/sam3xa.h" 46 | #elif defined (__SAM3X4E__) 47 | #include "sam3xa/include/sam3xa.h" 48 | #elif defined (__SAM3X8C__) 49 | #include "sam3xa/include/sam3xa.h" 50 | #elif defined (__SAM3X8E__) 51 | #include "sam3xa/include/sam3xa.h" 52 | #endif 53 | 54 | #endif /* _SAM3_INCLUDED_ */ 55 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/trng.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for TRNG 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_TRNG_INSTANCE_ 30 | #define _SAMD51_TRNG_INSTANCE_ 31 | 32 | /* ========== Register definition for TRNG peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_TRNG_CTRLA (0x42002800) /**< \brief (TRNG) Control A */ 35 | #define REG_TRNG_EVCTRL (0x42002804) /**< \brief (TRNG) Event Control */ 36 | #define REG_TRNG_INTENCLR (0x42002808) /**< \brief (TRNG) Interrupt Enable Clear */ 37 | #define REG_TRNG_INTENSET (0x42002809) /**< \brief (TRNG) Interrupt Enable Set */ 38 | #define REG_TRNG_INTFLAG (0x4200280A) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 39 | #define REG_TRNG_DATA (0x42002820) /**< \brief (TRNG) Output Data */ 40 | #else 41 | #define REG_TRNG_CTRLA (*(RwReg8 *)0x42002800UL) /**< \brief (TRNG) Control A */ 42 | #define REG_TRNG_EVCTRL (*(RwReg8 *)0x42002804UL) /**< \brief (TRNG) Event Control */ 43 | #define REG_TRNG_INTENCLR (*(RwReg8 *)0x42002808UL) /**< \brief (TRNG) Interrupt Enable Clear */ 44 | #define REG_TRNG_INTENSET (*(RwReg8 *)0x42002809UL) /**< \brief (TRNG) Interrupt Enable Set */ 45 | #define REG_TRNG_INTFLAG (*(RwReg8 *)0x4200280AUL) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 46 | #define REG_TRNG_DATA (*(RoReg *)0x42002820UL) /**< \brief (TRNG) Output Data */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | 50 | #endif /* _SAMD51_TRNG_INSTANCE_ */ 51 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/trng.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for TRNG 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_TRNG_INSTANCE_ 30 | #define _SAML21_TRNG_INSTANCE_ 31 | 32 | /* ========== Register definition for TRNG peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_TRNG_CTRLA (0x42003800) /**< \brief (TRNG) Control A */ 35 | #define REG_TRNG_EVCTRL (0x42003804) /**< \brief (TRNG) Event Control */ 36 | #define REG_TRNG_INTENCLR (0x42003808) /**< \brief (TRNG) Interrupt Enable Clear */ 37 | #define REG_TRNG_INTENSET (0x42003809) /**< \brief (TRNG) Interrupt Enable Set */ 38 | #define REG_TRNG_INTFLAG (0x4200380A) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 39 | #define REG_TRNG_DATA (0x42003820) /**< \brief (TRNG) Output Data */ 40 | #else 41 | #define REG_TRNG_CTRLA (*(RwReg8 *)0x42003800UL) /**< \brief (TRNG) Control A */ 42 | #define REG_TRNG_EVCTRL (*(RwReg8 *)0x42003804UL) /**< \brief (TRNG) Event Control */ 43 | #define REG_TRNG_INTENCLR (*(RwReg8 *)0x42003808UL) /**< \brief (TRNG) Interrupt Enable Clear */ 44 | #define REG_TRNG_INTENSET (*(RwReg8 *)0x42003809UL) /**< \brief (TRNG) Interrupt Enable Set */ 45 | #define REG_TRNG_INTFLAG (*(RwReg8 *)0x4200380AUL) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 46 | #define REG_TRNG_DATA (*(RoReg *)0x42003820UL) /**< \brief (TRNG) Output Data */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | 50 | #endif /* _SAML21_TRNG_INSTANCE_ */ 51 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/trng.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for TRNG 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_TRNG_INSTANCE_ 30 | #define _SAML21_TRNG_INSTANCE_ 31 | 32 | /* ========== Register definition for TRNG peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_TRNG_CTRLA (0x42003800) /**< \brief (TRNG) Control A */ 35 | #define REG_TRNG_EVCTRL (0x42003804) /**< \brief (TRNG) Event Control */ 36 | #define REG_TRNG_INTENCLR (0x42003808) /**< \brief (TRNG) Interrupt Enable Clear */ 37 | #define REG_TRNG_INTENSET (0x42003809) /**< \brief (TRNG) Interrupt Enable Set */ 38 | #define REG_TRNG_INTFLAG (0x4200380A) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 39 | #define REG_TRNG_DATA (0x42003820) /**< \brief (TRNG) Output Data */ 40 | #else 41 | #define REG_TRNG_CTRLA (*(RwReg8 *)0x42003800UL) /**< \brief (TRNG) Control A */ 42 | #define REG_TRNG_EVCTRL (*(RwReg8 *)0x42003804UL) /**< \brief (TRNG) Event Control */ 43 | #define REG_TRNG_INTENCLR (*(RwReg8 *)0x42003808UL) /**< \brief (TRNG) Interrupt Enable Clear */ 44 | #define REG_TRNG_INTENSET (*(RwReg8 *)0x42003809UL) /**< \brief (TRNG) Interrupt Enable Set */ 45 | #define REG_TRNG_INTFLAG (*(RwReg8 *)0x4200380AUL) /**< \brief (TRNG) Interrupt Flag Status and Clear */ 46 | #define REG_TRNG_DATA (*(RoReg *)0x42003820UL) /**< \brief (TRNG) Output Data */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | 50 | #endif /* _SAML21_TRNG_INSTANCE_ */ 51 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/pukcc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PUKCC 5 | * 6 | * Copyright (c) 2016 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD51_PUKCC_INSTANCE_ 45 | #define _SAMD51_PUKCC_INSTANCE_ 46 | 47 | /* ========== Register definition for PUKCC peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #else 50 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 51 | 52 | /* ========== Instance parameters for PUKCC peripheral ========== */ 53 | #define PUKCC_CLK_AHB_ID 20 54 | #define PUKCC_RAM_ADDR_SIZE 12 55 | #define PUKCC_ROM_ADDR_SIZE 16 56 | 57 | #endif /* _SAMD51_PUKCC_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml.h: -------------------------------------------------------------------------------- 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_ */ 57 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/rstc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RSTC 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_RSTC_INSTANCE_ 30 | #define _SAML21_RSTC_INSTANCE_ 31 | 32 | /* ========== Register definition for RSTC peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_RSTC_RCAUSE (0x40000800) /**< \brief (RSTC) Reset Cause */ 35 | #define REG_RSTC_BKUPEXIT (0x40000802) /**< \brief (RSTC) Backup Exit Source */ 36 | #define REG_RSTC_WKDBCONF (0x40000804) /**< \brief (RSTC) Wakeup Debounce Configuration */ 37 | #define REG_RSTC_WKPOL (0x40000808) /**< \brief (RSTC) Wakeup Polarity */ 38 | #define REG_RSTC_WKEN (0x4000080C) /**< \brief (RSTC) Wakeup Enable */ 39 | #define REG_RSTC_WKCAUSE (0x40000810) /**< \brief (RSTC) Wakeup Cause */ 40 | #else 41 | #define REG_RSTC_RCAUSE (*(RoReg8 *)0x40000800UL) /**< \brief (RSTC) Reset Cause */ 42 | #define REG_RSTC_BKUPEXIT (*(RoReg8 *)0x40000802UL) /**< \brief (RSTC) Backup Exit Source */ 43 | #define REG_RSTC_WKDBCONF (*(RwReg8 *)0x40000804UL) /**< \brief (RSTC) Wakeup Debounce Configuration */ 44 | #define REG_RSTC_WKPOL (*(RwReg16*)0x40000808UL) /**< \brief (RSTC) Wakeup Polarity */ 45 | #define REG_RSTC_WKEN (*(RwReg16*)0x4000080CUL) /**< \brief (RSTC) Wakeup Enable */ 46 | #define REG_RSTC_WKCAUSE (*(RwReg16*)0x40000810UL) /**< \brief (RSTC) Wakeup Cause */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | /* ========== Instance parameters for RSTC peripheral ========== */ 50 | #define RSTC_NUMBER_OF_EXTWAKE 8 // number of external wakeup line 51 | 52 | #endif /* _SAML21_RSTC_INSTANCE_ */ 53 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/rstc_100.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RSTC 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_RSTC_INSTANCE_ 30 | #define _SAML21_RSTC_INSTANCE_ 31 | 32 | /* ========== Register definition for RSTC peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_RSTC_RCAUSE (0x40000800) /**< \brief (RSTC) Reset Cause */ 35 | #define REG_RSTC_BKUPEXIT (0x40000802) /**< \brief (RSTC) Backup Exit Source */ 36 | #define REG_RSTC_WKDBCONF (0x40000804) /**< \brief (RSTC) Wakeup Debounce Configuration */ 37 | #define REG_RSTC_WKPOL (0x40000808) /**< \brief (RSTC) Wakeup Polarity */ 38 | #define REG_RSTC_WKEN (0x4000080C) /**< \brief (RSTC) Wakeup Enable */ 39 | #define REG_RSTC_WKCAUSE (0x40000810) /**< \brief (RSTC) Wakeup Cause */ 40 | #else 41 | #define REG_RSTC_RCAUSE (*(RoReg8 *)0x40000800UL) /**< \brief (RSTC) Reset Cause */ 42 | #define REG_RSTC_BKUPEXIT (*(RoReg8 *)0x40000802UL) /**< \brief (RSTC) Backup Exit Source */ 43 | #define REG_RSTC_WKDBCONF (*(RwReg8 *)0x40000804UL) /**< \brief (RSTC) Wakeup Debounce Configuration */ 44 | #define REG_RSTC_WKPOL (*(RwReg16*)0x40000808UL) /**< \brief (RSTC) Wakeup Polarity */ 45 | #define REG_RSTC_WKEN (*(RwReg16*)0x4000080CUL) /**< \brief (RSTC) Wakeup Enable */ 46 | #define REG_RSTC_WKCAUSE (*(RwReg16*)0x40000810UL) /**< \brief (RSTC) Wakeup Cause */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | /* ========== Instance parameters for RSTC peripheral ========== */ 50 | #define RSTC_NUMBER_OF_EXTWAKE 16 // number of external wakeup line 51 | 52 | #endif /* _SAML21_RSTC_INSTANCE_ */ 53 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/include/instance/rstc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RSTC 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMC21_RSTC_INSTANCE_ 45 | #define _SAMC21_RSTC_INSTANCE_ 46 | 47 | /* ========== Register definition for RSTC peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_RSTC_RCAUSE (0x40000C00U) /**< \brief (RSTC) Reset Cause */ 50 | #else 51 | #define REG_RSTC_RCAUSE (*(RoReg8 *)0x40000C00U) /**< \brief (RSTC) Reset Cause */ 52 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 53 | 54 | /* ========== Instance parameters for RSTC peripheral ========== */ 55 | #define RSTC_NUMBER_OF_EXTWAKE 0 // number of external wakeup line 56 | 57 | #endif /* _SAMC21_RSTC_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/instance/rfctrl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RFCTRL 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMR21_RFCTRL_INSTANCE_ 45 | #define _SAMR21_RFCTRL_INSTANCE_ 46 | 47 | /* ========== Register definition for RFCTRL peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_RFCTRL_FECFG (0x42005400U) /**< \brief (RFCTRL) Front-end control bus configuration */ 50 | #else 51 | #define REG_RFCTRL_FECFG (*(RwReg16*)0x42005400U) /**< \brief (RFCTRL) Front-end control bus configuration */ 52 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 53 | 54 | /* ========== Instance parameters for RFCTRL peripheral ========== */ 55 | #define RFCTRL_FBUSMSB 5 56 | 57 | #endif /* _SAMR21_RFCTRL_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/ramecc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for RAMECC 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_RAMECC_INSTANCE_ 30 | #define _SAMD51_RAMECC_INSTANCE_ 31 | 32 | /* ========== Register definition for RAMECC peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_RAMECC_INTENCLR (0x41020000) /**< \brief (RAMECC) Interrupt Enable Clear */ 35 | #define REG_RAMECC_INTENSET (0x41020001) /**< \brief (RAMECC) Interrupt Enable Set */ 36 | #define REG_RAMECC_INTFLAG (0x41020002) /**< \brief (RAMECC) Interrupt Flag */ 37 | #define REG_RAMECC_STATUS (0x41020003) /**< \brief (RAMECC) Status */ 38 | #define REG_RAMECC_ERRADDR (0x41020004) /**< \brief (RAMECC) Error Address */ 39 | #define REG_RAMECC_DBGCTRL (0x4102000F) /**< \brief (RAMECC) Debug Control */ 40 | #else 41 | #define REG_RAMECC_INTENCLR (*(RwReg8 *)0x41020000UL) /**< \brief (RAMECC) Interrupt Enable Clear */ 42 | #define REG_RAMECC_INTENSET (*(RwReg8 *)0x41020001UL) /**< \brief (RAMECC) Interrupt Enable Set */ 43 | #define REG_RAMECC_INTFLAG (*(RwReg8 *)0x41020002UL) /**< \brief (RAMECC) Interrupt Flag */ 44 | #define REG_RAMECC_STATUS (*(RoReg8 *)0x41020003UL) /**< \brief (RAMECC) Status */ 45 | #define REG_RAMECC_ERRADDR (*(RoReg *)0x41020004UL) /**< \brief (RAMECC) Error Address */ 46 | #define REG_RAMECC_DBGCTRL (*(RwReg8 *)0x4102000FUL) /**< \brief (RAMECC) Debug Control */ 47 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 48 | 49 | /* ========== Instance parameters for RAMECC peripheral ========== */ 50 | #define RAMECC_RAMADDR_BITS 13 // Number of RAM address bits 51 | #define RAMECC_RAMBANK_NUM 4 // Number of RAM banks 52 | 53 | #endif /* _SAMD51_RAMECC_INSTANCE_ */ 54 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/sam4s/include/sam4s.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * SAM Software Package License 3 | * ---------------------------------------------------------------------------- 4 | * Copyright (c) 2015, Atmel Corporation 5 | * 6 | * All rights reserved. 7 | * 8 | * Redistribution and use in source and binary forms, with or without 9 | * modification, are permitted provided that the following condition is met: 10 | * 11 | * - Redistributions of source code must retain the above copyright notice, 12 | * this list of conditions and the disclaimer below. 13 | * 14 | * Atmel's name may not be used to endorse or promote products derived from 15 | * this software without specific prior written permission. 16 | * 17 | * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 20 | * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 22 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 23 | * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 26 | * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | * ---------------------------------------------------------------------------- 28 | */ 29 | #ifndef _SAM4S_ 30 | #define _SAM4S_ 31 | 32 | #if defined (__SAM4S16C__) 33 | #include "sam4s16c.h" 34 | #elif defined (__SAM4S16B__) 35 | #include "sam4s16b.h" 36 | #elif defined (__SAM4S2A__) 37 | #include "sam4s2a.h" 38 | #elif defined (__SAM4S2B__) 39 | #include "sam4s2b.h" 40 | #elif defined (__SAM4S2C__) 41 | #include "sam4s2c.h" 42 | #elif defined (__SAM4S4A__) 43 | #include "sam4s4a.h" 44 | #elif defined (__SAM4S4B__) 45 | #include "sam4s4b.h" 46 | #elif defined (__SAM4S4C__) 47 | #include "sam4s4c.h" 48 | #elif defined (__SAM4S8C__) 49 | #include "sam4s8c.h" 50 | #elif defined (__SAM4S8B__) 51 | #include "sam4s8b.h" 52 | #elif defined (__SAM4SA16B__) 53 | #include "sam4sa16b.h" 54 | #elif defined (__SAM4SA16C__) 55 | #include "sam4sa16c.h" 56 | #elif defined (__SAM4SD16B__) 57 | #include "sam4sd16b.h" 58 | #elif defined (__SAM4SD16C__) 59 | #include "sam4sd16c.h" 60 | #elif defined (__SAM4SD32B__) 61 | #include "sam4sd32b.h" 62 | #elif defined (__SAM4SD32C__) 63 | #include "sam4sd32c.h" 64 | #else 65 | #error Package does not support the specified device. 66 | #endif 67 | 68 | #endif /* _SAM4S_ */ 69 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/include/instance/pac0.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC0 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD10_PAC0_INSTANCE_ 45 | #define _SAMD10_PAC0_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC0 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC0_WPCLR (0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 50 | #define REG_PAC0_WPSET (0x40000004U) /**< \brief (PAC0) Write Protection Set */ 51 | #else 52 | #define REG_PAC0_WPCLR (*(RwReg *)0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 53 | #define REG_PAC0_WPSET (*(RwReg *)0x40000004U) /**< \brief (PAC0) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC0 peripheral ========== */ 57 | #define PAC0_WPROT_DEFAULT_VAL 0x00000000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD10_PAC0_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/include/instance/pac1.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC1 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD10_PAC1_INSTANCE_ 45 | #define _SAMD10_PAC1_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC1 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC1_WPCLR (0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 50 | #define REG_PAC1_WPSET (0x41000004U) /**< \brief (PAC1) Write Protection Set */ 51 | #else 52 | #define REG_PAC1_WPCLR (*(RwReg *)0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 53 | #define REG_PAC1_WPSET (*(RwReg *)0x41000004U) /**< \brief (PAC1) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC1 peripheral ========== */ 57 | #define PAC1_WPROT_DEFAULT_VAL 0x00000002 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD10_PAC1_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/include/instance/pac2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC2 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD10_PAC2_INSTANCE_ 45 | #define _SAMD10_PAC2_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC2 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC2_WPCLR (0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 50 | #define REG_PAC2_WPSET (0x42000004U) /**< \brief (PAC2) Write Protection Set */ 51 | #else 52 | #define REG_PAC2_WPCLR (*(RwReg *)0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 53 | #define REG_PAC2_WPSET (*(RwReg *)0x42000004U) /**< \brief (PAC2) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC2 peripheral ========== */ 57 | #define PAC2_WPROT_DEFAULT_VAL 0x00001000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD10_PAC2_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/include/instance/pac0.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC0 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD11_PAC0_INSTANCE_ 45 | #define _SAMD11_PAC0_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC0 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC0_WPCLR (0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 50 | #define REG_PAC0_WPSET (0x40000004U) /**< \brief (PAC0) Write Protection Set */ 51 | #else 52 | #define REG_PAC0_WPCLR (*(RwReg *)0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 53 | #define REG_PAC0_WPSET (*(RwReg *)0x40000004U) /**< \brief (PAC0) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC0 peripheral ========== */ 57 | #define PAC0_WPROT_DEFAULT_VAL 0x00000000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD11_PAC0_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/include/instance/pac1.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC1 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD11_PAC1_INSTANCE_ 45 | #define _SAMD11_PAC1_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC1 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC1_WPCLR (0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 50 | #define REG_PAC1_WPSET (0x41000004U) /**< \brief (PAC1) Write Protection Set */ 51 | #else 52 | #define REG_PAC1_WPCLR (*(RwReg *)0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 53 | #define REG_PAC1_WPSET (*(RwReg *)0x41000004U) /**< \brief (PAC1) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC1 peripheral ========== */ 57 | #define PAC1_WPROT_DEFAULT_VAL 0x00000002 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD11_PAC1_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/include/instance/pac2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC2 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD11_PAC2_INSTANCE_ 45 | #define _SAMD11_PAC2_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC2 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC2_WPCLR (0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 50 | #define REG_PAC2_WPSET (0x42000004U) /**< \brief (PAC2) Write Protection Set */ 51 | #else 52 | #define REG_PAC2_WPCLR (*(RwReg *)0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 53 | #define REG_PAC2_WPSET (*(RwReg *)0x42000004U) /**< \brief (PAC2) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC2 peripheral ========== */ 57 | #define PAC2_WPROT_DEFAULT_VAL 0x00001000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD11_PAC2_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/include/instance/pac0.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC0 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD21_PAC0_INSTANCE_ 45 | #define _SAMD21_PAC0_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC0 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC0_WPCLR (0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 50 | #define REG_PAC0_WPSET (0x40000004U) /**< \brief (PAC0) Write Protection Set */ 51 | #else 52 | #define REG_PAC0_WPCLR (*(RwReg *)0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 53 | #define REG_PAC0_WPSET (*(RwReg *)0x40000004U) /**< \brief (PAC0) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC0 peripheral ========== */ 57 | #define PAC0_WPROT_DEFAULT_VAL 0x00000000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD21_PAC0_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/include/instance/pac1.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC1 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD21_PAC1_INSTANCE_ 45 | #define _SAMD21_PAC1_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC1 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC1_WPCLR (0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 50 | #define REG_PAC1_WPSET (0x41000004U) /**< \brief (PAC1) Write Protection Set */ 51 | #else 52 | #define REG_PAC1_WPCLR (*(RwReg *)0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 53 | #define REG_PAC1_WPSET (*(RwReg *)0x41000004U) /**< \brief (PAC1) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC1 peripheral ========== */ 57 | #define PAC1_WPROT_DEFAULT_VAL 0x00000002 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD21_PAC1_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/include/instance/pac2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC2 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMD21_PAC2_INSTANCE_ 45 | #define _SAMD21_PAC2_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC2 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC2_WPCLR (0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 50 | #define REG_PAC2_WPSET (0x42000004U) /**< \brief (PAC2) Write Protection Set */ 51 | #else 52 | #define REG_PAC2_WPCLR (*(RwReg *)0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 53 | #define REG_PAC2_WPSET (*(RwReg *)0x42000004U) /**< \brief (PAC2) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC2 peripheral ========== */ 57 | #define PAC2_WPROT_DEFAULT_VAL 0x00800000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMD21_PAC2_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/instance/pac0.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC0 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMR21_PAC0_INSTANCE_ 45 | #define _SAMR21_PAC0_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC0 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC0_WPCLR (0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 50 | #define REG_PAC0_WPSET (0x40000004U) /**< \brief (PAC0) Write Protection Set */ 51 | #else 52 | #define REG_PAC0_WPCLR (*(RwReg *)0x40000000U) /**< \brief (PAC0) Write Protection Clear */ 53 | #define REG_PAC0_WPSET (*(RwReg *)0x40000004U) /**< \brief (PAC0) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC0 peripheral ========== */ 57 | #define PAC0_WPROT_DEFAULT_VAL 0x00000000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMR21_PAC0_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/instance/pac1.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC1 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMR21_PAC1_INSTANCE_ 45 | #define _SAMR21_PAC1_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC1 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC1_WPCLR (0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 50 | #define REG_PAC1_WPSET (0x41000004U) /**< \brief (PAC1) Write Protection Set */ 51 | #else 52 | #define REG_PAC1_WPCLR (*(RwReg *)0x41000000U) /**< \brief (PAC1) Write Protection Clear */ 53 | #define REG_PAC1_WPSET (*(RwReg *)0x41000004U) /**< \brief (PAC1) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC1 peripheral ========== */ 57 | #define PAC1_WPROT_DEFAULT_VAL 0x00000002 // PAC protection mask at reset 58 | 59 | #endif /* _SAMR21_PAC1_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/instance/pac2.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PAC2 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMR21_PAC2_INSTANCE_ 45 | #define _SAMR21_PAC2_INSTANCE_ 46 | 47 | /* ========== Register definition for PAC2 peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PAC2_WPCLR (0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 50 | #define REG_PAC2_WPSET (0x42000004U) /**< \brief (PAC2) Write Protection Set */ 51 | #else 52 | #define REG_PAC2_WPCLR (*(RwReg *)0x42000000U) /**< \brief (PAC2) Write Protection Clear */ 53 | #define REG_PAC2_WPSET (*(RwReg *)0x42000004U) /**< \brief (PAC2) Write Protection Set */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PAC2 peripheral ========== */ 57 | #define PAC2_WPROT_DEFAULT_VAL 0x00800000 // PAC protection mask at reset 58 | 59 | #endif /* _SAMR21_PAC2_INSTANCE_ */ 60 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/wdt.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for WDT 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_WDT_INSTANCE_ 30 | #define _SAMD51_WDT_INSTANCE_ 31 | 32 | /* ========== Register definition for WDT peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_WDT_CTRLA (0x40002000) /**< \brief (WDT) Control */ 35 | #define REG_WDT_CONFIG (0x40002001) /**< \brief (WDT) Configuration */ 36 | #define REG_WDT_EWCTRL (0x40002002) /**< \brief (WDT) Early Warning Interrupt Control */ 37 | #define REG_WDT_INTENCLR (0x40002004) /**< \brief (WDT) Interrupt Enable Clear */ 38 | #define REG_WDT_INTENSET (0x40002005) /**< \brief (WDT) Interrupt Enable Set */ 39 | #define REG_WDT_INTFLAG (0x40002006) /**< \brief (WDT) Interrupt Flag Status and Clear */ 40 | #define REG_WDT_SYNCBUSY (0x40002008) /**< \brief (WDT) Synchronization Busy */ 41 | #define REG_WDT_CLEAR (0x4000200C) /**< \brief (WDT) Clear */ 42 | #else 43 | #define REG_WDT_CTRLA (*(RwReg8 *)0x40002000UL) /**< \brief (WDT) Control */ 44 | #define REG_WDT_CONFIG (*(RwReg8 *)0x40002001UL) /**< \brief (WDT) Configuration */ 45 | #define REG_WDT_EWCTRL (*(RwReg8 *)0x40002002UL) /**< \brief (WDT) Early Warning Interrupt Control */ 46 | #define REG_WDT_INTENCLR (*(RwReg8 *)0x40002004UL) /**< \brief (WDT) Interrupt Enable Clear */ 47 | #define REG_WDT_INTENSET (*(RwReg8 *)0x40002005UL) /**< \brief (WDT) Interrupt Enable Set */ 48 | #define REG_WDT_INTFLAG (*(RwReg8 *)0x40002006UL) /**< \brief (WDT) Interrupt Flag Status and Clear */ 49 | #define REG_WDT_SYNCBUSY (*(RoReg *)0x40002008UL) /**< \brief (WDT) Synchronization Busy */ 50 | #define REG_WDT_CLEAR (*(WoReg8 *)0x4000200CUL) /**< \brief (WDT) Clear */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | 54 | #endif /* _SAMD51_WDT_INSTANCE_ */ 55 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/wdt.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for WDT 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_WDT_INSTANCE_ 30 | #define _SAML21_WDT_INSTANCE_ 31 | 32 | /* ========== Register definition for WDT peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_WDT_CTRLA (0x40001C00) /**< \brief (WDT) Control */ 35 | #define REG_WDT_CONFIG (0x40001C01) /**< \brief (WDT) Configuration */ 36 | #define REG_WDT_EWCTRL (0x40001C02) /**< \brief (WDT) Early Warning Interrupt Control */ 37 | #define REG_WDT_INTENCLR (0x40001C04) /**< \brief (WDT) Interrupt Enable Clear */ 38 | #define REG_WDT_INTENSET (0x40001C05) /**< \brief (WDT) Interrupt Enable Set */ 39 | #define REG_WDT_INTFLAG (0x40001C06) /**< \brief (WDT) Interrupt Flag Status and Clear */ 40 | #define REG_WDT_SYNCBUSY (0x40001C08) /**< \brief (WDT) Synchronization Busy */ 41 | #define REG_WDT_CLEAR (0x40001C0C) /**< \brief (WDT) Clear */ 42 | #else 43 | #define REG_WDT_CTRLA (*(RwReg8 *)0x40001C00UL) /**< \brief (WDT) Control */ 44 | #define REG_WDT_CONFIG (*(RwReg8 *)0x40001C01UL) /**< \brief (WDT) Configuration */ 45 | #define REG_WDT_EWCTRL (*(RwReg8 *)0x40001C02UL) /**< \brief (WDT) Early Warning Interrupt Control */ 46 | #define REG_WDT_INTENCLR (*(RwReg8 *)0x40001C04UL) /**< \brief (WDT) Interrupt Enable Clear */ 47 | #define REG_WDT_INTENSET (*(RwReg8 *)0x40001C05UL) /**< \brief (WDT) Interrupt Enable Set */ 48 | #define REG_WDT_INTFLAG (*(RwReg8 *)0x40001C06UL) /**< \brief (WDT) Interrupt Flag Status and Clear */ 49 | #define REG_WDT_SYNCBUSY (*(RoReg *)0x40001C08UL) /**< \brief (WDT) Synchronization Busy */ 50 | #define REG_WDT_CLEAR (*(WoReg8 *)0x40001C0CUL) /**< \brief (WDT) Clear */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | 54 | #endif /* _SAML21_WDT_INSTANCE_ */ 55 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/wdt.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for WDT 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_WDT_INSTANCE_ 30 | #define _SAML21_WDT_INSTANCE_ 31 | 32 | /* ========== Register definition for WDT peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_WDT_CTRLA (0x40001C00) /**< \brief (WDT) Control */ 35 | #define REG_WDT_CONFIG (0x40001C01) /**< \brief (WDT) Configuration */ 36 | #define REG_WDT_EWCTRL (0x40001C02) /**< \brief (WDT) Early Warning Interrupt Control */ 37 | #define REG_WDT_INTENCLR (0x40001C04) /**< \brief (WDT) Interrupt Enable Clear */ 38 | #define REG_WDT_INTENSET (0x40001C05) /**< \brief (WDT) Interrupt Enable Set */ 39 | #define REG_WDT_INTFLAG (0x40001C06) /**< \brief (WDT) Interrupt Flag Status and Clear */ 40 | #define REG_WDT_SYNCBUSY (0x40001C08) /**< \brief (WDT) Synchronization Busy */ 41 | #define REG_WDT_CLEAR (0x40001C0C) /**< \brief (WDT) Clear */ 42 | #else 43 | #define REG_WDT_CTRLA (*(RwReg8 *)0x40001C00UL) /**< \brief (WDT) Control */ 44 | #define REG_WDT_CONFIG (*(RwReg8 *)0x40001C01UL) /**< \brief (WDT) Configuration */ 45 | #define REG_WDT_EWCTRL (*(RwReg8 *)0x40001C02UL) /**< \brief (WDT) Early Warning Interrupt Control */ 46 | #define REG_WDT_INTENCLR (*(RwReg8 *)0x40001C04UL) /**< \brief (WDT) Interrupt Enable Clear */ 47 | #define REG_WDT_INTENSET (*(RwReg8 *)0x40001C05UL) /**< \brief (WDT) Interrupt Enable Set */ 48 | #define REG_WDT_INTFLAG (*(RwReg8 *)0x40001C06UL) /**< \brief (WDT) Interrupt Flag Status and Clear */ 49 | #define REG_WDT_SYNCBUSY (*(RoReg *)0x40001C08UL) /**< \brief (WDT) Synchronization Busy */ 50 | #define REG_WDT_CLEAR (*(WoReg8 *)0x40001C0CUL) /**< \brief (WDT) Clear */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | 54 | #endif /* _SAML21_WDT_INSTANCE_ */ 55 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/samr21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top header file for SAMR21 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMR21_ 45 | #define _SAMR21_ 46 | 47 | /** 48 | * \defgroup SAMR21_definitions SAMR21 Device Definitions 49 | * \brief SAMR21 CMSIS Definitions. 50 | */ 51 | 52 | #if defined(__SAMR21E16A__) || defined(__ATSAMR21E16A__) 53 | #include "samr21e16a.h" 54 | #elif defined(__SAMR21E17A__) || defined(__ATSAMR21E17A__) 55 | #include "samr21e17a.h" 56 | #elif defined(__SAMR21E18A__) || defined(__ATSAMR21E18A__) 57 | #include "samr21e18a.h" 58 | #elif defined(__SAMR21E19A__) || defined(__ATSAMR21E19A__) 59 | #include "samr21e19a.h" 60 | #elif defined(__SAMR21G16A__) || defined(__ATSAMR21G16A__) 61 | #include "samr21g16a.h" 62 | #elif defined(__SAMR21G17A__) || defined(__ATSAMR21G17A__) 63 | #include "samr21g17a.h" 64 | #elif defined(__SAMR21G18A__) || defined(__ATSAMR21G18A__) 65 | #include "samr21g18a.h" 66 | #else 67 | #error Library does not support the specified device. 68 | #endif 69 | 70 | #endif /* _SAMR21_ */ 71 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/ccl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for CCL 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_CCL_INSTANCE_ 30 | #define _SAMD51_CCL_INSTANCE_ 31 | 32 | /* ========== Register definition for CCL peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_CCL_CTRL (0x42003800) /**< \brief (CCL) Control */ 35 | #define REG_CCL_SEQCTRL0 (0x42003804) /**< \brief (CCL) SEQ Control x 0 */ 36 | #define REG_CCL_SEQCTRL1 (0x42003805) /**< \brief (CCL) SEQ Control x 1 */ 37 | #define REG_CCL_LUTCTRL0 (0x42003808) /**< \brief (CCL) LUT Control x 0 */ 38 | #define REG_CCL_LUTCTRL1 (0x4200380C) /**< \brief (CCL) LUT Control x 1 */ 39 | #define REG_CCL_LUTCTRL2 (0x42003810) /**< \brief (CCL) LUT Control x 2 */ 40 | #define REG_CCL_LUTCTRL3 (0x42003814) /**< \brief (CCL) LUT Control x 3 */ 41 | #else 42 | #define REG_CCL_CTRL (*(RwReg8 *)0x42003800UL) /**< \brief (CCL) Control */ 43 | #define REG_CCL_SEQCTRL0 (*(RwReg8 *)0x42003804UL) /**< \brief (CCL) SEQ Control x 0 */ 44 | #define REG_CCL_SEQCTRL1 (*(RwReg8 *)0x42003805UL) /**< \brief (CCL) SEQ Control x 1 */ 45 | #define REG_CCL_LUTCTRL0 (*(RwReg *)0x42003808UL) /**< \brief (CCL) LUT Control x 0 */ 46 | #define REG_CCL_LUTCTRL1 (*(RwReg *)0x4200380CUL) /**< \brief (CCL) LUT Control x 1 */ 47 | #define REG_CCL_LUTCTRL2 (*(RwReg *)0x42003810UL) /**< \brief (CCL) LUT Control x 2 */ 48 | #define REG_CCL_LUTCTRL3 (*(RwReg *)0x42003814UL) /**< \brief (CCL) LUT Control x 3 */ 49 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 50 | 51 | /* ========== Instance parameters for CCL peripheral ========== */ 52 | #define CCL_GCLK_ID 33 // GCLK index for CCL 53 | #define CCL_LUT_NUM 4 // Number of LUT in a CCL 54 | #define CCL_SEQ_NUM 2 // Number of SEQ in a CCL 55 | 56 | #endif /* _SAMD51_CCL_INSTANCE_ */ 57 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/include/instance/pm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PM 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMC21_PM_INSTANCE_ 45 | #define _SAMC21_PM_INSTANCE_ 46 | 47 | /* ========== Register definition for PM peripheral ========== */ 48 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 49 | #define REG_PM_SLEEPCFG (0x40000401U) /**< \brief (PM) Sleep Configuration */ 50 | #define REG_PM_STDBYCFG (0x40000408U) /**< \brief (PM) Standby Configuration */ 51 | #else 52 | #define REG_PM_SLEEPCFG (*(RwReg8 *)0x40000401U) /**< \brief (PM) Sleep Configuration */ 53 | #define REG_PM_STDBYCFG (*(RwReg16*)0x40000408U) /**< \brief (PM) Standby Configuration */ 54 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 55 | 56 | /* ========== Instance parameters for PM peripheral ========== */ 57 | #define PM_BIAS_RAM_HS 1 // one if RAM HS can be back biased 58 | #define PM_PD_NUM 0 // Number of switchable Power Domain 59 | 60 | #endif /* _SAMC21_PM_INSTANCE_ */ 61 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/source/system_samc21.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #include "samc21.h" 45 | 46 | /** 47 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 48 | * the source for the main clock at chip startup. 49 | */ 50 | #define __SYSTEM_CLOCK (4000000) 51 | 52 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 53 | 54 | /** 55 | * Initialize the system 56 | * 57 | * @brief Setup the microcontroller system. 58 | * Initialize the System and update the SystemCoreClock variable. 59 | */ 60 | void SystemInit(void) 61 | { 62 | // Keep the default device state after reset 63 | SystemCoreClock = __SYSTEM_CLOCK; 64 | return; 65 | } 66 | 67 | /** 68 | * Update SystemCoreClock variable 69 | * 70 | * @brief Updates the SystemCoreClock with current core Clock 71 | * retrieved from cpu registers. 72 | */ 73 | void SystemCoreClockUpdate(void) 74 | { 75 | // Not implemented 76 | SystemCoreClock = __SYSTEM_CLOCK; 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd10/source/system_samd10.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #include "samd10.h" 45 | 46 | /** 47 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 48 | * the source for the main clock at chip startup. 49 | */ 50 | #define __SYSTEM_CLOCK (1000000) 51 | 52 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 53 | 54 | /** 55 | * Initialize the system 56 | * 57 | * @brief Setup the microcontroller system. 58 | * Initialize the System and update the SystemCoreClock variable. 59 | */ 60 | void SystemInit(void) 61 | { 62 | // Keep the default device state after reset 63 | SystemCoreClock = __SYSTEM_CLOCK; 64 | return; 65 | } 66 | 67 | /** 68 | * Update SystemCoreClock variable 69 | * 70 | * @brief Updates the SystemCoreClock with current core Clock 71 | * retrieved from cpu registers. 72 | */ 73 | void SystemCoreClockUpdate(void) 74 | { 75 | // Not implemented 76 | SystemCoreClock = __SYSTEM_CLOCK; 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd11/source/system_samd11.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #include "samd11.h" 45 | 46 | /** 47 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 48 | * the source for the main clock at chip startup. 49 | */ 50 | #define __SYSTEM_CLOCK (1000000) 51 | 52 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 53 | 54 | /** 55 | * Initialize the system 56 | * 57 | * @brief Setup the microcontroller system. 58 | * Initialize the System and update the SystemCoreClock variable. 59 | */ 60 | void SystemInit(void) 61 | { 62 | // Keep the default device state after reset 63 | SystemCoreClock = __SYSTEM_CLOCK; 64 | return; 65 | } 66 | 67 | /** 68 | * Update SystemCoreClock variable 69 | * 70 | * @brief Updates the SystemCoreClock with current core Clock 71 | * retrieved from cpu registers. 72 | */ 73 | void SystemCoreClockUpdate(void) 74 | { 75 | // Not implemented 76 | SystemCoreClock = __SYSTEM_CLOCK; 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/source/system_samd21.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #include "samd21.h" 45 | 46 | /** 47 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 48 | * the source for the main clock at chip startup. 49 | */ 50 | #define __SYSTEM_CLOCK (1000000) 51 | 52 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 53 | 54 | /** 55 | * Initialize the system 56 | * 57 | * @brief Setup the microcontroller system. 58 | * Initialize the System and update the SystemCoreClock variable. 59 | */ 60 | void SystemInit(void) 61 | { 62 | // Keep the default device state after reset 63 | SystemCoreClock = __SYSTEM_CLOCK; 64 | return; 65 | } 66 | 67 | /** 68 | * Update SystemCoreClock variable 69 | * 70 | * @brief Updates the SystemCoreClock with current core Clock 71 | * retrieved from cpu registers. 72 | */ 73 | void SystemCoreClockUpdate(void) 74 | { 75 | // Not implemented 76 | SystemCoreClock = __SYSTEM_CLOCK; 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/source/system_samr21.c: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Low-level initialization functions called upon chip startup. 5 | * 6 | * Copyright (c) 2014 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #include "samr21.h" 45 | 46 | /** 47 | * Initial system clock frequency. The System RC Oscillator (RCSYS) provides 48 | * the source for the main clock at chip startup. 49 | */ 50 | #define __SYSTEM_CLOCK (1000000) 51 | 52 | uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/ 53 | 54 | /** 55 | * Initialize the system 56 | * 57 | * @brief Setup the microcontroller system. 58 | * Initialize the System and update the SystemCoreClock variable. 59 | */ 60 | void SystemInit(void) 61 | { 62 | // Keep the default device state after reset 63 | SystemCoreClock = __SYSTEM_CLOCK; 64 | return; 65 | } 66 | 67 | /** 68 | * Update SystemCoreClock variable 69 | * 70 | * @brief Updates the SystemCoreClock with current core Clock 71 | * retrieved from cpu registers. 72 | */ 73 | void SystemCoreClockUpdate(void) 74 | { 75 | // Not implemented 76 | SystemCoreClock = __SYSTEM_CLOCK; 77 | return; 78 | } 79 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/ccl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for CCL 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_CCL_INSTANCE_ 30 | #define _SAML21_CCL_INSTANCE_ 31 | 32 | /* ========== Register definition for CCL peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_CCL_CTRL (0x43001C00) /**< \brief (CCL) Control */ 35 | #define REG_CCL_SEQCTRL0 (0x43001C04) /**< \brief (CCL) SEQ Control x 0 */ 36 | #define REG_CCL_SEQCTRL1 (0x43001C05) /**< \brief (CCL) SEQ Control x 1 */ 37 | #define REG_CCL_LUTCTRL0 (0x43001C08) /**< \brief (CCL) LUT Control x 0 */ 38 | #define REG_CCL_LUTCTRL1 (0x43001C0C) /**< \brief (CCL) LUT Control x 1 */ 39 | #define REG_CCL_LUTCTRL2 (0x43001C10) /**< \brief (CCL) LUT Control x 2 */ 40 | #define REG_CCL_LUTCTRL3 (0x43001C14) /**< \brief (CCL) LUT Control x 3 */ 41 | #else 42 | #define REG_CCL_CTRL (*(RwReg8 *)0x43001C00UL) /**< \brief (CCL) Control */ 43 | #define REG_CCL_SEQCTRL0 (*(RwReg8 *)0x43001C04UL) /**< \brief (CCL) SEQ Control x 0 */ 44 | #define REG_CCL_SEQCTRL1 (*(RwReg8 *)0x43001C05UL) /**< \brief (CCL) SEQ Control x 1 */ 45 | #define REG_CCL_LUTCTRL0 (*(RwReg *)0x43001C08UL) /**< \brief (CCL) LUT Control x 0 */ 46 | #define REG_CCL_LUTCTRL1 (*(RwReg *)0x43001C0CUL) /**< \brief (CCL) LUT Control x 1 */ 47 | #define REG_CCL_LUTCTRL2 (*(RwReg *)0x43001C10UL) /**< \brief (CCL) LUT Control x 2 */ 48 | #define REG_CCL_LUTCTRL3 (*(RwReg *)0x43001C14UL) /**< \brief (CCL) LUT Control x 3 */ 49 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 50 | 51 | /* ========== Instance parameters for CCL peripheral ========== */ 52 | #define CCL_GCLK_ID 34 // GCLK index for CCL 53 | #define CCL_IO_NUM 12 // Numer of input pins 54 | #define CCL_LUT_NUM 4 // Number of LUT in a CCL 55 | #define CCL_SEQ_NUM 2 // Number of SEQ in a CCL 56 | 57 | #endif /* _SAML21_CCL_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/ccl.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for CCL 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_CCL_INSTANCE_ 30 | #define _SAML21_CCL_INSTANCE_ 31 | 32 | /* ========== Register definition for CCL peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_CCL_CTRL (0x43001C00) /**< \brief (CCL) Control */ 35 | #define REG_CCL_SEQCTRL0 (0x43001C04) /**< \brief (CCL) SEQ Control x 0 */ 36 | #define REG_CCL_SEQCTRL1 (0x43001C05) /**< \brief (CCL) SEQ Control x 1 */ 37 | #define REG_CCL_LUTCTRL0 (0x43001C08) /**< \brief (CCL) LUT Control x 0 */ 38 | #define REG_CCL_LUTCTRL1 (0x43001C0C) /**< \brief (CCL) LUT Control x 1 */ 39 | #define REG_CCL_LUTCTRL2 (0x43001C10) /**< \brief (CCL) LUT Control x 2 */ 40 | #define REG_CCL_LUTCTRL3 (0x43001C14) /**< \brief (CCL) LUT Control x 3 */ 41 | #else 42 | #define REG_CCL_CTRL (*(RwReg8 *)0x43001C00UL) /**< \brief (CCL) Control */ 43 | #define REG_CCL_SEQCTRL0 (*(RwReg8 *)0x43001C04UL) /**< \brief (CCL) SEQ Control x 0 */ 44 | #define REG_CCL_SEQCTRL1 (*(RwReg8 *)0x43001C05UL) /**< \brief (CCL) SEQ Control x 1 */ 45 | #define REG_CCL_LUTCTRL0 (*(RwReg *)0x43001C08UL) /**< \brief (CCL) LUT Control x 0 */ 46 | #define REG_CCL_LUTCTRL1 (*(RwReg *)0x43001C0CUL) /**< \brief (CCL) LUT Control x 1 */ 47 | #define REG_CCL_LUTCTRL2 (*(RwReg *)0x43001C10UL) /**< \brief (CCL) LUT Control x 2 */ 48 | #define REG_CCL_LUTCTRL3 (*(RwReg *)0x43001C14UL) /**< \brief (CCL) LUT Control x 3 */ 49 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 50 | 51 | /* ========== Instance parameters for CCL peripheral ========== */ 52 | #define CCL_GCLK_ID 34 // GCLK index for CCL 53 | #define CCL_IO_NUM 12 // Numer of input pins 54 | #define CCL_LUT_NUM 4 // Number of LUT in a CCL 55 | #define CCL_SEQ_NUM 2 // Number of SEQ in a CCL 56 | 57 | #endif /* _SAML21_CCL_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg55/include/instance/gpbr.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- */ 2 | /* Atmel Microcontroller Software Support */ 3 | /* SAM Software Package License */ 4 | /* ---------------------------------------------------------------------------- */ 5 | /* Copyright (c) 2015, Atmel Corporation */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or without */ 10 | /* modification, are permitted provided that the following condition is met: */ 11 | /* */ 12 | /* - Redistributions of source code must retain the above copyright notice, */ 13 | /* this list of conditions and the disclaimer below. */ 14 | /* */ 15 | /* Atmel's name may not be used to endorse or promote products derived from */ 16 | /* this software without specific prior written permission. */ 17 | /* */ 18 | /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ 19 | /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 20 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ 21 | /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ 22 | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 23 | /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ 24 | /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ 25 | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ 26 | /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ 27 | /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 28 | /* ---------------------------------------------------------------------------- */ 29 | 30 | #ifndef _SAMG55_GPBR_INSTANCE_ 31 | #define _SAMG55_GPBR_INSTANCE_ 32 | 33 | /* ========== Register definition for GPBR peripheral ========== */ 34 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 35 | #define REG_GPBR_GPBR (0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ 36 | #else 37 | #define REG_GPBR_GPBR (*(__IO uint32_t*)0x400E1490U) /**< \brief (GPBR) General Purpose Backup Register */ 38 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 39 | 40 | #endif /* _SAMG55_GPBR_INSTANCE_ */ 41 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/instance/pm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PM 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_PM_INSTANCE_ 30 | #define _SAML21_PM_INSTANCE_ 31 | 32 | /* ========== Register definition for PM peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_PM_CTRLA (0x40000000) /**< \brief (PM) Control A */ 35 | #define REG_PM_SLEEPCFG (0x40000001) /**< \brief (PM) Sleep Configuration */ 36 | #define REG_PM_PLCFG (0x40000002) /**< \brief (PM) Performance Level Configuration */ 37 | #define REG_PM_INTENCLR (0x40000004) /**< \brief (PM) Interrupt Enable Clear */ 38 | #define REG_PM_INTENSET (0x40000005) /**< \brief (PM) Interrupt Enable Set */ 39 | #define REG_PM_INTFLAG (0x40000006) /**< \brief (PM) Interrupt Flag Status and Clear */ 40 | #define REG_PM_STDBYCFG (0x40000008) /**< \brief (PM) Standby Configuration */ 41 | #define REG_PM_PWSAKDLY (0x4000000C) /**< \brief (PM) Power Switch Acknowledge Delay */ 42 | #else 43 | #define REG_PM_CTRLA (*(RwReg8 *)0x40000000UL) /**< \brief (PM) Control A */ 44 | #define REG_PM_SLEEPCFG (*(RwReg8 *)0x40000001UL) /**< \brief (PM) Sleep Configuration */ 45 | #define REG_PM_PLCFG (*(RwReg8 *)0x40000002UL) /**< \brief (PM) Performance Level Configuration */ 46 | #define REG_PM_INTENCLR (*(RwReg8 *)0x40000004UL) /**< \brief (PM) Interrupt Enable Clear */ 47 | #define REG_PM_INTENSET (*(RwReg8 *)0x40000005UL) /**< \brief (PM) Interrupt Enable Set */ 48 | #define REG_PM_INTFLAG (*(RwReg8 *)0x40000006UL) /**< \brief (PM) Interrupt Flag Status and Clear */ 49 | #define REG_PM_STDBYCFG (*(RwReg16*)0x40000008UL) /**< \brief (PM) Standby Configuration */ 50 | #define REG_PM_PWSAKDLY (*(RwReg8 *)0x4000000CUL) /**< \brief (PM) Power Switch Acknowledge Delay */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | /* ========== Instance parameters for PM peripheral ========== */ 54 | #define PM_PD_NUM 3 // Number of switchable Power Domain 55 | 56 | #endif /* _SAML21_PM_INSTANCE_ */ 57 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/instance/pm_100.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PM 5 | * 6 | * Copyright (c) 2016 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAML21_PM_INSTANCE_ 30 | #define _SAML21_PM_INSTANCE_ 31 | 32 | /* ========== Register definition for PM peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_PM_CTRLA (0x40000000) /**< \brief (PM) Control A */ 35 | #define REG_PM_SLEEPCFG (0x40000001) /**< \brief (PM) Sleep Configuration */ 36 | #define REG_PM_PLCFG (0x40000002) /**< \brief (PM) Performance Level Configuration */ 37 | #define REG_PM_INTENCLR (0x40000004) /**< \brief (PM) Interrupt Enable Clear */ 38 | #define REG_PM_INTENSET (0x40000005) /**< \brief (PM) Interrupt Enable Set */ 39 | #define REG_PM_INTFLAG (0x40000006) /**< \brief (PM) Interrupt Flag Status and Clear */ 40 | #define REG_PM_STDBYCFG (0x40000008) /**< \brief (PM) Standby Configuration */ 41 | #define REG_PM_PWSAKDLY (0x4000000C) /**< \brief (PM) Power Switch Acknowledge Delay */ 42 | #else 43 | #define REG_PM_CTRLA (*(RwReg8 *)0x40000000UL) /**< \brief (PM) Control A */ 44 | #define REG_PM_SLEEPCFG (*(RwReg8 *)0x40000001UL) /**< \brief (PM) Sleep Configuration */ 45 | #define REG_PM_PLCFG (*(RwReg8 *)0x40000002UL) /**< \brief (PM) Performance Level Configuration */ 46 | #define REG_PM_INTENCLR (*(RwReg8 *)0x40000004UL) /**< \brief (PM) Interrupt Enable Clear */ 47 | #define REG_PM_INTENSET (*(RwReg8 *)0x40000005UL) /**< \brief (PM) Interrupt Enable Set */ 48 | #define REG_PM_INTFLAG (*(RwReg8 *)0x40000006UL) /**< \brief (PM) Interrupt Flag Status and Clear */ 49 | #define REG_PM_STDBYCFG (*(RwReg16*)0x40000008UL) /**< \brief (PM) Standby Configuration */ 50 | #define REG_PM_PWSAKDLY (*(RwReg8 *)0x4000000CUL) /**< \brief (PM) Power Switch Acknowledge Delay */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | /* ========== Instance parameters for PM peripheral ========== */ 54 | #define PM_PD_NUM 3 // Number of switchable Power Domain 55 | 56 | #endif /* _SAML21_PM_INSTANCE_ */ 57 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/pcc.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PCC 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_PCC_INSTANCE_ 30 | #define _SAMD51_PCC_INSTANCE_ 31 | 32 | /* ========== Register definition for PCC peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_PCC_MR (0x43002C00) /**< \brief (PCC) Mode Register */ 35 | #define REG_PCC_IER (0x43002C04) /**< \brief (PCC) Interrupt Enable Register */ 36 | #define REG_PCC_IDR (0x43002C08) /**< \brief (PCC) Interrupt Disable Register */ 37 | #define REG_PCC_IMR (0x43002C0C) /**< \brief (PCC) Interrupt Mask Register */ 38 | #define REG_PCC_ISR (0x43002C10) /**< \brief (PCC) Interrupt Status Register */ 39 | #define REG_PCC_RHR (0x43002C14) /**< \brief (PCC) Reception Holding Register */ 40 | #define REG_PCC_WPMR (0x43002CE0) /**< \brief (PCC) Write Protection Mode Register */ 41 | #define REG_PCC_WPSR (0x43002CE4) /**< \brief (PCC) Write Protection Status Register */ 42 | #else 43 | #define REG_PCC_MR (*(RwReg *)0x43002C00UL) /**< \brief (PCC) Mode Register */ 44 | #define REG_PCC_IER (*(WoReg *)0x43002C04UL) /**< \brief (PCC) Interrupt Enable Register */ 45 | #define REG_PCC_IDR (*(WoReg *)0x43002C08UL) /**< \brief (PCC) Interrupt Disable Register */ 46 | #define REG_PCC_IMR (*(RoReg *)0x43002C0CUL) /**< \brief (PCC) Interrupt Mask Register */ 47 | #define REG_PCC_ISR (*(RoReg *)0x43002C10UL) /**< \brief (PCC) Interrupt Status Register */ 48 | #define REG_PCC_RHR (*(RoReg *)0x43002C14UL) /**< \brief (PCC) Reception Holding Register */ 49 | #define REG_PCC_WPMR (*(RwReg *)0x43002CE0UL) /**< \brief (PCC) Write Protection Mode Register */ 50 | #define REG_PCC_WPSR (*(RoReg *)0x43002CE4UL) /**< \brief (PCC) Write Protection Status Register */ 51 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 52 | 53 | /* ========== Instance parameters for PCC peripheral ========== */ 54 | #define PCC_DATA_SIZE 14 55 | #define PCC_DMAC_ID_RX 80 56 | 57 | #endif /* _SAMD51_PCC_INSTANCE_ */ 58 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21a1/include/component-version.h: -------------------------------------------------------------------------------- 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 | 73 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/saml21b/include/component-version.h: -------------------------------------------------------------------------------- 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:27" 70 | 71 | #endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */ 72 | 73 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd21/include/component-version.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Copyright (C) 2015 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 0 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 00010000 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 222 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.0" 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 "2015-09-09 22:27:54" 70 | 71 | #endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */ 72 | 73 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samr21/include/component-version.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * 3 | * Copyright (C) 2015 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 0 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 00010000 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 28 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.0" 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 "2015-09-09 22:22:58" 70 | 71 | #endif/* #ifndef _COMPONENT_VERSION_H_INCLUDED */ 72 | 73 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg55/include/instance/chipid.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- */ 2 | /* Atmel Microcontroller Software Support */ 3 | /* SAM Software Package License */ 4 | /* ---------------------------------------------------------------------------- */ 5 | /* Copyright (c) 2015, Atmel Corporation */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or without */ 10 | /* modification, are permitted provided that the following condition is met: */ 11 | /* */ 12 | /* - Redistributions of source code must retain the above copyright notice, */ 13 | /* this list of conditions and the disclaimer below. */ 14 | /* */ 15 | /* Atmel's name may not be used to endorse or promote products derived from */ 16 | /* this software without specific prior written permission. */ 17 | /* */ 18 | /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ 19 | /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 20 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ 21 | /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ 22 | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 23 | /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ 24 | /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ 25 | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ 26 | /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ 27 | /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 28 | /* ---------------------------------------------------------------------------- */ 29 | 30 | #ifndef _SAMG55_CHIPID_INSTANCE_ 31 | #define _SAMG55_CHIPID_INSTANCE_ 32 | 33 | /* ========== Register definition for CHIPID peripheral ========== */ 34 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 35 | #define REG_CHIPID_CIDR (0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ 36 | #define REG_CHIPID_EXID (0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ 37 | #else 38 | #define REG_CHIPID_CIDR (*(__I uint32_t*)0x400E0740U) /**< \brief (CHIPID) Chip ID Register */ 39 | #define REG_CHIPID_EXID (*(__I uint32_t*)0x400E0744U) /**< \brief (CHIPID) Chip ID Extension Register */ 40 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 41 | 42 | #endif /* _SAMG55_CHIPID_INSTANCE_ */ 43 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/pm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for PM 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_PM_INSTANCE_ 30 | #define _SAMD51_PM_INSTANCE_ 31 | 32 | /* ========== Register definition for PM peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_PM_CTRLA (0x40000400) /**< \brief (PM) Control A */ 35 | #define REG_PM_SLEEPCFG (0x40000401) /**< \brief (PM) Sleep Configuration */ 36 | #define REG_PM_INTENCLR (0x40000404) /**< \brief (PM) Interrupt Enable Clear */ 37 | #define REG_PM_INTENSET (0x40000405) /**< \brief (PM) Interrupt Enable Set */ 38 | #define REG_PM_INTFLAG (0x40000406) /**< \brief (PM) Interrupt Flag Status and Clear */ 39 | #define REG_PM_STDBYCFG (0x40000408) /**< \brief (PM) Standby Configuration */ 40 | #define REG_PM_HIBCFG (0x40000409) /**< \brief (PM) Hibernate Configuration */ 41 | #define REG_PM_BKUPCFG (0x4000040A) /**< \brief (PM) Backup Configuration */ 42 | #define REG_PM_PWSAKDLY (0x40000412) /**< \brief (PM) Power Switch Acknowledge Delay */ 43 | #else 44 | #define REG_PM_CTRLA (*(RwReg8 *)0x40000400UL) /**< \brief (PM) Control A */ 45 | #define REG_PM_SLEEPCFG (*(RwReg8 *)0x40000401UL) /**< \brief (PM) Sleep Configuration */ 46 | #define REG_PM_INTENCLR (*(RwReg8 *)0x40000404UL) /**< \brief (PM) Interrupt Enable Clear */ 47 | #define REG_PM_INTENSET (*(RwReg8 *)0x40000405UL) /**< \brief (PM) Interrupt Enable Set */ 48 | #define REG_PM_INTFLAG (*(RwReg8 *)0x40000406UL) /**< \brief (PM) Interrupt Flag Status and Clear */ 49 | #define REG_PM_STDBYCFG (*(RwReg8 *)0x40000408UL) /**< \brief (PM) Standby Configuration */ 50 | #define REG_PM_HIBCFG (*(RwReg8 *)0x40000409UL) /**< \brief (PM) Hibernate Configuration */ 51 | #define REG_PM_BKUPCFG (*(RwReg8 *)0x4000040AUL) /**< \brief (PM) Backup Configuration */ 52 | #define REG_PM_PWSAKDLY (*(RwReg8 *)0x40000412UL) /**< \brief (PM) Power Switch Acknowledge Delay */ 53 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 54 | 55 | /* ========== Instance parameters for PM peripheral ========== */ 56 | #define PM_PD_NUM 0 // Number of switchable Power Domains 57 | 58 | #endif /* _SAMD51_PM_INSTANCE_ */ 59 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samd51/include/instance/freqm.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Instance description for FREQM 5 | * 6 | * Copyright (c) 2017 Atmel Corporation, 7 | * a wholly owned subsidiary of Microchip Technology Inc. 8 | * 9 | * \asf_license_start 10 | * 11 | * \page License 12 | * 13 | * Licensed under the Apache License, Version 2.0 (the "License"); 14 | * you may not use this file except in compliance with the License. 15 | * You may obtain a copy of the Licence at 16 | * 17 | * http://www.apache.org/licenses/LICENSE-2.0 18 | * 19 | * Unless required by applicable law or agreed to in writing, software 20 | * distributed under the License is distributed on an "AS IS" BASIS, 21 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 | * See the License for the specific language governing permissions and 23 | * limitations under the License. 24 | * 25 | * \asf_license_stop 26 | * 27 | */ 28 | 29 | #ifndef _SAMD51_FREQM_INSTANCE_ 30 | #define _SAMD51_FREQM_INSTANCE_ 31 | 32 | /* ========== Register definition for FREQM peripheral ========== */ 33 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 | #define REG_FREQM_CTRLA (0x40002C00) /**< \brief (FREQM) Control A Register */ 35 | #define REG_FREQM_CTRLB (0x40002C01) /**< \brief (FREQM) Control B Register */ 36 | #define REG_FREQM_CFGA (0x40002C02) /**< \brief (FREQM) Config A register */ 37 | #define REG_FREQM_INTENCLR (0x40002C08) /**< \brief (FREQM) Interrupt Enable Clear Register */ 38 | #define REG_FREQM_INTENSET (0x40002C09) /**< \brief (FREQM) Interrupt Enable Set Register */ 39 | #define REG_FREQM_INTFLAG (0x40002C0A) /**< \brief (FREQM) Interrupt Flag Register */ 40 | #define REG_FREQM_STATUS (0x40002C0B) /**< \brief (FREQM) Status Register */ 41 | #define REG_FREQM_SYNCBUSY (0x40002C0C) /**< \brief (FREQM) Synchronization Busy Register */ 42 | #define REG_FREQM_VALUE (0x40002C10) /**< \brief (FREQM) Count Value Register */ 43 | #else 44 | #define REG_FREQM_CTRLA (*(RwReg8 *)0x40002C00UL) /**< \brief (FREQM) Control A Register */ 45 | #define REG_FREQM_CTRLB (*(WoReg8 *)0x40002C01UL) /**< \brief (FREQM) Control B Register */ 46 | #define REG_FREQM_CFGA (*(RwReg16*)0x40002C02UL) /**< \brief (FREQM) Config A register */ 47 | #define REG_FREQM_INTENCLR (*(RwReg8 *)0x40002C08UL) /**< \brief (FREQM) Interrupt Enable Clear Register */ 48 | #define REG_FREQM_INTENSET (*(RwReg8 *)0x40002C09UL) /**< \brief (FREQM) Interrupt Enable Set Register */ 49 | #define REG_FREQM_INTFLAG (*(RwReg8 *)0x40002C0AUL) /**< \brief (FREQM) Interrupt Flag Register */ 50 | #define REG_FREQM_STATUS (*(RwReg8 *)0x40002C0BUL) /**< \brief (FREQM) Status Register */ 51 | #define REG_FREQM_SYNCBUSY (*(RoReg *)0x40002C0CUL) /**< \brief (FREQM) Synchronization Busy Register */ 52 | #define REG_FREQM_VALUE (*(RoReg *)0x40002C10UL) /**< \brief (FREQM) Count Value Register */ 53 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 54 | 55 | /* ========== Instance parameters for FREQM peripheral ========== */ 56 | #define FREQM_GCLK_ID_MSR 5 // Index of measure generic clock 57 | 58 | #endif /* _SAMD51_FREQM_INSTANCE_ */ 59 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg55/include/instance/wdt.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- */ 2 | /* Atmel Microcontroller Software Support */ 3 | /* SAM Software Package License */ 4 | /* ---------------------------------------------------------------------------- */ 5 | /* Copyright (c) 2015, Atmel Corporation */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or without */ 10 | /* modification, are permitted provided that the following condition is met: */ 11 | /* */ 12 | /* - Redistributions of source code must retain the above copyright notice, */ 13 | /* this list of conditions and the disclaimer below. */ 14 | /* */ 15 | /* Atmel's name may not be used to endorse or promote products derived from */ 16 | /* this software without specific prior written permission. */ 17 | /* */ 18 | /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ 19 | /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 20 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ 21 | /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ 22 | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 23 | /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ 24 | /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ 25 | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ 26 | /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ 27 | /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 28 | /* ---------------------------------------------------------------------------- */ 29 | 30 | #ifndef _SAMG55_WDT_INSTANCE_ 31 | #define _SAMG55_WDT_INSTANCE_ 32 | 33 | /* ========== Register definition for WDT peripheral ========== */ 34 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 35 | #define REG_WDT_CR (0x400E1450U) /**< \brief (WDT) Control Register */ 36 | #define REG_WDT_MR (0x400E1454U) /**< \brief (WDT) Mode Register */ 37 | #define REG_WDT_SR (0x400E1458U) /**< \brief (WDT) Status Register */ 38 | #else 39 | #define REG_WDT_CR (*(__O uint32_t*)0x400E1450U) /**< \brief (WDT) Control Register */ 40 | #define REG_WDT_MR (*(__IO uint32_t*)0x400E1454U) /**< \brief (WDT) Mode Register */ 41 | #define REG_WDT_SR (*(__I uint32_t*)0x400E1458U) /**< \brief (WDT) Status Register */ 42 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 43 | 44 | #endif /* _SAMG55_WDT_INSTANCE_ */ 45 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samc21/include/samc21.h: -------------------------------------------------------------------------------- 1 | /** 2 | * \file 3 | * 4 | * \brief Top header file for SAMC21 5 | * 6 | * Copyright (c) 2015 Atmel Corporation. All rights reserved. 7 | * 8 | * \asf_license_start 9 | * 10 | * \page License 11 | * 12 | * Redistribution and use in source and binary forms, with or without 13 | * modification, are permitted provided that the following conditions are met: 14 | * 15 | * 1. Redistributions of source code must retain the above copyright notice, 16 | * this list of conditions and the following disclaimer. 17 | * 18 | * 2. Redistributions in binary form must reproduce the above copyright notice, 19 | * this list of conditions and the following disclaimer in the documentation 20 | * and/or other materials provided with the distribution. 21 | * 22 | * 3. The name of Atmel may not be used to endorse or promote products derived 23 | * from this software without specific prior written permission. 24 | * 25 | * 4. This software may only be redistributed and used in connection with an 26 | * Atmel microcontroller product. 27 | * 28 | * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 29 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 30 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 31 | * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 32 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 36 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 37 | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 38 | * POSSIBILITY OF SUCH DAMAGE. 39 | * 40 | * \asf_license_stop 41 | * 42 | */ 43 | 44 | #ifndef _SAMC21_ 45 | #define _SAMC21_ 46 | 47 | /** 48 | * \defgroup SAMC21_definitions SAMC21 Device Definitions 49 | * \brief SAMC21 CMSIS Definitions. 50 | */ 51 | 52 | #if defined(__SAMC21E15A__) || defined(__ATSAMC21E15A__) 53 | #include "samc21e15a.h" 54 | #elif defined(__SAMC21E16A__) || defined(__ATSAMC21E16A__) 55 | #include "samc21e16a.h" 56 | #elif defined(__SAMC21E17A__) || defined(__ATSAMC21E17A__) 57 | #include "samc21e17a.h" 58 | #elif defined(__SAMC21E18A__) || defined(__ATSAMC21E18A__) 59 | #include "samc21e18a.h" 60 | #elif defined(__SAMC21G15A__) || defined(__ATSAMC21G15A__) 61 | #include "samc21g15a.h" 62 | #elif defined(__SAMC21G16A__) || defined(__ATSAMC21G16A__) 63 | #include "samc21g16a.h" 64 | #elif defined(__SAMC21G17A__) || defined(__ATSAMC21G17A__) 65 | #include "samc21g17a.h" 66 | #elif defined(__SAMC21G18A__) || defined(__ATSAMC21G18A__) 67 | #include "samc21g18a.h" 68 | #elif defined(__SAMC21J15A__) || defined(__ATSAMC21J15A__) 69 | #include "samc21j15a.h" 70 | #elif defined(__SAMC21J16A__) || defined(__ATSAMC21J16A__) 71 | #include "samc21j16a.h" 72 | #elif defined(__SAMC21J17A__) || defined(__ATSAMC21J17A__) 73 | #include "samc21j17a.h" 74 | #elif defined(__SAMC21J18A__) || defined(__ATSAMC21J18A__) 75 | #include "samc21j18a.h" 76 | #else 77 | #error Library does not support the specified device. 78 | #endif 79 | 80 | #endif /* _SAMC21_ */ 81 | -------------------------------------------------------------------------------- /CMSIS-Atmel/CMSIS/Device/ATMEL/samg55/include/instance/rstc.h: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- */ 2 | /* Atmel Microcontroller Software Support */ 3 | /* SAM Software Package License */ 4 | /* ---------------------------------------------------------------------------- */ 5 | /* Copyright (c) 2015, Atmel Corporation */ 6 | /* */ 7 | /* All rights reserved. */ 8 | /* */ 9 | /* Redistribution and use in source and binary forms, with or without */ 10 | /* modification, are permitted provided that the following condition is met: */ 11 | /* */ 12 | /* - Redistributions of source code must retain the above copyright notice, */ 13 | /* this list of conditions and the disclaimer below. */ 14 | /* */ 15 | /* Atmel's name may not be used to endorse or promote products derived from */ 16 | /* this software without specific prior written permission. */ 17 | /* */ 18 | /* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR */ 19 | /* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF */ 20 | /* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE */ 21 | /* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, */ 22 | /* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT */ 23 | /* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, */ 24 | /* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF */ 25 | /* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING */ 26 | /* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, */ 27 | /* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 28 | /* ---------------------------------------------------------------------------- */ 29 | 30 | #ifndef _SAMG55_RSTC_INSTANCE_ 31 | #define _SAMG55_RSTC_INSTANCE_ 32 | 33 | /* ========== Register definition for RSTC peripheral ========== */ 34 | #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 35 | #define REG_RSTC_CR (0x400E1400U) /**< \brief (RSTC) Control Register */ 36 | #define REG_RSTC_SR (0x400E1404U) /**< \brief (RSTC) Status Register */ 37 | #define REG_RSTC_MR (0x400E1408U) /**< \brief (RSTC) Mode Register */ 38 | #else 39 | #define REG_RSTC_CR (*(__O uint32_t*)0x400E1400U) /**< \brief (RSTC) Control Register */ 40 | #define REG_RSTC_SR (*(__I uint32_t*)0x400E1404U) /**< \brief (RSTC) Status Register */ 41 | #define REG_RSTC_MR (*(__IO uint32_t*)0x400E1408U) /**< \brief (RSTC) Mode Register */ 42 | #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 43 | 44 | #endif /* _SAMG55_RSTC_INSTANCE_ */ 45 | --------------------------------------------------------------------------------