4 * \brief Instance description for RSTC
6 * Copyright (c) 2017 Microchip Technology Inc.
12 * SPDX-License-Identifier: Apache-2.0
14 * Licensed under the Apache License, Version 2.0 (the "License"); you may
15 * not use this file except in compliance with the License.
16 * You may obtain a copy of the Licence at
18 * http://www.apache.org/licenses/LICENSE-2.0
20 * Unless required by applicable law or agreed to in writing, software
21 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
22 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 * See the License for the specific language governing permissions and
24 * limitations under the License.
30 #ifndef _SAMD51_RSTC_INSTANCE_
31 #define _SAMD51_RSTC_INSTANCE_
33 /* ========== Register definition for RSTC peripheral ========== */
34 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
35 #define REG_RSTC_RCAUSE (0x40000C00) /**< \brief (RSTC) Reset Cause */
36 #define REG_RSTC_BKUPEXIT (0x40000C02) /**< \brief (RSTC) Backup Exit Source */
38 #define REG_RSTC_RCAUSE (*(RoReg8 *)0x40000C00UL) /**< \brief (RSTC) Reset Cause */
39 #define REG_RSTC_BKUPEXIT (*(RoReg8 *)0x40000C02UL) /**< \brief (RSTC) Backup Exit Source */
40 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
42 /* ========== Instance parameters for RSTC peripheral ========== */
43 #define RSTC_BACKUP_IMPLEMENTED 1
44 #define RSTC_HIB_IMPLEMENTED 1
45 #define RSTC_NUMBER_OF_EXTWAKE 0 // number of external wakeup line
46 #define RSTC_NVMRST_IMPLEMENTED 1
48 #endif /* _SAMD51_RSTC_INSTANCE_ */