freqm.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for FREQM
  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_FREQM_INSTANCE_H_
  31. #define _SAML11_FREQM_INSTANCE_H_
  32. /* ========== Register definition for FREQM peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_FREQM_CTRLA (0x40002C00) /**< (FREQM) Control A Register */
  35. #define REG_FREQM_CTRLB (0x40002C01) /**< (FREQM) Control B Register */
  36. #define REG_FREQM_CFGA (0x40002C02) /**< (FREQM) Config A register */
  37. #define REG_FREQM_INTENCLR (0x40002C08) /**< (FREQM) Interrupt Enable Clear Register */
  38. #define REG_FREQM_INTENSET (0x40002C09) /**< (FREQM) Interrupt Enable Set Register */
  39. #define REG_FREQM_INTFLAG (0x40002C0A) /**< (FREQM) Interrupt Flag Register */
  40. #define REG_FREQM_STATUS (0x40002C0B) /**< (FREQM) Status Register */
  41. #define REG_FREQM_SYNCBUSY (0x40002C0C) /**< (FREQM) Synchronization Busy Register */
  42. #define REG_FREQM_VALUE (0x40002C10) /**< (FREQM) Count Value Register */
  43. #else
  44. #define REG_FREQM_CTRLA (*(__IO uint8_t*)0x40002C00U) /**< (FREQM) Control A Register */
  45. #define REG_FREQM_CTRLB (*(__O uint8_t*)0x40002C01U) /**< (FREQM) Control B Register */
  46. #define REG_FREQM_CFGA (*(__IO uint16_t*)0x40002C02U) /**< (FREQM) Config A register */
  47. #define REG_FREQM_INTENCLR (*(__IO uint8_t*)0x40002C08U) /**< (FREQM) Interrupt Enable Clear Register */
  48. #define REG_FREQM_INTENSET (*(__IO uint8_t*)0x40002C09U) /**< (FREQM) Interrupt Enable Set Register */
  49. #define REG_FREQM_INTFLAG (*(__IO uint8_t*)0x40002C0AU) /**< (FREQM) Interrupt Flag Register */
  50. #define REG_FREQM_STATUS (*(__IO uint8_t*)0x40002C0BU) /**< (FREQM) Status Register */
  51. #define REG_FREQM_SYNCBUSY (*(__I uint32_t*)0x40002C0CU) /**< (FREQM) Synchronization Busy Register */
  52. #define REG_FREQM_VALUE (*(__I uint32_t*)0x40002C10U) /**< (FREQM) Count Value Register */
  53. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  54. /* ========== Instance Parameter definitions for FREQM peripheral ========== */
  55. #define FREQM_GCLK_ID_MSR 4 /* Index of measure generic clock */
  56. #define FREQM_GCLK_ID_REF 5 /* Index of reference generic clock */
  57. #define FREQM_INSTANCE_ID 11
  58. #endif /* _SAML11_FREQM_INSTANCE_ */