ac.h 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for AC
  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_AC_INSTANCE_H_
  31. #define _SAML11_AC_INSTANCE_H_
  32. /* ========== Register definition for AC peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_AC_CTRLA (0x40003400) /**< (AC) Control A */
  35. #define REG_AC_CTRLB (0x40003401) /**< (AC) Control B */
  36. #define REG_AC_EVCTRL (0x40003402) /**< (AC) Event Control */
  37. #define REG_AC_INTENCLR (0x40003404) /**< (AC) Interrupt Enable Clear */
  38. #define REG_AC_INTENSET (0x40003405) /**< (AC) Interrupt Enable Set */
  39. #define REG_AC_INTFLAG (0x40003406) /**< (AC) Interrupt Flag Status and Clear */
  40. #define REG_AC_STATUSA (0x40003407) /**< (AC) Status A */
  41. #define REG_AC_STATUSB (0x40003408) /**< (AC) Status B */
  42. #define REG_AC_DBGCTRL (0x40003409) /**< (AC) Debug Control */
  43. #define REG_AC_WINCTRL (0x4000340A) /**< (AC) Window Control */
  44. #define REG_AC_SCALER (0x4000340C) /**< (AC) Scaler n */
  45. #define REG_AC_SCALER0 (0x4000340C) /**< (AC) Scaler 0 */
  46. #define REG_AC_SCALER1 (0x4000340D) /**< (AC) Scaler 1 */
  47. #define REG_AC_COMPCTRL (0x40003410) /**< (AC) Comparator Control n */
  48. #define REG_AC_COMPCTRL0 (0x40003410) /**< (AC) Comparator Control 0 */
  49. #define REG_AC_COMPCTRL1 (0x40003414) /**< (AC) Comparator Control 1 */
  50. #define REG_AC_SYNCBUSY (0x40003420) /**< (AC) Synchronization Busy */
  51. #else
  52. #define REG_AC_CTRLA (*(__IO uint8_t*)0x40003400U) /**< (AC) Control A */
  53. #define REG_AC_CTRLB (*(__O uint8_t*)0x40003401U) /**< (AC) Control B */
  54. #define REG_AC_EVCTRL (*(__IO uint16_t*)0x40003402U) /**< (AC) Event Control */
  55. #define REG_AC_INTENCLR (*(__IO uint8_t*)0x40003404U) /**< (AC) Interrupt Enable Clear */
  56. #define REG_AC_INTENSET (*(__IO uint8_t*)0x40003405U) /**< (AC) Interrupt Enable Set */
  57. #define REG_AC_INTFLAG (*(__IO uint8_t*)0x40003406U) /**< (AC) Interrupt Flag Status and Clear */
  58. #define REG_AC_STATUSA (*(__I uint8_t*)0x40003407U) /**< (AC) Status A */
  59. #define REG_AC_STATUSB (*(__I uint8_t*)0x40003408U) /**< (AC) Status B */
  60. #define REG_AC_DBGCTRL (*(__IO uint8_t*)0x40003409U) /**< (AC) Debug Control */
  61. #define REG_AC_WINCTRL (*(__IO uint8_t*)0x4000340AU) /**< (AC) Window Control */
  62. #define REG_AC_SCALER (*(__IO uint8_t*)0x4000340CU) /**< (AC) Scaler n */
  63. #define REG_AC_SCALER0 (*(__IO uint8_t*)0x4000340CU) /**< (AC) Scaler 0 */
  64. #define REG_AC_SCALER1 (*(__IO uint8_t*)0x4000340DU) /**< (AC) Scaler 1 */
  65. #define REG_AC_COMPCTRL (*(__IO uint32_t*)0x40003410U) /**< (AC) Comparator Control n */
  66. #define REG_AC_COMPCTRL0 (*(__IO uint32_t*)0x40003410U) /**< (AC) Comparator Control 0 */
  67. #define REG_AC_COMPCTRL1 (*(__IO uint32_t*)0x40003414U) /**< (AC) Comparator Control 1 */
  68. #define REG_AC_SYNCBUSY (*(__I uint32_t*)0x40003420U) /**< (AC) Synchronization Busy */
  69. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  70. /* ========== Instance Parameter definitions for AC peripheral ========== */
  71. #define AC_GCLK_ID 17 /* Index of Generic Clock */
  72. #define AC_NUM_CMP 2 /* Number of comparators */
  73. #define AC_PAIRS 1 /* Number of pairs of comparators */
  74. #define AC_INSTANCE_ID 13
  75. #endif /* _SAML11_AC_INSTANCE_ */