oscctrl.h 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for OSCCTRL
  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_OSCCTRL_INSTANCE_H_
  31. #define _SAML11_OSCCTRL_INSTANCE_H_
  32. /* ========== Register definition for OSCCTRL peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_OSCCTRL_EVCTRL (0x40001000) /**< (OSCCTRL) Event Control */
  35. #define REG_OSCCTRL_INTENCLR (0x40001004) /**< (OSCCTRL) Interrupt Enable Clear */
  36. #define REG_OSCCTRL_INTENSET (0x40001008) /**< (OSCCTRL) Interrupt Enable Set */
  37. #define REG_OSCCTRL_INTFLAG (0x4000100C) /**< (OSCCTRL) Interrupt Flag Status and Clear */
  38. #define REG_OSCCTRL_STATUS (0x40001010) /**< (OSCCTRL) Status */
  39. #define REG_OSCCTRL_XOSCCTRL (0x40001014) /**< (OSCCTRL) External Multipurpose Crystal Oscillator (XOSC) Control */
  40. #define REG_OSCCTRL_CFDPRESC (0x40001016) /**< (OSCCTRL) Clock Failure Detector Prescaler */
  41. #define REG_OSCCTRL_OSC16MCTRL (0x40001018) /**< (OSCCTRL) 16MHz Internal Oscillator (OSC16M) Control */
  42. #define REG_OSCCTRL_DFLLULPCTRL (0x4000101C) /**< (OSCCTRL) DFLLULP Control */
  43. #define REG_OSCCTRL_DFLLULPDITHER (0x4000101E) /**< (OSCCTRL) DFLLULP Dither Control */
  44. #define REG_OSCCTRL_DFLLULPRREQ (0x4000101F) /**< (OSCCTRL) DFLLULP Read Request */
  45. #define REG_OSCCTRL_DFLLULPDLY (0x40001020) /**< (OSCCTRL) DFLLULP Delay Value */
  46. #define REG_OSCCTRL_DFLLULPRATIO (0x40001024) /**< (OSCCTRL) DFLLULP Target Ratio */
  47. #define REG_OSCCTRL_DFLLULPSYNCBUSY (0x40001028) /**< (OSCCTRL) DFLLULP Synchronization Busy */
  48. #define REG_OSCCTRL_DPLLCTRLA (0x4000102C) /**< (OSCCTRL) DPLL Control A */
  49. #define REG_OSCCTRL_DPLLRATIO (0x40001030) /**< (OSCCTRL) DPLL Ratio Control */
  50. #define REG_OSCCTRL_DPLLCTRLB (0x40001034) /**< (OSCCTRL) DPLL Control B */
  51. #define REG_OSCCTRL_DPLLPRESC (0x40001038) /**< (OSCCTRL) DPLL Prescaler */
  52. #define REG_OSCCTRL_DPLLSYNCBUSY (0x4000103C) /**< (OSCCTRL) DPLL Synchronization Busy */
  53. #define REG_OSCCTRL_DPLLSTATUS (0x40001040) /**< (OSCCTRL) DPLL Status */
  54. #else
  55. #define REG_OSCCTRL_EVCTRL (*(__IO uint8_t*)0x40001000U) /**< (OSCCTRL) Event Control */
  56. #define REG_OSCCTRL_INTENCLR (*(__IO uint32_t*)0x40001004U) /**< (OSCCTRL) Interrupt Enable Clear */
  57. #define REG_OSCCTRL_INTENSET (*(__IO uint32_t*)0x40001008U) /**< (OSCCTRL) Interrupt Enable Set */
  58. #define REG_OSCCTRL_INTFLAG (*(__IO uint32_t*)0x4000100CU) /**< (OSCCTRL) Interrupt Flag Status and Clear */
  59. #define REG_OSCCTRL_STATUS (*(__I uint32_t*)0x40001010U) /**< (OSCCTRL) Status */
  60. #define REG_OSCCTRL_XOSCCTRL (*(__IO uint16_t*)0x40001014U) /**< (OSCCTRL) External Multipurpose Crystal Oscillator (XOSC) Control */
  61. #define REG_OSCCTRL_CFDPRESC (*(__IO uint8_t*)0x40001016U) /**< (OSCCTRL) Clock Failure Detector Prescaler */
  62. #define REG_OSCCTRL_OSC16MCTRL (*(__IO uint8_t*)0x40001018U) /**< (OSCCTRL) 16MHz Internal Oscillator (OSC16M) Control */
  63. #define REG_OSCCTRL_DFLLULPCTRL (*(__IO uint16_t*)0x4000101CU) /**< (OSCCTRL) DFLLULP Control */
  64. #define REG_OSCCTRL_DFLLULPDITHER (*(__IO uint8_t*)0x4000101EU) /**< (OSCCTRL) DFLLULP Dither Control */
  65. #define REG_OSCCTRL_DFLLULPRREQ (*(__IO uint8_t*)0x4000101FU) /**< (OSCCTRL) DFLLULP Read Request */
  66. #define REG_OSCCTRL_DFLLULPDLY (*(__IO uint32_t*)0x40001020U) /**< (OSCCTRL) DFLLULP Delay Value */
  67. #define REG_OSCCTRL_DFLLULPRATIO (*(__IO uint32_t*)0x40001024U) /**< (OSCCTRL) DFLLULP Target Ratio */
  68. #define REG_OSCCTRL_DFLLULPSYNCBUSY (*(__I uint32_t*)0x40001028U) /**< (OSCCTRL) DFLLULP Synchronization Busy */
  69. #define REG_OSCCTRL_DPLLCTRLA (*(__IO uint8_t*)0x4000102CU) /**< (OSCCTRL) DPLL Control A */
  70. #define REG_OSCCTRL_DPLLRATIO (*(__IO uint32_t*)0x40001030U) /**< (OSCCTRL) DPLL Ratio Control */
  71. #define REG_OSCCTRL_DPLLCTRLB (*(__IO uint32_t*)0x40001034U) /**< (OSCCTRL) DPLL Control B */
  72. #define REG_OSCCTRL_DPLLPRESC (*(__IO uint8_t*)0x40001038U) /**< (OSCCTRL) DPLL Prescaler */
  73. #define REG_OSCCTRL_DPLLSYNCBUSY (*(__I uint8_t*)0x4000103CU) /**< (OSCCTRL) DPLL Synchronization Busy */
  74. #define REG_OSCCTRL_DPLLSTATUS (*(__I uint8_t*)0x40001040U) /**< (OSCCTRL) DPLL Status */
  75. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  76. /* ========== Instance Parameter definitions for OSCCTRL peripheral ========== */
  77. #define OSCCTRL_GCLK_ID_DFLLULP 2 /* Index of Generic Clock for DFLLULP */
  78. #define OSCCTRL_GCLK_ID_DPLL 0 /* Index of Generic Clock for DPLL */
  79. #define OSCCTRL_GCLK_ID_DPLL32K 1 /* Index of Generic Clock for DPLL 32K */
  80. #define OSCCTRL_CFD_VERSION 0x112
  81. #define OSCCTRL_DFLLULP_VERSION 0x100
  82. #define OSCCTRL_FDPLL_VERSION 0x213
  83. #define OSCCTRL_OSC16M_VERSION 0x102
  84. #define OSCCTRL_XOSC_VERSION 0x210
  85. #define OSCCTRL_INSTANCE_ID 4
  86. #endif /* _SAML11_OSCCTRL_INSTANCE_ */