dac.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for DAC
  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_DAC_INSTANCE_H_
  31. #define _SAML11_DAC_INSTANCE_H_
  32. /* ========== Register definition for DAC peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_DAC_CTRLA (0x42002000) /**< (DAC) Control A */
  35. #define REG_DAC_CTRLB (0x42002001) /**< (DAC) Control B */
  36. #define REG_DAC_EVCTRL (0x42002002) /**< (DAC) Event Control */
  37. #define REG_DAC_INTENCLR (0x42002004) /**< (DAC) Interrupt Enable Clear */
  38. #define REG_DAC_INTENSET (0x42002005) /**< (DAC) Interrupt Enable Set */
  39. #define REG_DAC_INTFLAG (0x42002006) /**< (DAC) Interrupt Flag Status and Clear */
  40. #define REG_DAC_STATUS (0x42002007) /**< (DAC) Status */
  41. #define REG_DAC_DATA (0x42002008) /**< (DAC) Data */
  42. #define REG_DAC_DATABUF (0x4200200C) /**< (DAC) Data Buffer */
  43. #define REG_DAC_SYNCBUSY (0x42002010) /**< (DAC) Synchronization Busy */
  44. #define REG_DAC_DBGCTRL (0x42002014) /**< (DAC) Debug Control */
  45. #else
  46. #define REG_DAC_CTRLA (*(__IO uint8_t*)0x42002000U) /**< (DAC) Control A */
  47. #define REG_DAC_CTRLB (*(__IO uint8_t*)0x42002001U) /**< (DAC) Control B */
  48. #define REG_DAC_EVCTRL (*(__IO uint8_t*)0x42002002U) /**< (DAC) Event Control */
  49. #define REG_DAC_INTENCLR (*(__IO uint8_t*)0x42002004U) /**< (DAC) Interrupt Enable Clear */
  50. #define REG_DAC_INTENSET (*(__IO uint8_t*)0x42002005U) /**< (DAC) Interrupt Enable Set */
  51. #define REG_DAC_INTFLAG (*(__IO uint8_t*)0x42002006U) /**< (DAC) Interrupt Flag Status and Clear */
  52. #define REG_DAC_STATUS (*(__I uint8_t*)0x42002007U) /**< (DAC) Status */
  53. #define REG_DAC_DATA (*(__O uint16_t*)0x42002008U) /**< (DAC) Data */
  54. #define REG_DAC_DATABUF (*(__O uint16_t*)0x4200200CU) /**< (DAC) Data Buffer */
  55. #define REG_DAC_SYNCBUSY (*(__I uint32_t*)0x42002010U) /**< (DAC) Synchronization Busy */
  56. #define REG_DAC_DBGCTRL (*(__IO uint8_t*)0x42002014U) /**< (DAC) Debug Control */
  57. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  58. /* ========== Instance Parameter definitions for DAC peripheral ========== */
  59. #define DAC_DMAC_ID_EMPTY 20 /* Index of DMA EMPTY trigger */
  60. #define DAC_GCLK_ID 18
  61. #define DAC_INSTANCE_ID 72
  62. #endif /* _SAML11_DAC_INSTANCE_ */