pac2.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for PAC2
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \asf_license_start
  9. *
  10. * \page License
  11. *
  12. * SPDX-License-Identifier: Apache-2.0
  13. *
  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
  17. *
  18. * http://www.apache.org/licenses/LICENSE-2.0
  19. *
  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.
  25. *
  26. * \asf_license_stop
  27. *
  28. */
  29. #ifndef _SAMD11_PAC2_INSTANCE_
  30. #define _SAMD11_PAC2_INSTANCE_
  31. /* ========== Register definition for PAC2 peripheral ========== */
  32. #if (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  33. #define REG_PAC2_WPCLR (0x42000000) /**< \brief (PAC2) Write Protection Clear */
  34. #define REG_PAC2_WPSET (0x42000004) /**< \brief (PAC2) Write Protection Set */
  35. #else
  36. #define REG_PAC2_WPCLR (*(RwReg *)0x42000000UL) /**< \brief (PAC2) Write Protection Clear */
  37. #define REG_PAC2_WPSET (*(RwReg *)0x42000004UL) /**< \brief (PAC2) Write Protection Set */
  38. #endif /* (defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  39. /* ========== Instance parameters for PAC2 peripheral ========== */
  40. #define PAC2_WPROT_DEFAULT_VAL 0x00001000 // PAC protection mask at reset
  41. #endif /* _SAMD11_PAC2_INSTANCE_ */