pm.h 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531
  1. /**
  2. * \file
  3. *
  4. * \brief Component description for PM
  5. *
  6. * Copyright (c) 2018 Microchip Technology Inc.
  7. *
  8. * \asf_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"); you may
  15. * not use this file except in compliance with the License.
  16. * You may obtain a copy of the Licence 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, WITHOUT
  22. * 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. * \asf_license_stop
  27. *
  28. */
  29. #ifndef _SAMD11_PM_COMPONENT_
  30. #define _SAMD11_PM_COMPONENT_
  31. /* ========================================================================== */
  32. /** SOFTWARE API DEFINITION FOR PM */
  33. /* ========================================================================== */
  34. /** \addtogroup SAMD11_PM Power Manager */
  35. /*@{*/
  36. #define PM_U2206
  37. #define REV_PM 0x211
  38. /* -------- PM_CTRL : (PM Offset: 0x00) (R/W 8) Control -------- */
  39. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  40. typedef union {
  41. struct {
  42. uint8_t :2; /*!< bit: 0.. 1 Reserved */
  43. uint8_t CFDEN:1; /*!< bit: 2 Clock Failure Detector Enable */
  44. uint8_t :1; /*!< bit: 3 Reserved */
  45. uint8_t BKUPCLK:1; /*!< bit: 4 Backup Clock Select */
  46. uint8_t :3; /*!< bit: 5.. 7 Reserved */
  47. } bit; /*!< Structure used for bit access */
  48. uint8_t reg; /*!< Type used for register access */
  49. } PM_CTRL_Type;
  50. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  51. #define PM_CTRL_OFFSET 0x00 /**< \brief (PM_CTRL offset) Control */
  52. #define PM_CTRL_RESETVALUE _U_(0x00) /**< \brief (PM_CTRL reset_value) Control */
  53. #define PM_CTRL_CFDEN_Pos 2 /**< \brief (PM_CTRL) Clock Failure Detector Enable */
  54. #define PM_CTRL_CFDEN (_U_(0x1) << PM_CTRL_CFDEN_Pos)
  55. #define PM_CTRL_BKUPCLK_Pos 4 /**< \brief (PM_CTRL) Backup Clock Select */
  56. #define PM_CTRL_BKUPCLK (_U_(0x1) << PM_CTRL_BKUPCLK_Pos)
  57. #define PM_CTRL_MASK _U_(0x14) /**< \brief (PM_CTRL) MASK Register */
  58. /* -------- PM_SLEEP : (PM Offset: 0x01) (R/W 8) Sleep Mode -------- */
  59. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  60. typedef union {
  61. struct {
  62. uint8_t IDLE:2; /*!< bit: 0.. 1 Idle Mode Configuration */
  63. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  64. } bit; /*!< Structure used for bit access */
  65. uint8_t reg; /*!< Type used for register access */
  66. } PM_SLEEP_Type;
  67. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  68. #define PM_SLEEP_OFFSET 0x01 /**< \brief (PM_SLEEP offset) Sleep Mode */
  69. #define PM_SLEEP_RESETVALUE _U_(0x00) /**< \brief (PM_SLEEP reset_value) Sleep Mode */
  70. #define PM_SLEEP_IDLE_Pos 0 /**< \brief (PM_SLEEP) Idle Mode Configuration */
  71. #define PM_SLEEP_IDLE_Msk (_U_(0x3) << PM_SLEEP_IDLE_Pos)
  72. #define PM_SLEEP_IDLE(value) (PM_SLEEP_IDLE_Msk & ((value) << PM_SLEEP_IDLE_Pos))
  73. #define PM_SLEEP_IDLE_CPU_Val _U_(0x0) /**< \brief (PM_SLEEP) The CPU clock domain is stopped */
  74. #define PM_SLEEP_IDLE_AHB_Val _U_(0x1) /**< \brief (PM_SLEEP) The CPU and AHB clock domains are stopped */
  75. #define PM_SLEEP_IDLE_APB_Val _U_(0x2) /**< \brief (PM_SLEEP) The CPU, AHB and APB clock domains are stopped */
  76. #define PM_SLEEP_IDLE_CPU (PM_SLEEP_IDLE_CPU_Val << PM_SLEEP_IDLE_Pos)
  77. #define PM_SLEEP_IDLE_AHB (PM_SLEEP_IDLE_AHB_Val << PM_SLEEP_IDLE_Pos)
  78. #define PM_SLEEP_IDLE_APB (PM_SLEEP_IDLE_APB_Val << PM_SLEEP_IDLE_Pos)
  79. #define PM_SLEEP_MASK _U_(0x03) /**< \brief (PM_SLEEP) MASK Register */
  80. /* -------- PM_EXTCTRL : (PM Offset: 0x02) (R/W 8) External Reset Controller -------- */
  81. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  82. typedef union {
  83. struct {
  84. uint8_t SETDIS:1; /*!< bit: 0 External Reset Disable */
  85. uint8_t :7; /*!< bit: 1.. 7 Reserved */
  86. } bit; /*!< Structure used for bit access */
  87. uint8_t reg; /*!< Type used for register access */
  88. } PM_EXTCTRL_Type;
  89. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  90. #define PM_EXTCTRL_OFFSET 0x02 /**< \brief (PM_EXTCTRL offset) External Reset Controller */
  91. #define PM_EXTCTRL_RESETVALUE _U_(0x00) /**< \brief (PM_EXTCTRL reset_value) External Reset Controller */
  92. #define PM_EXTCTRL_SETDIS_Pos 0 /**< \brief (PM_EXTCTRL) External Reset Disable */
  93. #define PM_EXTCTRL_SETDIS (_U_(0x1) << PM_EXTCTRL_SETDIS_Pos)
  94. #define PM_EXTCTRL_MASK _U_(0x01) /**< \brief (PM_EXTCTRL) MASK Register */
  95. /* -------- PM_CPUSEL : (PM Offset: 0x08) (R/W 8) CPU Clock Select -------- */
  96. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  97. typedef union {
  98. struct {
  99. uint8_t CPUDIV:3; /*!< bit: 0.. 2 CPU Prescaler Selection */
  100. uint8_t :5; /*!< bit: 3.. 7 Reserved */
  101. } bit; /*!< Structure used for bit access */
  102. uint8_t reg; /*!< Type used for register access */
  103. } PM_CPUSEL_Type;
  104. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  105. #define PM_CPUSEL_OFFSET 0x08 /**< \brief (PM_CPUSEL offset) CPU Clock Select */
  106. #define PM_CPUSEL_RESETVALUE _U_(0x00) /**< \brief (PM_CPUSEL reset_value) CPU Clock Select */
  107. #define PM_CPUSEL_CPUDIV_Pos 0 /**< \brief (PM_CPUSEL) CPU Prescaler Selection */
  108. #define PM_CPUSEL_CPUDIV_Msk (_U_(0x7) << PM_CPUSEL_CPUDIV_Pos)
  109. #define PM_CPUSEL_CPUDIV(value) (PM_CPUSEL_CPUDIV_Msk & ((value) << PM_CPUSEL_CPUDIV_Pos))
  110. #define PM_CPUSEL_CPUDIV_DIV1_Val _U_(0x0) /**< \brief (PM_CPUSEL) Divide by 1 */
  111. #define PM_CPUSEL_CPUDIV_DIV2_Val _U_(0x1) /**< \brief (PM_CPUSEL) Divide by 2 */
  112. #define PM_CPUSEL_CPUDIV_DIV4_Val _U_(0x2) /**< \brief (PM_CPUSEL) Divide by 4 */
  113. #define PM_CPUSEL_CPUDIV_DIV8_Val _U_(0x3) /**< \brief (PM_CPUSEL) Divide by 8 */
  114. #define PM_CPUSEL_CPUDIV_DIV16_Val _U_(0x4) /**< \brief (PM_CPUSEL) Divide by 16 */
  115. #define PM_CPUSEL_CPUDIV_DIV32_Val _U_(0x5) /**< \brief (PM_CPUSEL) Divide by 32 */
  116. #define PM_CPUSEL_CPUDIV_DIV64_Val _U_(0x6) /**< \brief (PM_CPUSEL) Divide by 64 */
  117. #define PM_CPUSEL_CPUDIV_DIV128_Val _U_(0x7) /**< \brief (PM_CPUSEL) Divide by 128 */
  118. #define PM_CPUSEL_CPUDIV_DIV1 (PM_CPUSEL_CPUDIV_DIV1_Val << PM_CPUSEL_CPUDIV_Pos)
  119. #define PM_CPUSEL_CPUDIV_DIV2 (PM_CPUSEL_CPUDIV_DIV2_Val << PM_CPUSEL_CPUDIV_Pos)
  120. #define PM_CPUSEL_CPUDIV_DIV4 (PM_CPUSEL_CPUDIV_DIV4_Val << PM_CPUSEL_CPUDIV_Pos)
  121. #define PM_CPUSEL_CPUDIV_DIV8 (PM_CPUSEL_CPUDIV_DIV8_Val << PM_CPUSEL_CPUDIV_Pos)
  122. #define PM_CPUSEL_CPUDIV_DIV16 (PM_CPUSEL_CPUDIV_DIV16_Val << PM_CPUSEL_CPUDIV_Pos)
  123. #define PM_CPUSEL_CPUDIV_DIV32 (PM_CPUSEL_CPUDIV_DIV32_Val << PM_CPUSEL_CPUDIV_Pos)
  124. #define PM_CPUSEL_CPUDIV_DIV64 (PM_CPUSEL_CPUDIV_DIV64_Val << PM_CPUSEL_CPUDIV_Pos)
  125. #define PM_CPUSEL_CPUDIV_DIV128 (PM_CPUSEL_CPUDIV_DIV128_Val << PM_CPUSEL_CPUDIV_Pos)
  126. #define PM_CPUSEL_MASK _U_(0x07) /**< \brief (PM_CPUSEL) MASK Register */
  127. /* -------- PM_APBASEL : (PM Offset: 0x09) (R/W 8) APBA Clock Select -------- */
  128. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  129. typedef union {
  130. struct {
  131. uint8_t APBADIV:3; /*!< bit: 0.. 2 APBA Prescaler Selection */
  132. uint8_t :5; /*!< bit: 3.. 7 Reserved */
  133. } bit; /*!< Structure used for bit access */
  134. uint8_t reg; /*!< Type used for register access */
  135. } PM_APBASEL_Type;
  136. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  137. #define PM_APBASEL_OFFSET 0x09 /**< \brief (PM_APBASEL offset) APBA Clock Select */
  138. #define PM_APBASEL_RESETVALUE _U_(0x00) /**< \brief (PM_APBASEL reset_value) APBA Clock Select */
  139. #define PM_APBASEL_APBADIV_Pos 0 /**< \brief (PM_APBASEL) APBA Prescaler Selection */
  140. #define PM_APBASEL_APBADIV_Msk (_U_(0x7) << PM_APBASEL_APBADIV_Pos)
  141. #define PM_APBASEL_APBADIV(value) (PM_APBASEL_APBADIV_Msk & ((value) << PM_APBASEL_APBADIV_Pos))
  142. #define PM_APBASEL_APBADIV_DIV1_Val _U_(0x0) /**< \brief (PM_APBASEL) Divide by 1 */
  143. #define PM_APBASEL_APBADIV_DIV2_Val _U_(0x1) /**< \brief (PM_APBASEL) Divide by 2 */
  144. #define PM_APBASEL_APBADIV_DIV4_Val _U_(0x2) /**< \brief (PM_APBASEL) Divide by 4 */
  145. #define PM_APBASEL_APBADIV_DIV8_Val _U_(0x3) /**< \brief (PM_APBASEL) Divide by 8 */
  146. #define PM_APBASEL_APBADIV_DIV16_Val _U_(0x4) /**< \brief (PM_APBASEL) Divide by 16 */
  147. #define PM_APBASEL_APBADIV_DIV32_Val _U_(0x5) /**< \brief (PM_APBASEL) Divide by 32 */
  148. #define PM_APBASEL_APBADIV_DIV64_Val _U_(0x6) /**< \brief (PM_APBASEL) Divide by 64 */
  149. #define PM_APBASEL_APBADIV_DIV128_Val _U_(0x7) /**< \brief (PM_APBASEL) Divide by 128 */
  150. #define PM_APBASEL_APBADIV_DIV1 (PM_APBASEL_APBADIV_DIV1_Val << PM_APBASEL_APBADIV_Pos)
  151. #define PM_APBASEL_APBADIV_DIV2 (PM_APBASEL_APBADIV_DIV2_Val << PM_APBASEL_APBADIV_Pos)
  152. #define PM_APBASEL_APBADIV_DIV4 (PM_APBASEL_APBADIV_DIV4_Val << PM_APBASEL_APBADIV_Pos)
  153. #define PM_APBASEL_APBADIV_DIV8 (PM_APBASEL_APBADIV_DIV8_Val << PM_APBASEL_APBADIV_Pos)
  154. #define PM_APBASEL_APBADIV_DIV16 (PM_APBASEL_APBADIV_DIV16_Val << PM_APBASEL_APBADIV_Pos)
  155. #define PM_APBASEL_APBADIV_DIV32 (PM_APBASEL_APBADIV_DIV32_Val << PM_APBASEL_APBADIV_Pos)
  156. #define PM_APBASEL_APBADIV_DIV64 (PM_APBASEL_APBADIV_DIV64_Val << PM_APBASEL_APBADIV_Pos)
  157. #define PM_APBASEL_APBADIV_DIV128 (PM_APBASEL_APBADIV_DIV128_Val << PM_APBASEL_APBADIV_Pos)
  158. #define PM_APBASEL_MASK _U_(0x07) /**< \brief (PM_APBASEL) MASK Register */
  159. /* -------- PM_APBBSEL : (PM Offset: 0x0A) (R/W 8) APBB Clock Select -------- */
  160. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  161. typedef union {
  162. struct {
  163. uint8_t APBBDIV:3; /*!< bit: 0.. 2 APBB Prescaler Selection */
  164. uint8_t :5; /*!< bit: 3.. 7 Reserved */
  165. } bit; /*!< Structure used for bit access */
  166. uint8_t reg; /*!< Type used for register access */
  167. } PM_APBBSEL_Type;
  168. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  169. #define PM_APBBSEL_OFFSET 0x0A /**< \brief (PM_APBBSEL offset) APBB Clock Select */
  170. #define PM_APBBSEL_RESETVALUE _U_(0x00) /**< \brief (PM_APBBSEL reset_value) APBB Clock Select */
  171. #define PM_APBBSEL_APBBDIV_Pos 0 /**< \brief (PM_APBBSEL) APBB Prescaler Selection */
  172. #define PM_APBBSEL_APBBDIV_Msk (_U_(0x7) << PM_APBBSEL_APBBDIV_Pos)
  173. #define PM_APBBSEL_APBBDIV(value) (PM_APBBSEL_APBBDIV_Msk & ((value) << PM_APBBSEL_APBBDIV_Pos))
  174. #define PM_APBBSEL_APBBDIV_DIV1_Val _U_(0x0) /**< \brief (PM_APBBSEL) Divide by 1 */
  175. #define PM_APBBSEL_APBBDIV_DIV2_Val _U_(0x1) /**< \brief (PM_APBBSEL) Divide by 2 */
  176. #define PM_APBBSEL_APBBDIV_DIV4_Val _U_(0x2) /**< \brief (PM_APBBSEL) Divide by 4 */
  177. #define PM_APBBSEL_APBBDIV_DIV8_Val _U_(0x3) /**< \brief (PM_APBBSEL) Divide by 8 */
  178. #define PM_APBBSEL_APBBDIV_DIV16_Val _U_(0x4) /**< \brief (PM_APBBSEL) Divide by 16 */
  179. #define PM_APBBSEL_APBBDIV_DIV32_Val _U_(0x5) /**< \brief (PM_APBBSEL) Divide by 32 */
  180. #define PM_APBBSEL_APBBDIV_DIV64_Val _U_(0x6) /**< \brief (PM_APBBSEL) Divide by 64 */
  181. #define PM_APBBSEL_APBBDIV_DIV128_Val _U_(0x7) /**< \brief (PM_APBBSEL) Divide by 128 */
  182. #define PM_APBBSEL_APBBDIV_DIV1 (PM_APBBSEL_APBBDIV_DIV1_Val << PM_APBBSEL_APBBDIV_Pos)
  183. #define PM_APBBSEL_APBBDIV_DIV2 (PM_APBBSEL_APBBDIV_DIV2_Val << PM_APBBSEL_APBBDIV_Pos)
  184. #define PM_APBBSEL_APBBDIV_DIV4 (PM_APBBSEL_APBBDIV_DIV4_Val << PM_APBBSEL_APBBDIV_Pos)
  185. #define PM_APBBSEL_APBBDIV_DIV8 (PM_APBBSEL_APBBDIV_DIV8_Val << PM_APBBSEL_APBBDIV_Pos)
  186. #define PM_APBBSEL_APBBDIV_DIV16 (PM_APBBSEL_APBBDIV_DIV16_Val << PM_APBBSEL_APBBDIV_Pos)
  187. #define PM_APBBSEL_APBBDIV_DIV32 (PM_APBBSEL_APBBDIV_DIV32_Val << PM_APBBSEL_APBBDIV_Pos)
  188. #define PM_APBBSEL_APBBDIV_DIV64 (PM_APBBSEL_APBBDIV_DIV64_Val << PM_APBBSEL_APBBDIV_Pos)
  189. #define PM_APBBSEL_APBBDIV_DIV128 (PM_APBBSEL_APBBDIV_DIV128_Val << PM_APBBSEL_APBBDIV_Pos)
  190. #define PM_APBBSEL_MASK _U_(0x07) /**< \brief (PM_APBBSEL) MASK Register */
  191. /* -------- PM_APBCSEL : (PM Offset: 0x0B) (R/W 8) APBC Clock Select -------- */
  192. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  193. typedef union {
  194. struct {
  195. uint8_t APBCDIV:3; /*!< bit: 0.. 2 APBC Prescaler Selection */
  196. uint8_t :5; /*!< bit: 3.. 7 Reserved */
  197. } bit; /*!< Structure used for bit access */
  198. uint8_t reg; /*!< Type used for register access */
  199. } PM_APBCSEL_Type;
  200. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  201. #define PM_APBCSEL_OFFSET 0x0B /**< \brief (PM_APBCSEL offset) APBC Clock Select */
  202. #define PM_APBCSEL_RESETVALUE _U_(0x00) /**< \brief (PM_APBCSEL reset_value) APBC Clock Select */
  203. #define PM_APBCSEL_APBCDIV_Pos 0 /**< \brief (PM_APBCSEL) APBC Prescaler Selection */
  204. #define PM_APBCSEL_APBCDIV_Msk (_U_(0x7) << PM_APBCSEL_APBCDIV_Pos)
  205. #define PM_APBCSEL_APBCDIV(value) (PM_APBCSEL_APBCDIV_Msk & ((value) << PM_APBCSEL_APBCDIV_Pos))
  206. #define PM_APBCSEL_APBCDIV_DIV1_Val _U_(0x0) /**< \brief (PM_APBCSEL) Divide by 1 */
  207. #define PM_APBCSEL_APBCDIV_DIV2_Val _U_(0x1) /**< \brief (PM_APBCSEL) Divide by 2 */
  208. #define PM_APBCSEL_APBCDIV_DIV4_Val _U_(0x2) /**< \brief (PM_APBCSEL) Divide by 4 */
  209. #define PM_APBCSEL_APBCDIV_DIV8_Val _U_(0x3) /**< \brief (PM_APBCSEL) Divide by 8 */
  210. #define PM_APBCSEL_APBCDIV_DIV16_Val _U_(0x4) /**< \brief (PM_APBCSEL) Divide by 16 */
  211. #define PM_APBCSEL_APBCDIV_DIV32_Val _U_(0x5) /**< \brief (PM_APBCSEL) Divide by 32 */
  212. #define PM_APBCSEL_APBCDIV_DIV64_Val _U_(0x6) /**< \brief (PM_APBCSEL) Divide by 64 */
  213. #define PM_APBCSEL_APBCDIV_DIV128_Val _U_(0x7) /**< \brief (PM_APBCSEL) Divide by 128 */
  214. #define PM_APBCSEL_APBCDIV_DIV1 (PM_APBCSEL_APBCDIV_DIV1_Val << PM_APBCSEL_APBCDIV_Pos)
  215. #define PM_APBCSEL_APBCDIV_DIV2 (PM_APBCSEL_APBCDIV_DIV2_Val << PM_APBCSEL_APBCDIV_Pos)
  216. #define PM_APBCSEL_APBCDIV_DIV4 (PM_APBCSEL_APBCDIV_DIV4_Val << PM_APBCSEL_APBCDIV_Pos)
  217. #define PM_APBCSEL_APBCDIV_DIV8 (PM_APBCSEL_APBCDIV_DIV8_Val << PM_APBCSEL_APBCDIV_Pos)
  218. #define PM_APBCSEL_APBCDIV_DIV16 (PM_APBCSEL_APBCDIV_DIV16_Val << PM_APBCSEL_APBCDIV_Pos)
  219. #define PM_APBCSEL_APBCDIV_DIV32 (PM_APBCSEL_APBCDIV_DIV32_Val << PM_APBCSEL_APBCDIV_Pos)
  220. #define PM_APBCSEL_APBCDIV_DIV64 (PM_APBCSEL_APBCDIV_DIV64_Val << PM_APBCSEL_APBCDIV_Pos)
  221. #define PM_APBCSEL_APBCDIV_DIV128 (PM_APBCSEL_APBCDIV_DIV128_Val << PM_APBCSEL_APBCDIV_Pos)
  222. #define PM_APBCSEL_MASK _U_(0x07) /**< \brief (PM_APBCSEL) MASK Register */
  223. /* -------- PM_AHBMASK : (PM Offset: 0x14) (R/W 32) AHB Mask -------- */
  224. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  225. typedef union {
  226. struct {
  227. uint32_t HPB0_:1; /*!< bit: 0 HPB0 AHB Clock Mask */
  228. uint32_t HPB1_:1; /*!< bit: 1 HPB1 AHB Clock Mask */
  229. uint32_t HPB2_:1; /*!< bit: 2 HPB2 AHB Clock Mask */
  230. uint32_t DSU_:1; /*!< bit: 3 DSU AHB Clock Mask */
  231. uint32_t NVMCTRL_:1; /*!< bit: 4 NVMCTRL AHB Clock Mask */
  232. uint32_t DMAC_:1; /*!< bit: 5 DMAC AHB Clock Mask */
  233. uint32_t USB_:1; /*!< bit: 6 USB AHB Clock Mask */
  234. uint32_t :25; /*!< bit: 7..31 Reserved */
  235. } bit; /*!< Structure used for bit access */
  236. uint32_t reg; /*!< Type used for register access */
  237. } PM_AHBMASK_Type;
  238. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  239. #define PM_AHBMASK_OFFSET 0x14 /**< \brief (PM_AHBMASK offset) AHB Mask */
  240. #define PM_AHBMASK_RESETVALUE _U_(0x0000007F) /**< \brief (PM_AHBMASK reset_value) AHB Mask */
  241. #define PM_AHBMASK_HPB0_Pos 0 /**< \brief (PM_AHBMASK) HPB0 AHB Clock Mask */
  242. #define PM_AHBMASK_HPB0 (_U_(0x1) << PM_AHBMASK_HPB0_Pos)
  243. #define PM_AHBMASK_HPB1_Pos 1 /**< \brief (PM_AHBMASK) HPB1 AHB Clock Mask */
  244. #define PM_AHBMASK_HPB1 (_U_(0x1) << PM_AHBMASK_HPB1_Pos)
  245. #define PM_AHBMASK_HPB2_Pos 2 /**< \brief (PM_AHBMASK) HPB2 AHB Clock Mask */
  246. #define PM_AHBMASK_HPB2 (_U_(0x1) << PM_AHBMASK_HPB2_Pos)
  247. #define PM_AHBMASK_DSU_Pos 3 /**< \brief (PM_AHBMASK) DSU AHB Clock Mask */
  248. #define PM_AHBMASK_DSU (_U_(0x1) << PM_AHBMASK_DSU_Pos)
  249. #define PM_AHBMASK_NVMCTRL_Pos 4 /**< \brief (PM_AHBMASK) NVMCTRL AHB Clock Mask */
  250. #define PM_AHBMASK_NVMCTRL (_U_(0x1) << PM_AHBMASK_NVMCTRL_Pos)
  251. #define PM_AHBMASK_DMAC_Pos 5 /**< \brief (PM_AHBMASK) DMAC AHB Clock Mask */
  252. #define PM_AHBMASK_DMAC (_U_(0x1) << PM_AHBMASK_DMAC_Pos)
  253. #define PM_AHBMASK_USB_Pos 6 /**< \brief (PM_AHBMASK) USB AHB Clock Mask */
  254. #define PM_AHBMASK_USB (_U_(0x1) << PM_AHBMASK_USB_Pos)
  255. #define PM_AHBMASK_MASK _U_(0x0000007F) /**< \brief (PM_AHBMASK) MASK Register */
  256. /* -------- PM_APBAMASK : (PM Offset: 0x18) (R/W 32) APBA Mask -------- */
  257. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  258. typedef union {
  259. struct {
  260. uint32_t PAC0_:1; /*!< bit: 0 PAC0 APB Clock Enable */
  261. uint32_t PM_:1; /*!< bit: 1 PM APB Clock Enable */
  262. uint32_t SYSCTRL_:1; /*!< bit: 2 SYSCTRL APB Clock Enable */
  263. uint32_t GCLK_:1; /*!< bit: 3 GCLK APB Clock Enable */
  264. uint32_t WDT_:1; /*!< bit: 4 WDT APB Clock Enable */
  265. uint32_t RTC_:1; /*!< bit: 5 RTC APB Clock Enable */
  266. uint32_t EIC_:1; /*!< bit: 6 EIC APB Clock Enable */
  267. uint32_t :25; /*!< bit: 7..31 Reserved */
  268. } bit; /*!< Structure used for bit access */
  269. uint32_t reg; /*!< Type used for register access */
  270. } PM_APBAMASK_Type;
  271. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  272. #define PM_APBAMASK_OFFSET 0x18 /**< \brief (PM_APBAMASK offset) APBA Mask */
  273. #define PM_APBAMASK_RESETVALUE _U_(0x0000007F) /**< \brief (PM_APBAMASK reset_value) APBA Mask */
  274. #define PM_APBAMASK_PAC0_Pos 0 /**< \brief (PM_APBAMASK) PAC0 APB Clock Enable */
  275. #define PM_APBAMASK_PAC0 (_U_(0x1) << PM_APBAMASK_PAC0_Pos)
  276. #define PM_APBAMASK_PM_Pos 1 /**< \brief (PM_APBAMASK) PM APB Clock Enable */
  277. #define PM_APBAMASK_PM (_U_(0x1) << PM_APBAMASK_PM_Pos)
  278. #define PM_APBAMASK_SYSCTRL_Pos 2 /**< \brief (PM_APBAMASK) SYSCTRL APB Clock Enable */
  279. #define PM_APBAMASK_SYSCTRL (_U_(0x1) << PM_APBAMASK_SYSCTRL_Pos)
  280. #define PM_APBAMASK_GCLK_Pos 3 /**< \brief (PM_APBAMASK) GCLK APB Clock Enable */
  281. #define PM_APBAMASK_GCLK (_U_(0x1) << PM_APBAMASK_GCLK_Pos)
  282. #define PM_APBAMASK_WDT_Pos 4 /**< \brief (PM_APBAMASK) WDT APB Clock Enable */
  283. #define PM_APBAMASK_WDT (_U_(0x1) << PM_APBAMASK_WDT_Pos)
  284. #define PM_APBAMASK_RTC_Pos 5 /**< \brief (PM_APBAMASK) RTC APB Clock Enable */
  285. #define PM_APBAMASK_RTC (_U_(0x1) << PM_APBAMASK_RTC_Pos)
  286. #define PM_APBAMASK_EIC_Pos 6 /**< \brief (PM_APBAMASK) EIC APB Clock Enable */
  287. #define PM_APBAMASK_EIC (_U_(0x1) << PM_APBAMASK_EIC_Pos)
  288. #define PM_APBAMASK_MASK _U_(0x0000007F) /**< \brief (PM_APBAMASK) MASK Register */
  289. /* -------- PM_APBBMASK : (PM Offset: 0x1C) (R/W 32) APBB Mask -------- */
  290. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  291. typedef union {
  292. struct {
  293. uint32_t PAC1_:1; /*!< bit: 0 PAC1 APB Clock Enable */
  294. uint32_t DSU_:1; /*!< bit: 1 DSU APB Clock Enable */
  295. uint32_t NVMCTRL_:1; /*!< bit: 2 NVMCTRL APB Clock Enable */
  296. uint32_t PORT_:1; /*!< bit: 3 PORT APB Clock Enable */
  297. uint32_t DMAC_:1; /*!< bit: 4 DMAC APB Clock Enable */
  298. uint32_t USB_:1; /*!< bit: 5 USB APB Clock Enable */
  299. uint32_t HMATRIX_:1; /*!< bit: 6 HMATRIX APB Clock Enable */
  300. uint32_t :25; /*!< bit: 7..31 Reserved */
  301. } bit; /*!< Structure used for bit access */
  302. uint32_t reg; /*!< Type used for register access */
  303. } PM_APBBMASK_Type;
  304. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  305. #define PM_APBBMASK_OFFSET 0x1C /**< \brief (PM_APBBMASK offset) APBB Mask */
  306. #define PM_APBBMASK_RESETVALUE _U_(0x0000007F) /**< \brief (PM_APBBMASK reset_value) APBB Mask */
  307. #define PM_APBBMASK_PAC1_Pos 0 /**< \brief (PM_APBBMASK) PAC1 APB Clock Enable */
  308. #define PM_APBBMASK_PAC1 (_U_(0x1) << PM_APBBMASK_PAC1_Pos)
  309. #define PM_APBBMASK_DSU_Pos 1 /**< \brief (PM_APBBMASK) DSU APB Clock Enable */
  310. #define PM_APBBMASK_DSU (_U_(0x1) << PM_APBBMASK_DSU_Pos)
  311. #define PM_APBBMASK_NVMCTRL_Pos 2 /**< \brief (PM_APBBMASK) NVMCTRL APB Clock Enable */
  312. #define PM_APBBMASK_NVMCTRL (_U_(0x1) << PM_APBBMASK_NVMCTRL_Pos)
  313. #define PM_APBBMASK_PORT_Pos 3 /**< \brief (PM_APBBMASK) PORT APB Clock Enable */
  314. #define PM_APBBMASK_PORT (_U_(0x1) << PM_APBBMASK_PORT_Pos)
  315. #define PM_APBBMASK_DMAC_Pos 4 /**< \brief (PM_APBBMASK) DMAC APB Clock Enable */
  316. #define PM_APBBMASK_DMAC (_U_(0x1) << PM_APBBMASK_DMAC_Pos)
  317. #define PM_APBBMASK_USB_Pos 5 /**< \brief (PM_APBBMASK) USB APB Clock Enable */
  318. #define PM_APBBMASK_USB (_U_(0x1) << PM_APBBMASK_USB_Pos)
  319. #define PM_APBBMASK_HMATRIX_Pos 6 /**< \brief (PM_APBBMASK) HMATRIX APB Clock Enable */
  320. #define PM_APBBMASK_HMATRIX (_U_(0x1) << PM_APBBMASK_HMATRIX_Pos)
  321. #define PM_APBBMASK_MASK _U_(0x0000007F) /**< \brief (PM_APBBMASK) MASK Register */
  322. /* -------- PM_APBCMASK : (PM Offset: 0x20) (R/W 32) APBC Mask -------- */
  323. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  324. typedef union {
  325. struct {
  326. uint32_t PAC2_:1; /*!< bit: 0 PAC2 APB Clock Enable */
  327. uint32_t EVSYS_:1; /*!< bit: 1 EVSYS APB Clock Enable */
  328. uint32_t SERCOM0_:1; /*!< bit: 2 SERCOM0 APB Clock Enable */
  329. uint32_t SERCOM1_:1; /*!< bit: 3 SERCOM1 APB Clock Enable */
  330. uint32_t SERCOM2_:1; /*!< bit: 4 SERCOM2 APB Clock Enable */
  331. uint32_t TCC0_:1; /*!< bit: 5 TCC0 APB Clock Enable */
  332. uint32_t TC1_:1; /*!< bit: 6 TC1 APB Clock Enable */
  333. uint32_t TC2_:1; /*!< bit: 7 TC2 APB Clock Enable */
  334. uint32_t ADC_:1; /*!< bit: 8 ADC APB Clock Enable */
  335. uint32_t AC_:1; /*!< bit: 9 AC APB Clock Enable */
  336. uint32_t DAC_:1; /*!< bit: 10 DAC APB Clock Enable */
  337. uint32_t PTC_:1; /*!< bit: 11 PTC APB Clock Enable */
  338. uint32_t :20; /*!< bit: 12..31 Reserved */
  339. } bit; /*!< Structure used for bit access */
  340. uint32_t reg; /*!< Type used for register access */
  341. } PM_APBCMASK_Type;
  342. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  343. #define PM_APBCMASK_OFFSET 0x20 /**< \brief (PM_APBCMASK offset) APBC Mask */
  344. #define PM_APBCMASK_RESETVALUE _U_(0x00000100) /**< \brief (PM_APBCMASK reset_value) APBC Mask */
  345. #define PM_APBCMASK_PAC2_Pos 0 /**< \brief (PM_APBCMASK) PAC2 APB Clock Enable */
  346. #define PM_APBCMASK_PAC2 (_U_(0x1) << PM_APBCMASK_PAC2_Pos)
  347. #define PM_APBCMASK_EVSYS_Pos 1 /**< \brief (PM_APBCMASK) EVSYS APB Clock Enable */
  348. #define PM_APBCMASK_EVSYS (_U_(0x1) << PM_APBCMASK_EVSYS_Pos)
  349. #define PM_APBCMASK_SERCOM0_Pos 2 /**< \brief (PM_APBCMASK) SERCOM0 APB Clock Enable */
  350. #define PM_APBCMASK_SERCOM0 (_U_(0x1) << PM_APBCMASK_SERCOM0_Pos)
  351. #define PM_APBCMASK_SERCOM1_Pos 3 /**< \brief (PM_APBCMASK) SERCOM1 APB Clock Enable */
  352. #define PM_APBCMASK_SERCOM1 (_U_(0x1) << PM_APBCMASK_SERCOM1_Pos)
  353. #define PM_APBCMASK_SERCOM2_Pos 4 /**< \brief (PM_APBCMASK) SERCOM2 APB Clock Enable */
  354. #define PM_APBCMASK_SERCOM2 (_U_(0x1) << PM_APBCMASK_SERCOM2_Pos)
  355. #define PM_APBCMASK_TCC0_Pos 5 /**< \brief (PM_APBCMASK) TCC0 APB Clock Enable */
  356. #define PM_APBCMASK_TCC0 (_U_(0x1) << PM_APBCMASK_TCC0_Pos)
  357. #define PM_APBCMASK_TC1_Pos 6 /**< \brief (PM_APBCMASK) TC1 APB Clock Enable */
  358. #define PM_APBCMASK_TC1 (_U_(0x1) << PM_APBCMASK_TC1_Pos)
  359. #define PM_APBCMASK_TC2_Pos 7 /**< \brief (PM_APBCMASK) TC2 APB Clock Enable */
  360. #define PM_APBCMASK_TC2 (_U_(0x1) << PM_APBCMASK_TC2_Pos)
  361. #define PM_APBCMASK_ADC_Pos 8 /**< \brief (PM_APBCMASK) ADC APB Clock Enable */
  362. #define PM_APBCMASK_ADC (_U_(0x1) << PM_APBCMASK_ADC_Pos)
  363. #define PM_APBCMASK_AC_Pos 9 /**< \brief (PM_APBCMASK) AC APB Clock Enable */
  364. #define PM_APBCMASK_AC (_U_(0x1) << PM_APBCMASK_AC_Pos)
  365. #define PM_APBCMASK_DAC_Pos 10 /**< \brief (PM_APBCMASK) DAC APB Clock Enable */
  366. #define PM_APBCMASK_DAC (_U_(0x1) << PM_APBCMASK_DAC_Pos)
  367. #define PM_APBCMASK_PTC_Pos 11 /**< \brief (PM_APBCMASK) PTC APB Clock Enable */
  368. #define PM_APBCMASK_PTC (_U_(0x1) << PM_APBCMASK_PTC_Pos)
  369. #define PM_APBCMASK_MASK _U_(0x00000FFF) /**< \brief (PM_APBCMASK) MASK Register */
  370. /* -------- PM_INTENCLR : (PM Offset: 0x34) (R/W 8) Interrupt Enable Clear -------- */
  371. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  372. typedef union {
  373. struct {
  374. uint8_t CKRDY:1; /*!< bit: 0 Clock Ready Interrupt Enable */
  375. uint8_t CFD:1; /*!< bit: 1 Clock Failure Detector Interrupt Enable */
  376. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  377. } bit; /*!< Structure used for bit access */
  378. uint8_t reg; /*!< Type used for register access */
  379. } PM_INTENCLR_Type;
  380. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  381. #define PM_INTENCLR_OFFSET 0x34 /**< \brief (PM_INTENCLR offset) Interrupt Enable Clear */
  382. #define PM_INTENCLR_RESETVALUE _U_(0x00) /**< \brief (PM_INTENCLR reset_value) Interrupt Enable Clear */
  383. #define PM_INTENCLR_CKRDY_Pos 0 /**< \brief (PM_INTENCLR) Clock Ready Interrupt Enable */
  384. #define PM_INTENCLR_CKRDY (_U_(0x1) << PM_INTENCLR_CKRDY_Pos)
  385. #define PM_INTENCLR_CFD_Pos 1 /**< \brief (PM_INTENCLR) Clock Failure Detector Interrupt Enable */
  386. #define PM_INTENCLR_CFD (_U_(0x1) << PM_INTENCLR_CFD_Pos)
  387. #define PM_INTENCLR_MASK _U_(0x03) /**< \brief (PM_INTENCLR) MASK Register */
  388. /* -------- PM_INTENSET : (PM Offset: 0x35) (R/W 8) Interrupt Enable Set -------- */
  389. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  390. typedef union {
  391. struct {
  392. uint8_t CKRDY:1; /*!< bit: 0 Clock Ready Interrupt Enable */
  393. uint8_t CFD:1; /*!< bit: 1 Clock Failure Detector Interrupt Enable */
  394. uint8_t :6; /*!< bit: 2.. 7 Reserved */
  395. } bit; /*!< Structure used for bit access */
  396. uint8_t reg; /*!< Type used for register access */
  397. } PM_INTENSET_Type;
  398. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  399. #define PM_INTENSET_OFFSET 0x35 /**< \brief (PM_INTENSET offset) Interrupt Enable Set */
  400. #define PM_INTENSET_RESETVALUE _U_(0x00) /**< \brief (PM_INTENSET reset_value) Interrupt Enable Set */
  401. #define PM_INTENSET_CKRDY_Pos 0 /**< \brief (PM_INTENSET) Clock Ready Interrupt Enable */
  402. #define PM_INTENSET_CKRDY (_U_(0x1) << PM_INTENSET_CKRDY_Pos)
  403. #define PM_INTENSET_CFD_Pos 1 /**< \brief (PM_INTENSET) Clock Failure Detector Interrupt Enable */
  404. #define PM_INTENSET_CFD (_U_(0x1) << PM_INTENSET_CFD_Pos)
  405. #define PM_INTENSET_MASK _U_(0x03) /**< \brief (PM_INTENSET) MASK Register */
  406. /* -------- PM_INTFLAG : (PM Offset: 0x36) (R/W 8) Interrupt Flag Status and Clear -------- */
  407. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  408. typedef union { // __I to avoid read-modify-write on write-to-clear register
  409. struct {
  410. __I uint8_t CKRDY:1; /*!< bit: 0 Clock Ready */
  411. __I uint8_t CFD:1; /*!< bit: 1 Clock Failure Detector */
  412. __I uint8_t :6; /*!< bit: 2.. 7 Reserved */
  413. } bit; /*!< Structure used for bit access */
  414. uint8_t reg; /*!< Type used for register access */
  415. } PM_INTFLAG_Type;
  416. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  417. #define PM_INTFLAG_OFFSET 0x36 /**< \brief (PM_INTFLAG offset) Interrupt Flag Status and Clear */
  418. #define PM_INTFLAG_RESETVALUE _U_(0x00) /**< \brief (PM_INTFLAG reset_value) Interrupt Flag Status and Clear */
  419. #define PM_INTFLAG_CKRDY_Pos 0 /**< \brief (PM_INTFLAG) Clock Ready */
  420. #define PM_INTFLAG_CKRDY (_U_(0x1) << PM_INTFLAG_CKRDY_Pos)
  421. #define PM_INTFLAG_CFD_Pos 1 /**< \brief (PM_INTFLAG) Clock Failure Detector */
  422. #define PM_INTFLAG_CFD (_U_(0x1) << PM_INTFLAG_CFD_Pos)
  423. #define PM_INTFLAG_MASK _U_(0x03) /**< \brief (PM_INTFLAG) MASK Register */
  424. /* -------- PM_RCAUSE : (PM Offset: 0x38) (R/ 8) Reset Cause -------- */
  425. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  426. typedef union {
  427. struct {
  428. uint8_t POR:1; /*!< bit: 0 Power On Reset */
  429. uint8_t BOD12:1; /*!< bit: 1 Brown Out 12 Detector Reset */
  430. uint8_t BOD33:1; /*!< bit: 2 Brown Out 33 Detector Reset */
  431. uint8_t :1; /*!< bit: 3 Reserved */
  432. uint8_t EXT:1; /*!< bit: 4 External Reset */
  433. uint8_t WDT:1; /*!< bit: 5 Watchdog Reset */
  434. uint8_t SYST:1; /*!< bit: 6 System Reset Request */
  435. uint8_t :1; /*!< bit: 7 Reserved */
  436. } bit; /*!< Structure used for bit access */
  437. uint8_t reg; /*!< Type used for register access */
  438. } PM_RCAUSE_Type;
  439. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  440. #define PM_RCAUSE_OFFSET 0x38 /**< \brief (PM_RCAUSE offset) Reset Cause */
  441. #define PM_RCAUSE_RESETVALUE _U_(0x01) /**< \brief (PM_RCAUSE reset_value) Reset Cause */
  442. #define PM_RCAUSE_POR_Pos 0 /**< \brief (PM_RCAUSE) Power On Reset */
  443. #define PM_RCAUSE_POR (_U_(0x1) << PM_RCAUSE_POR_Pos)
  444. #define PM_RCAUSE_BOD12_Pos 1 /**< \brief (PM_RCAUSE) Brown Out 12 Detector Reset */
  445. #define PM_RCAUSE_BOD12 (_U_(0x1) << PM_RCAUSE_BOD12_Pos)
  446. #define PM_RCAUSE_BOD33_Pos 2 /**< \brief (PM_RCAUSE) Brown Out 33 Detector Reset */
  447. #define PM_RCAUSE_BOD33 (_U_(0x1) << PM_RCAUSE_BOD33_Pos)
  448. #define PM_RCAUSE_EXT_Pos 4 /**< \brief (PM_RCAUSE) External Reset */
  449. #define PM_RCAUSE_EXT (_U_(0x1) << PM_RCAUSE_EXT_Pos)
  450. #define PM_RCAUSE_WDT_Pos 5 /**< \brief (PM_RCAUSE) Watchdog Reset */
  451. #define PM_RCAUSE_WDT (_U_(0x1) << PM_RCAUSE_WDT_Pos)
  452. #define PM_RCAUSE_SYST_Pos 6 /**< \brief (PM_RCAUSE) System Reset Request */
  453. #define PM_RCAUSE_SYST (_U_(0x1) << PM_RCAUSE_SYST_Pos)
  454. #define PM_RCAUSE_MASK _U_(0x77) /**< \brief (PM_RCAUSE) MASK Register */
  455. /** \brief PM hardware registers */
  456. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  457. typedef struct {
  458. __IO PM_CTRL_Type CTRL; /**< \brief Offset: 0x00 (R/W 8) Control */
  459. __IO PM_SLEEP_Type SLEEP; /**< \brief Offset: 0x01 (R/W 8) Sleep Mode */
  460. __IO PM_EXTCTRL_Type EXTCTRL; /**< \brief Offset: 0x02 (R/W 8) External Reset Controller */
  461. RoReg8 Reserved1[0x5];
  462. __IO PM_CPUSEL_Type CPUSEL; /**< \brief Offset: 0x08 (R/W 8) CPU Clock Select */
  463. __IO PM_APBASEL_Type APBASEL; /**< \brief Offset: 0x09 (R/W 8) APBA Clock Select */
  464. __IO PM_APBBSEL_Type APBBSEL; /**< \brief Offset: 0x0A (R/W 8) APBB Clock Select */
  465. __IO PM_APBCSEL_Type APBCSEL; /**< \brief Offset: 0x0B (R/W 8) APBC Clock Select */
  466. RoReg8 Reserved2[0x8];
  467. __IO PM_AHBMASK_Type AHBMASK; /**< \brief Offset: 0x14 (R/W 32) AHB Mask */
  468. __IO PM_APBAMASK_Type APBAMASK; /**< \brief Offset: 0x18 (R/W 32) APBA Mask */
  469. __IO PM_APBBMASK_Type APBBMASK; /**< \brief Offset: 0x1C (R/W 32) APBB Mask */
  470. __IO PM_APBCMASK_Type APBCMASK; /**< \brief Offset: 0x20 (R/W 32) APBC Mask */
  471. RoReg8 Reserved3[0x10];
  472. __IO PM_INTENCLR_Type INTENCLR; /**< \brief Offset: 0x34 (R/W 8) Interrupt Enable Clear */
  473. __IO PM_INTENSET_Type INTENSET; /**< \brief Offset: 0x35 (R/W 8) Interrupt Enable Set */
  474. __IO PM_INTFLAG_Type INTFLAG; /**< \brief Offset: 0x36 (R/W 8) Interrupt Flag Status and Clear */
  475. RoReg8 Reserved4[0x1];
  476. __I PM_RCAUSE_Type RCAUSE; /**< \brief Offset: 0x38 (R/ 8) Reset Cause */
  477. } Pm;
  478. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  479. /*@}*/
  480. #endif /* _SAMD11_PM_COMPONENT_ */