1 /** 2 * \file 3 * 4 * \brief Instance description for PAC0 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 _SAMD21_PAC0_INSTANCE_ 30 #define _SAMD21_PAC0_INSTANCE_ 31 32 /* ========== Register definition for PAC0 peripheral ========== */ 33 #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 34 #define REG_PAC0_WPCLR (0x40000000) /**< \brief (PAC0) Write Protection Clear */ 35 #define REG_PAC0_WPSET (0x40000004) /**< \brief (PAC0) Write Protection Set */ 36 #else 37 #define REG_PAC0_WPCLR (*(RwReg *)0x40000000UL) /**< \brief (PAC0) Write Protection Clear */ 38 #define REG_PAC0_WPSET (*(RwReg *)0x40000004UL) /**< \brief (PAC0) Write Protection Set */ 39 #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */ 40 41 /* ========== Instance parameters for PAC0 peripheral ========== */ 42 #define PAC0_WPROT_DEFAULT_VAL 0x00000000 // PAC protection mask at reset 43 44 #endif /* _SAMD21_PAC0_INSTANCE_ */ 45