supc.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for SUPC
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \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");
  15. * you may not use this file except in compliance with the License.
  16. * You may obtain a copy of the License 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,
  22. * WITHOUT 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. * \license_stop
  27. *
  28. */
  29. /* file generated from device description version 2018-05-30T11:07:17Z */
  30. #ifndef _SAML11_SUPC_INSTANCE_H_
  31. #define _SAML11_SUPC_INSTANCE_H_
  32. /* ========== Register definition for SUPC peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_SUPC_INTENCLR (0x40001800) /**< (SUPC) Interrupt Enable Clear */
  35. #define REG_SUPC_INTENSET (0x40001804) /**< (SUPC) Interrupt Enable Set */
  36. #define REG_SUPC_INTFLAG (0x40001808) /**< (SUPC) Interrupt Flag Status and Clear */
  37. #define REG_SUPC_STATUS (0x4000180C) /**< (SUPC) Power and Clocks Status */
  38. #define REG_SUPC_BOD33 (0x40001810) /**< (SUPC) BOD33 Control */
  39. #define REG_SUPC_BOD12 (0x40001814) /**< (SUPC) BOD12 Control */
  40. #define REG_SUPC_VREG (0x40001818) /**< (SUPC) VREG Control */
  41. #define REG_SUPC_VREF (0x4000181C) /**< (SUPC) VREF Control */
  42. #define REG_SUPC_EVCTRL (0x4000182C) /**< (SUPC) Event Control */
  43. #define REG_SUPC_VREGSUSP (0x40001830) /**< (SUPC) VREG Suspend Control */
  44. #else
  45. #define REG_SUPC_INTENCLR (*(__IO uint32_t*)0x40001800U) /**< (SUPC) Interrupt Enable Clear */
  46. #define REG_SUPC_INTENSET (*(__IO uint32_t*)0x40001804U) /**< (SUPC) Interrupt Enable Set */
  47. #define REG_SUPC_INTFLAG (*(__IO uint32_t*)0x40001808U) /**< (SUPC) Interrupt Flag Status and Clear */
  48. #define REG_SUPC_STATUS (*(__I uint32_t*)0x4000180CU) /**< (SUPC) Power and Clocks Status */
  49. #define REG_SUPC_BOD33 (*(__IO uint32_t*)0x40001810U) /**< (SUPC) BOD33 Control */
  50. #define REG_SUPC_BOD12 (*(__IO uint32_t*)0x40001814U) /**< (SUPC) BOD12 Control */
  51. #define REG_SUPC_VREG (*(__IO uint32_t*)0x40001818U) /**< (SUPC) VREG Control */
  52. #define REG_SUPC_VREF (*(__IO uint32_t*)0x4000181CU) /**< (SUPC) VREF Control */
  53. #define REG_SUPC_EVCTRL (*(__IO uint32_t*)0x4000182CU) /**< (SUPC) Event Control */
  54. #define REG_SUPC_VREGSUSP (*(__IO uint32_t*)0x40001830U) /**< (SUPC) VREG Suspend Control */
  55. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  56. /* ========== Instance Parameter definitions for SUPC peripheral ========== */
  57. #define SUPC_BOD12_CALIB_MSB 5
  58. #define SUPC_BOD33_CALIB_MSB 5
  59. #define SUPC_INSTANCE_ID 6
  60. #endif /* _SAML11_SUPC_INSTANCE_ */