dsu.h 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. /**
  2. * \file
  3. *
  4. * \brief Component description for DSU
  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_DSU_COMPONENT_
  30. #define _SAMD11_DSU_COMPONENT_
  31. /* ========================================================================== */
  32. /** SOFTWARE API DEFINITION FOR DSU */
  33. /* ========================================================================== */
  34. /** \addtogroup SAMD11_DSU Device Service Unit */
  35. /*@{*/
  36. #define DSU_U2209
  37. #define REV_DSU 0x211
  38. /* -------- DSU_CTRL : (DSU Offset: 0x0000) ( /W 8) Control -------- */
  39. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  40. typedef union {
  41. struct {
  42. uint8_t SWRST:1; /*!< bit: 0 Software Reset */
  43. uint8_t :1; /*!< bit: 1 Reserved */
  44. uint8_t CRC:1; /*!< bit: 2 32-bit Cyclic Redundancy Code */
  45. uint8_t MBIST:1; /*!< bit: 3 Memory built-in self-test */
  46. uint8_t CE:1; /*!< bit: 4 Chip-Erase */
  47. uint8_t :1; /*!< bit: 5 Reserved */
  48. uint8_t ARR:1; /*!< bit: 6 Auxiliary Row Read */
  49. uint8_t SMSA:1; /*!< bit: 7 Start Memory Stream Access */
  50. } bit; /*!< Structure used for bit access */
  51. uint8_t reg; /*!< Type used for register access */
  52. } DSU_CTRL_Type;
  53. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  54. #define DSU_CTRL_OFFSET 0x0000 /**< \brief (DSU_CTRL offset) Control */
  55. #define DSU_CTRL_RESETVALUE _U_(0x00) /**< \brief (DSU_CTRL reset_value) Control */
  56. #define DSU_CTRL_SWRST_Pos 0 /**< \brief (DSU_CTRL) Software Reset */
  57. #define DSU_CTRL_SWRST (_U_(0x1) << DSU_CTRL_SWRST_Pos)
  58. #define DSU_CTRL_CRC_Pos 2 /**< \brief (DSU_CTRL) 32-bit Cyclic Redundancy Code */
  59. #define DSU_CTRL_CRC (_U_(0x1) << DSU_CTRL_CRC_Pos)
  60. #define DSU_CTRL_MBIST_Pos 3 /**< \brief (DSU_CTRL) Memory built-in self-test */
  61. #define DSU_CTRL_MBIST (_U_(0x1) << DSU_CTRL_MBIST_Pos)
  62. #define DSU_CTRL_CE_Pos 4 /**< \brief (DSU_CTRL) Chip-Erase */
  63. #define DSU_CTRL_CE (_U_(0x1) << DSU_CTRL_CE_Pos)
  64. #define DSU_CTRL_ARR_Pos 6 /**< \brief (DSU_CTRL) Auxiliary Row Read */
  65. #define DSU_CTRL_ARR (_U_(0x1) << DSU_CTRL_ARR_Pos)
  66. #define DSU_CTRL_SMSA_Pos 7 /**< \brief (DSU_CTRL) Start Memory Stream Access */
  67. #define DSU_CTRL_SMSA (_U_(0x1) << DSU_CTRL_SMSA_Pos)
  68. #define DSU_CTRL_MASK _U_(0xDD) /**< \brief (DSU_CTRL) MASK Register */
  69. /* -------- DSU_STATUSA : (DSU Offset: 0x0001) (R/W 8) Status A -------- */
  70. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  71. typedef union {
  72. struct {
  73. uint8_t DONE:1; /*!< bit: 0 Done */
  74. uint8_t CRSTEXT:1; /*!< bit: 1 CPU Reset Phase Extension */
  75. uint8_t BERR:1; /*!< bit: 2 Bus Error */
  76. uint8_t FAIL:1; /*!< bit: 3 Failure */
  77. uint8_t PERR:1; /*!< bit: 4 Protection Error */
  78. uint8_t :3; /*!< bit: 5.. 7 Reserved */
  79. } bit; /*!< Structure used for bit access */
  80. uint8_t reg; /*!< Type used for register access */
  81. } DSU_STATUSA_Type;
  82. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  83. #define DSU_STATUSA_OFFSET 0x0001 /**< \brief (DSU_STATUSA offset) Status A */
  84. #define DSU_STATUSA_RESETVALUE _U_(0x00) /**< \brief (DSU_STATUSA reset_value) Status A */
  85. #define DSU_STATUSA_DONE_Pos 0 /**< \brief (DSU_STATUSA) Done */
  86. #define DSU_STATUSA_DONE (_U_(0x1) << DSU_STATUSA_DONE_Pos)
  87. #define DSU_STATUSA_CRSTEXT_Pos 1 /**< \brief (DSU_STATUSA) CPU Reset Phase Extension */
  88. #define DSU_STATUSA_CRSTEXT (_U_(0x1) << DSU_STATUSA_CRSTEXT_Pos)
  89. #define DSU_STATUSA_BERR_Pos 2 /**< \brief (DSU_STATUSA) Bus Error */
  90. #define DSU_STATUSA_BERR (_U_(0x1) << DSU_STATUSA_BERR_Pos)
  91. #define DSU_STATUSA_FAIL_Pos 3 /**< \brief (DSU_STATUSA) Failure */
  92. #define DSU_STATUSA_FAIL (_U_(0x1) << DSU_STATUSA_FAIL_Pos)
  93. #define DSU_STATUSA_PERR_Pos 4 /**< \brief (DSU_STATUSA) Protection Error */
  94. #define DSU_STATUSA_PERR (_U_(0x1) << DSU_STATUSA_PERR_Pos)
  95. #define DSU_STATUSA_MASK _U_(0x1F) /**< \brief (DSU_STATUSA) MASK Register */
  96. /* -------- DSU_STATUSB : (DSU Offset: 0x0002) (R/ 8) Status B -------- */
  97. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  98. typedef union {
  99. struct {
  100. uint8_t PROT:1; /*!< bit: 0 Protected */
  101. uint8_t DBGPRES:1; /*!< bit: 1 Debugger Present */
  102. uint8_t DCCD0:1; /*!< bit: 2 Debug Communication Channel 0 Dirty */
  103. uint8_t DCCD1:1; /*!< bit: 3 Debug Communication Channel 1 Dirty */
  104. uint8_t HPE:1; /*!< bit: 4 Hot-Plugging Enable */
  105. uint8_t :3; /*!< bit: 5.. 7 Reserved */
  106. } bit; /*!< Structure used for bit access */
  107. struct {
  108. uint8_t :2; /*!< bit: 0.. 1 Reserved */
  109. uint8_t DCCD:2; /*!< bit: 2.. 3 Debug Communication Channel x Dirty */
  110. uint8_t :4; /*!< bit: 4.. 7 Reserved */
  111. } vec; /*!< Structure used for vec access */
  112. uint8_t reg; /*!< Type used for register access */
  113. } DSU_STATUSB_Type;
  114. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  115. #define DSU_STATUSB_OFFSET 0x0002 /**< \brief (DSU_STATUSB offset) Status B */
  116. #define DSU_STATUSB_RESETVALUE _U_(0x00) /**< \brief (DSU_STATUSB reset_value) Status B */
  117. #define DSU_STATUSB_PROT_Pos 0 /**< \brief (DSU_STATUSB) Protected */
  118. #define DSU_STATUSB_PROT (_U_(0x1) << DSU_STATUSB_PROT_Pos)
  119. #define DSU_STATUSB_DBGPRES_Pos 1 /**< \brief (DSU_STATUSB) Debugger Present */
  120. #define DSU_STATUSB_DBGPRES (_U_(0x1) << DSU_STATUSB_DBGPRES_Pos)
  121. #define DSU_STATUSB_DCCD0_Pos 2 /**< \brief (DSU_STATUSB) Debug Communication Channel 0 Dirty */
  122. #define DSU_STATUSB_DCCD0 (_U_(1) << DSU_STATUSB_DCCD0_Pos)
  123. #define DSU_STATUSB_DCCD1_Pos 3 /**< \brief (DSU_STATUSB) Debug Communication Channel 1 Dirty */
  124. #define DSU_STATUSB_DCCD1 (_U_(1) << DSU_STATUSB_DCCD1_Pos)
  125. #define DSU_STATUSB_DCCD_Pos 2 /**< \brief (DSU_STATUSB) Debug Communication Channel x Dirty */
  126. #define DSU_STATUSB_DCCD_Msk (_U_(0x3) << DSU_STATUSB_DCCD_Pos)
  127. #define DSU_STATUSB_DCCD(value) (DSU_STATUSB_DCCD_Msk & ((value) << DSU_STATUSB_DCCD_Pos))
  128. #define DSU_STATUSB_HPE_Pos 4 /**< \brief (DSU_STATUSB) Hot-Plugging Enable */
  129. #define DSU_STATUSB_HPE (_U_(0x1) << DSU_STATUSB_HPE_Pos)
  130. #define DSU_STATUSB_MASK _U_(0x1F) /**< \brief (DSU_STATUSB) MASK Register */
  131. /* -------- DSU_ADDR : (DSU Offset: 0x0004) (R/W 32) Address -------- */
  132. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  133. typedef union {
  134. struct {
  135. uint32_t AMOD:2; /*!< bit: 0.. 1 Access Mode */
  136. uint32_t ADDR:30; /*!< bit: 2..31 Address */
  137. } bit; /*!< Structure used for bit access */
  138. uint32_t reg; /*!< Type used for register access */
  139. } DSU_ADDR_Type;
  140. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  141. #define DSU_ADDR_OFFSET 0x0004 /**< \brief (DSU_ADDR offset) Address */
  142. #define DSU_ADDR_RESETVALUE _U_(0x00000000) /**< \brief (DSU_ADDR reset_value) Address */
  143. #define DSU_ADDR_AMOD_Pos 0 /**< \brief (DSU_ADDR) Access Mode */
  144. #define DSU_ADDR_AMOD_Msk (_U_(0x3) << DSU_ADDR_AMOD_Pos)
  145. #define DSU_ADDR_AMOD(value) (DSU_ADDR_AMOD_Msk & ((value) << DSU_ADDR_AMOD_Pos))
  146. #define DSU_ADDR_ADDR_Pos 2 /**< \brief (DSU_ADDR) Address */
  147. #define DSU_ADDR_ADDR_Msk (_U_(0x3FFFFFFF) << DSU_ADDR_ADDR_Pos)
  148. #define DSU_ADDR_ADDR(value) (DSU_ADDR_ADDR_Msk & ((value) << DSU_ADDR_ADDR_Pos))
  149. #define DSU_ADDR_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_ADDR) MASK Register */
  150. /* -------- DSU_LENGTH : (DSU Offset: 0x0008) (R/W 32) Length -------- */
  151. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  152. typedef union {
  153. struct {
  154. uint32_t :2; /*!< bit: 0.. 1 Reserved */
  155. uint32_t LENGTH:30; /*!< bit: 2..31 Length */
  156. } bit; /*!< Structure used for bit access */
  157. uint32_t reg; /*!< Type used for register access */
  158. } DSU_LENGTH_Type;
  159. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  160. #define DSU_LENGTH_OFFSET 0x0008 /**< \brief (DSU_LENGTH offset) Length */
  161. #define DSU_LENGTH_RESETVALUE _U_(0x00000000) /**< \brief (DSU_LENGTH reset_value) Length */
  162. #define DSU_LENGTH_LENGTH_Pos 2 /**< \brief (DSU_LENGTH) Length */
  163. #define DSU_LENGTH_LENGTH_Msk (_U_(0x3FFFFFFF) << DSU_LENGTH_LENGTH_Pos)
  164. #define DSU_LENGTH_LENGTH(value) (DSU_LENGTH_LENGTH_Msk & ((value) << DSU_LENGTH_LENGTH_Pos))
  165. #define DSU_LENGTH_MASK _U_(0xFFFFFFFC) /**< \brief (DSU_LENGTH) MASK Register */
  166. /* -------- DSU_DATA : (DSU Offset: 0x000C) (R/W 32) Data -------- */
  167. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  168. typedef union {
  169. struct {
  170. uint32_t DATA:32; /*!< bit: 0..31 Data */
  171. } bit; /*!< Structure used for bit access */
  172. uint32_t reg; /*!< Type used for register access */
  173. } DSU_DATA_Type;
  174. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  175. #define DSU_DATA_OFFSET 0x000C /**< \brief (DSU_DATA offset) Data */
  176. #define DSU_DATA_RESETVALUE _U_(0x00000000) /**< \brief (DSU_DATA reset_value) Data */
  177. #define DSU_DATA_DATA_Pos 0 /**< \brief (DSU_DATA) Data */
  178. #define DSU_DATA_DATA_Msk (_U_(0xFFFFFFFF) << DSU_DATA_DATA_Pos)
  179. #define DSU_DATA_DATA(value) (DSU_DATA_DATA_Msk & ((value) << DSU_DATA_DATA_Pos))
  180. #define DSU_DATA_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_DATA) MASK Register */
  181. /* -------- DSU_DCC : (DSU Offset: 0x0010) (R/W 32) Debug Communication Channel n -------- */
  182. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  183. typedef union {
  184. struct {
  185. uint32_t DATA:32; /*!< bit: 0..31 Data */
  186. } bit; /*!< Structure used for bit access */
  187. uint32_t reg; /*!< Type used for register access */
  188. } DSU_DCC_Type;
  189. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  190. #define DSU_DCC_OFFSET 0x0010 /**< \brief (DSU_DCC offset) Debug Communication Channel n */
  191. #define DSU_DCC_RESETVALUE _U_(0x00000000) /**< \brief (DSU_DCC reset_value) Debug Communication Channel n */
  192. #define DSU_DCC_DATA_Pos 0 /**< \brief (DSU_DCC) Data */
  193. #define DSU_DCC_DATA_Msk (_U_(0xFFFFFFFF) << DSU_DCC_DATA_Pos)
  194. #define DSU_DCC_DATA(value) (DSU_DCC_DATA_Msk & ((value) << DSU_DCC_DATA_Pos))
  195. #define DSU_DCC_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_DCC) MASK Register */
  196. /* -------- DSU_DID : (DSU Offset: 0x0018) (R/ 32) Device Identification -------- */
  197. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  198. typedef union {
  199. struct {
  200. uint32_t DEVSEL:8; /*!< bit: 0.. 7 Device Select */
  201. uint32_t REVISION:4; /*!< bit: 8..11 Revision Number */
  202. uint32_t DIE:4; /*!< bit: 12..15 Die Number */
  203. uint32_t SERIES:6; /*!< bit: 16..21 Series */
  204. uint32_t :1; /*!< bit: 22 Reserved */
  205. uint32_t FAMILY:5; /*!< bit: 23..27 Family */
  206. uint32_t PROCESSOR:4; /*!< bit: 28..31 Processor */
  207. } bit; /*!< Structure used for bit access */
  208. uint32_t reg; /*!< Type used for register access */
  209. } DSU_DID_Type;
  210. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  211. #define DSU_DID_OFFSET 0x0018 /**< \brief (DSU_DID offset) Device Identification */
  212. #define DSU_DID_DEVSEL_Pos 0 /**< \brief (DSU_DID) Device Select */
  213. #define DSU_DID_DEVSEL_Msk (_U_(0xFF) << DSU_DID_DEVSEL_Pos)
  214. #define DSU_DID_DEVSEL(value) (DSU_DID_DEVSEL_Msk & ((value) << DSU_DID_DEVSEL_Pos))
  215. #define DSU_DID_REVISION_Pos 8 /**< \brief (DSU_DID) Revision Number */
  216. #define DSU_DID_REVISION_Msk (_U_(0xF) << DSU_DID_REVISION_Pos)
  217. #define DSU_DID_REVISION(value) (DSU_DID_REVISION_Msk & ((value) << DSU_DID_REVISION_Pos))
  218. #define DSU_DID_DIE_Pos 12 /**< \brief (DSU_DID) Die Number */
  219. #define DSU_DID_DIE_Msk (_U_(0xF) << DSU_DID_DIE_Pos)
  220. #define DSU_DID_DIE(value) (DSU_DID_DIE_Msk & ((value) << DSU_DID_DIE_Pos))
  221. #define DSU_DID_SERIES_Pos 16 /**< \brief (DSU_DID) Series */
  222. #define DSU_DID_SERIES_Msk (_U_(0x3F) << DSU_DID_SERIES_Pos)
  223. #define DSU_DID_SERIES(value) (DSU_DID_SERIES_Msk & ((value) << DSU_DID_SERIES_Pos))
  224. #define DSU_DID_SERIES_0_Val _U_(0x0) /**< \brief (DSU_DID) Cortex-M0+ processor, basic feature set */
  225. #define DSU_DID_SERIES_1_Val _U_(0x1) /**< \brief (DSU_DID) Cortex-M0+ processor, USB */
  226. #define DSU_DID_SERIES_0 (DSU_DID_SERIES_0_Val << DSU_DID_SERIES_Pos)
  227. #define DSU_DID_SERIES_1 (DSU_DID_SERIES_1_Val << DSU_DID_SERIES_Pos)
  228. #define DSU_DID_FAMILY_Pos 23 /**< \brief (DSU_DID) Family */
  229. #define DSU_DID_FAMILY_Msk (_U_(0x1F) << DSU_DID_FAMILY_Pos)
  230. #define DSU_DID_FAMILY(value) (DSU_DID_FAMILY_Msk & ((value) << DSU_DID_FAMILY_Pos))
  231. #define DSU_DID_FAMILY_0_Val _U_(0x0) /**< \brief (DSU_DID) General purpose microcontroller */
  232. #define DSU_DID_FAMILY_1_Val _U_(0x1) /**< \brief (DSU_DID) PicoPower */
  233. #define DSU_DID_FAMILY_0 (DSU_DID_FAMILY_0_Val << DSU_DID_FAMILY_Pos)
  234. #define DSU_DID_FAMILY_1 (DSU_DID_FAMILY_1_Val << DSU_DID_FAMILY_Pos)
  235. #define DSU_DID_PROCESSOR_Pos 28 /**< \brief (DSU_DID) Processor */
  236. #define DSU_DID_PROCESSOR_Msk (_U_(0xF) << DSU_DID_PROCESSOR_Pos)
  237. #define DSU_DID_PROCESSOR(value) (DSU_DID_PROCESSOR_Msk & ((value) << DSU_DID_PROCESSOR_Pos))
  238. #define DSU_DID_PROCESSOR_0_Val _U_(0x0) /**< \brief (DSU_DID) Cortex-M0 */
  239. #define DSU_DID_PROCESSOR_1_Val _U_(0x1) /**< \brief (DSU_DID) Cortex-M0+ */
  240. #define DSU_DID_PROCESSOR_2_Val _U_(0x2) /**< \brief (DSU_DID) Cortex-M3 */
  241. #define DSU_DID_PROCESSOR_3_Val _U_(0x3) /**< \brief (DSU_DID) Cortex-M4 */
  242. #define DSU_DID_PROCESSOR_0 (DSU_DID_PROCESSOR_0_Val << DSU_DID_PROCESSOR_Pos)
  243. #define DSU_DID_PROCESSOR_1 (DSU_DID_PROCESSOR_1_Val << DSU_DID_PROCESSOR_Pos)
  244. #define DSU_DID_PROCESSOR_2 (DSU_DID_PROCESSOR_2_Val << DSU_DID_PROCESSOR_Pos)
  245. #define DSU_DID_PROCESSOR_3 (DSU_DID_PROCESSOR_3_Val << DSU_DID_PROCESSOR_Pos)
  246. #define DSU_DID_MASK _U_(0xFFBFFFFF) /**< \brief (DSU_DID) MASK Register */
  247. /* -------- DSU_DCFG : (DSU Offset: 0x00F0) (R/W 32) Device Configuration -------- */
  248. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  249. typedef union {
  250. struct {
  251. uint32_t DCFG:32; /*!< bit: 0..31 Device Configuration */
  252. } bit; /*!< Structure used for bit access */
  253. uint32_t reg; /*!< Type used for register access */
  254. } DSU_DCFG_Type;
  255. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  256. #define DSU_DCFG_OFFSET 0x00F0 /**< \brief (DSU_DCFG offset) Device Configuration */
  257. #define DSU_DCFG_RESETVALUE _U_(0x00000000) /**< \brief (DSU_DCFG reset_value) Device Configuration */
  258. #define DSU_DCFG_DCFG_Pos 0 /**< \brief (DSU_DCFG) Device Configuration */
  259. #define DSU_DCFG_DCFG_Msk (_U_(0xFFFFFFFF) << DSU_DCFG_DCFG_Pos)
  260. #define DSU_DCFG_DCFG(value) (DSU_DCFG_DCFG_Msk & ((value) << DSU_DCFG_DCFG_Pos))
  261. #define DSU_DCFG_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_DCFG) MASK Register */
  262. /* -------- DSU_ENTRY0 : (DSU Offset: 0x1000) (R/ 32) CoreSight ROM Table Entry 0 -------- */
  263. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  264. typedef union {
  265. struct {
  266. uint32_t EPRES:1; /*!< bit: 0 Entry Present */
  267. uint32_t FMT:1; /*!< bit: 1 Format */
  268. uint32_t :10; /*!< bit: 2..11 Reserved */
  269. uint32_t ADDOFF:20; /*!< bit: 12..31 Address Offset */
  270. } bit; /*!< Structure used for bit access */
  271. uint32_t reg; /*!< Type used for register access */
  272. } DSU_ENTRY0_Type;
  273. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  274. #define DSU_ENTRY0_OFFSET 0x1000 /**< \brief (DSU_ENTRY0 offset) CoreSight ROM Table Entry 0 */
  275. #define DSU_ENTRY0_RESETVALUE _U_(0x9F0FC002) /**< \brief (DSU_ENTRY0 reset_value) CoreSight ROM Table Entry 0 */
  276. #define DSU_ENTRY0_EPRES_Pos 0 /**< \brief (DSU_ENTRY0) Entry Present */
  277. #define DSU_ENTRY0_EPRES (_U_(0x1) << DSU_ENTRY0_EPRES_Pos)
  278. #define DSU_ENTRY0_FMT_Pos 1 /**< \brief (DSU_ENTRY0) Format */
  279. #define DSU_ENTRY0_FMT (_U_(0x1) << DSU_ENTRY0_FMT_Pos)
  280. #define DSU_ENTRY0_ADDOFF_Pos 12 /**< \brief (DSU_ENTRY0) Address Offset */
  281. #define DSU_ENTRY0_ADDOFF_Msk (_U_(0xFFFFF) << DSU_ENTRY0_ADDOFF_Pos)
  282. #define DSU_ENTRY0_ADDOFF(value) (DSU_ENTRY0_ADDOFF_Msk & ((value) << DSU_ENTRY0_ADDOFF_Pos))
  283. #define DSU_ENTRY0_MASK _U_(0xFFFFF003) /**< \brief (DSU_ENTRY0) MASK Register */
  284. /* -------- DSU_ENTRY1 : (DSU Offset: 0x1004) (R/ 32) CoreSight ROM Table Entry 1 -------- */
  285. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  286. typedef union {
  287. uint32_t reg; /*!< Type used for register access */
  288. } DSU_ENTRY1_Type;
  289. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  290. #define DSU_ENTRY1_OFFSET 0x1004 /**< \brief (DSU_ENTRY1 offset) CoreSight ROM Table Entry 1 */
  291. #define DSU_ENTRY1_RESETVALUE _U_(0x00003002) /**< \brief (DSU_ENTRY1 reset_value) CoreSight ROM Table Entry 1 */
  292. #define DSU_ENTRY1_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_ENTRY1) MASK Register */
  293. /* -------- DSU_END : (DSU Offset: 0x1008) (R/ 32) CoreSight ROM Table End -------- */
  294. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  295. typedef union {
  296. struct {
  297. uint32_t END:32; /*!< bit: 0..31 End Marker */
  298. } bit; /*!< Structure used for bit access */
  299. uint32_t reg; /*!< Type used for register access */
  300. } DSU_END_Type;
  301. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  302. #define DSU_END_OFFSET 0x1008 /**< \brief (DSU_END offset) CoreSight ROM Table End */
  303. #define DSU_END_RESETVALUE _U_(0x00000000) /**< \brief (DSU_END reset_value) CoreSight ROM Table End */
  304. #define DSU_END_END_Pos 0 /**< \brief (DSU_END) End Marker */
  305. #define DSU_END_END_Msk (_U_(0xFFFFFFFF) << DSU_END_END_Pos)
  306. #define DSU_END_END(value) (DSU_END_END_Msk & ((value) << DSU_END_END_Pos))
  307. #define DSU_END_MASK _U_(0xFFFFFFFF) /**< \brief (DSU_END) MASK Register */
  308. /* -------- DSU_MEMTYPE : (DSU Offset: 0x1FCC) (R/ 32) CoreSight ROM Table Memory Type -------- */
  309. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  310. typedef union {
  311. struct {
  312. uint32_t SMEMP:1; /*!< bit: 0 System Memory Present */
  313. uint32_t :31; /*!< bit: 1..31 Reserved */
  314. } bit; /*!< Structure used for bit access */
  315. uint32_t reg; /*!< Type used for register access */
  316. } DSU_MEMTYPE_Type;
  317. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  318. #define DSU_MEMTYPE_OFFSET 0x1FCC /**< \brief (DSU_MEMTYPE offset) CoreSight ROM Table Memory Type */
  319. #define DSU_MEMTYPE_RESETVALUE _U_(0x00000000) /**< \brief (DSU_MEMTYPE reset_value) CoreSight ROM Table Memory Type */
  320. #define DSU_MEMTYPE_SMEMP_Pos 0 /**< \brief (DSU_MEMTYPE) System Memory Present */
  321. #define DSU_MEMTYPE_SMEMP (_U_(0x1) << DSU_MEMTYPE_SMEMP_Pos)
  322. #define DSU_MEMTYPE_MASK _U_(0x00000001) /**< \brief (DSU_MEMTYPE) MASK Register */
  323. /* -------- DSU_PID4 : (DSU Offset: 0x1FD0) (R/ 32) Peripheral Identification 4 -------- */
  324. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  325. typedef union {
  326. struct {
  327. uint32_t JEPCC:4; /*!< bit: 0.. 3 JEP-106 Continuation Code */
  328. uint32_t FKBC:4; /*!< bit: 4.. 7 4KB count */
  329. uint32_t :24; /*!< bit: 8..31 Reserved */
  330. } bit; /*!< Structure used for bit access */
  331. uint32_t reg; /*!< Type used for register access */
  332. } DSU_PID4_Type;
  333. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  334. #define DSU_PID4_OFFSET 0x1FD0 /**< \brief (DSU_PID4 offset) Peripheral Identification 4 */
  335. #define DSU_PID4_RESETVALUE _U_(0x00000000) /**< \brief (DSU_PID4 reset_value) Peripheral Identification 4 */
  336. #define DSU_PID4_JEPCC_Pos 0 /**< \brief (DSU_PID4) JEP-106 Continuation Code */
  337. #define DSU_PID4_JEPCC_Msk (_U_(0xF) << DSU_PID4_JEPCC_Pos)
  338. #define DSU_PID4_JEPCC(value) (DSU_PID4_JEPCC_Msk & ((value) << DSU_PID4_JEPCC_Pos))
  339. #define DSU_PID4_FKBC_Pos 4 /**< \brief (DSU_PID4) 4KB count */
  340. #define DSU_PID4_FKBC_Msk (_U_(0xF) << DSU_PID4_FKBC_Pos)
  341. #define DSU_PID4_FKBC(value) (DSU_PID4_FKBC_Msk & ((value) << DSU_PID4_FKBC_Pos))
  342. #define DSU_PID4_MASK _U_(0x000000FF) /**< \brief (DSU_PID4) MASK Register */
  343. /* -------- DSU_PID5 : (DSU Offset: 0x1FD4) (R/ 32) Peripheral Identification 5 -------- */
  344. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  345. typedef union {
  346. uint32_t reg; /*!< Type used for register access */
  347. } DSU_PID5_Type;
  348. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  349. #define DSU_PID5_OFFSET 0x1FD4 /**< \brief (DSU_PID5 offset) Peripheral Identification 5 */
  350. #define DSU_PID5_RESETVALUE _U_(0x00000000) /**< \brief (DSU_PID5 reset_value) Peripheral Identification 5 */
  351. #define DSU_PID5_MASK _U_(0x00000000) /**< \brief (DSU_PID5) MASK Register */
  352. /* -------- DSU_PID6 : (DSU Offset: 0x1FD8) (R/ 32) Peripheral Identification 6 -------- */
  353. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  354. typedef union {
  355. uint32_t reg; /*!< Type used for register access */
  356. } DSU_PID6_Type;
  357. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  358. #define DSU_PID6_OFFSET 0x1FD8 /**< \brief (DSU_PID6 offset) Peripheral Identification 6 */
  359. #define DSU_PID6_RESETVALUE _U_(0x00000000) /**< \brief (DSU_PID6 reset_value) Peripheral Identification 6 */
  360. #define DSU_PID6_MASK _U_(0x00000000) /**< \brief (DSU_PID6) MASK Register */
  361. /* -------- DSU_PID7 : (DSU Offset: 0x1FDC) (R/ 32) Peripheral Identification 7 -------- */
  362. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  363. typedef union {
  364. uint32_t reg; /*!< Type used for register access */
  365. } DSU_PID7_Type;
  366. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  367. #define DSU_PID7_OFFSET 0x1FDC /**< \brief (DSU_PID7 offset) Peripheral Identification 7 */
  368. #define DSU_PID7_RESETVALUE _U_(0x00000000) /**< \brief (DSU_PID7 reset_value) Peripheral Identification 7 */
  369. #define DSU_PID7_MASK _U_(0x00000000) /**< \brief (DSU_PID7) MASK Register */
  370. /* -------- DSU_PID0 : (DSU Offset: 0x1FE0) (R/ 32) Peripheral Identification 0 -------- */
  371. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  372. typedef union {
  373. struct {
  374. uint32_t PARTNBL:8; /*!< bit: 0.. 7 Part Number Low */
  375. uint32_t :24; /*!< bit: 8..31 Reserved */
  376. } bit; /*!< Structure used for bit access */
  377. uint32_t reg; /*!< Type used for register access */
  378. } DSU_PID0_Type;
  379. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  380. #define DSU_PID0_OFFSET 0x1FE0 /**< \brief (DSU_PID0 offset) Peripheral Identification 0 */
  381. #define DSU_PID0_RESETVALUE _U_(0x000000D0) /**< \brief (DSU_PID0 reset_value) Peripheral Identification 0 */
  382. #define DSU_PID0_PARTNBL_Pos 0 /**< \brief (DSU_PID0) Part Number Low */
  383. #define DSU_PID0_PARTNBL_Msk (_U_(0xFF) << DSU_PID0_PARTNBL_Pos)
  384. #define DSU_PID0_PARTNBL(value) (DSU_PID0_PARTNBL_Msk & ((value) << DSU_PID0_PARTNBL_Pos))
  385. #define DSU_PID0_MASK _U_(0x000000FF) /**< \brief (DSU_PID0) MASK Register */
  386. /* -------- DSU_PID1 : (DSU Offset: 0x1FE4) (R/ 32) Peripheral Identification 1 -------- */
  387. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  388. typedef union {
  389. struct {
  390. uint32_t PARTNBH:4; /*!< bit: 0.. 3 Part Number High */
  391. uint32_t JEPIDCL:4; /*!< bit: 4.. 7 Low part of the JEP-106 Identity Code */
  392. uint32_t :24; /*!< bit: 8..31 Reserved */
  393. } bit; /*!< Structure used for bit access */
  394. uint32_t reg; /*!< Type used for register access */
  395. } DSU_PID1_Type;
  396. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  397. #define DSU_PID1_OFFSET 0x1FE4 /**< \brief (DSU_PID1 offset) Peripheral Identification 1 */
  398. #define DSU_PID1_RESETVALUE _U_(0x000000FC) /**< \brief (DSU_PID1 reset_value) Peripheral Identification 1 */
  399. #define DSU_PID1_PARTNBH_Pos 0 /**< \brief (DSU_PID1) Part Number High */
  400. #define DSU_PID1_PARTNBH_Msk (_U_(0xF) << DSU_PID1_PARTNBH_Pos)
  401. #define DSU_PID1_PARTNBH(value) (DSU_PID1_PARTNBH_Msk & ((value) << DSU_PID1_PARTNBH_Pos))
  402. #define DSU_PID1_JEPIDCL_Pos 4 /**< \brief (DSU_PID1) Low part of the JEP-106 Identity Code */
  403. #define DSU_PID1_JEPIDCL_Msk (_U_(0xF) << DSU_PID1_JEPIDCL_Pos)
  404. #define DSU_PID1_JEPIDCL(value) (DSU_PID1_JEPIDCL_Msk & ((value) << DSU_PID1_JEPIDCL_Pos))
  405. #define DSU_PID1_MASK _U_(0x000000FF) /**< \brief (DSU_PID1) MASK Register */
  406. /* -------- DSU_PID2 : (DSU Offset: 0x1FE8) (R/ 32) Peripheral Identification 2 -------- */
  407. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  408. typedef union {
  409. struct {
  410. uint32_t JEPIDCH:3; /*!< bit: 0.. 2 JEP-106 Identity Code High */
  411. uint32_t JEPU:1; /*!< bit: 3 JEP-106 Identity Code is used */
  412. uint32_t REVISION:4; /*!< bit: 4.. 7 Revision Number */
  413. uint32_t :24; /*!< bit: 8..31 Reserved */
  414. } bit; /*!< Structure used for bit access */
  415. uint32_t reg; /*!< Type used for register access */
  416. } DSU_PID2_Type;
  417. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  418. #define DSU_PID2_OFFSET 0x1FE8 /**< \brief (DSU_PID2 offset) Peripheral Identification 2 */
  419. #define DSU_PID2_RESETVALUE _U_(0x00000009) /**< \brief (DSU_PID2 reset_value) Peripheral Identification 2 */
  420. #define DSU_PID2_JEPIDCH_Pos 0 /**< \brief (DSU_PID2) JEP-106 Identity Code High */
  421. #define DSU_PID2_JEPIDCH_Msk (_U_(0x7) << DSU_PID2_JEPIDCH_Pos)
  422. #define DSU_PID2_JEPIDCH(value) (DSU_PID2_JEPIDCH_Msk & ((value) << DSU_PID2_JEPIDCH_Pos))
  423. #define DSU_PID2_JEPU_Pos 3 /**< \brief (DSU_PID2) JEP-106 Identity Code is used */
  424. #define DSU_PID2_JEPU (_U_(0x1) << DSU_PID2_JEPU_Pos)
  425. #define DSU_PID2_REVISION_Pos 4 /**< \brief (DSU_PID2) Revision Number */
  426. #define DSU_PID2_REVISION_Msk (_U_(0xF) << DSU_PID2_REVISION_Pos)
  427. #define DSU_PID2_REVISION(value) (DSU_PID2_REVISION_Msk & ((value) << DSU_PID2_REVISION_Pos))
  428. #define DSU_PID2_MASK _U_(0x000000FF) /**< \brief (DSU_PID2) MASK Register */
  429. /* -------- DSU_PID3 : (DSU Offset: 0x1FEC) (R/ 32) Peripheral Identification 3 -------- */
  430. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  431. typedef union {
  432. struct {
  433. uint32_t CUSMOD:4; /*!< bit: 0.. 3 ARM CUSMOD */
  434. uint32_t REVAND:4; /*!< bit: 4.. 7 Revision Number */
  435. uint32_t :24; /*!< bit: 8..31 Reserved */
  436. } bit; /*!< Structure used for bit access */
  437. uint32_t reg; /*!< Type used for register access */
  438. } DSU_PID3_Type;
  439. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  440. #define DSU_PID3_OFFSET 0x1FEC /**< \brief (DSU_PID3 offset) Peripheral Identification 3 */
  441. #define DSU_PID3_RESETVALUE _U_(0x00000000) /**< \brief (DSU_PID3 reset_value) Peripheral Identification 3 */
  442. #define DSU_PID3_CUSMOD_Pos 0 /**< \brief (DSU_PID3) ARM CUSMOD */
  443. #define DSU_PID3_CUSMOD_Msk (_U_(0xF) << DSU_PID3_CUSMOD_Pos)
  444. #define DSU_PID3_CUSMOD(value) (DSU_PID3_CUSMOD_Msk & ((value) << DSU_PID3_CUSMOD_Pos))
  445. #define DSU_PID3_REVAND_Pos 4 /**< \brief (DSU_PID3) Revision Number */
  446. #define DSU_PID3_REVAND_Msk (_U_(0xF) << DSU_PID3_REVAND_Pos)
  447. #define DSU_PID3_REVAND(value) (DSU_PID3_REVAND_Msk & ((value) << DSU_PID3_REVAND_Pos))
  448. #define DSU_PID3_MASK _U_(0x000000FF) /**< \brief (DSU_PID3) MASK Register */
  449. /* -------- DSU_CID0 : (DSU Offset: 0x1FF0) (R/ 32) Component Identification 0 -------- */
  450. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  451. typedef union {
  452. struct {
  453. uint32_t PREAMBLEB0:8; /*!< bit: 0.. 7 Preamble Byte 0 */
  454. uint32_t :24; /*!< bit: 8..31 Reserved */
  455. } bit; /*!< Structure used for bit access */
  456. uint32_t reg; /*!< Type used for register access */
  457. } DSU_CID0_Type;
  458. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  459. #define DSU_CID0_OFFSET 0x1FF0 /**< \brief (DSU_CID0 offset) Component Identification 0 */
  460. #define DSU_CID0_RESETVALUE _U_(0x0000000D) /**< \brief (DSU_CID0 reset_value) Component Identification 0 */
  461. #define DSU_CID0_PREAMBLEB0_Pos 0 /**< \brief (DSU_CID0) Preamble Byte 0 */
  462. #define DSU_CID0_PREAMBLEB0_Msk (_U_(0xFF) << DSU_CID0_PREAMBLEB0_Pos)
  463. #define DSU_CID0_PREAMBLEB0(value) (DSU_CID0_PREAMBLEB0_Msk & ((value) << DSU_CID0_PREAMBLEB0_Pos))
  464. #define DSU_CID0_MASK _U_(0x000000FF) /**< \brief (DSU_CID0) MASK Register */
  465. /* -------- DSU_CID1 : (DSU Offset: 0x1FF4) (R/ 32) Component Identification 1 -------- */
  466. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  467. typedef union {
  468. struct {
  469. uint32_t PREAMBLE:4; /*!< bit: 0.. 3 Preamble */
  470. uint32_t CCLASS:4; /*!< bit: 4.. 7 Component Class */
  471. uint32_t :24; /*!< bit: 8..31 Reserved */
  472. } bit; /*!< Structure used for bit access */
  473. uint32_t reg; /*!< Type used for register access */
  474. } DSU_CID1_Type;
  475. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  476. #define DSU_CID1_OFFSET 0x1FF4 /**< \brief (DSU_CID1 offset) Component Identification 1 */
  477. #define DSU_CID1_RESETVALUE _U_(0x00000010) /**< \brief (DSU_CID1 reset_value) Component Identification 1 */
  478. #define DSU_CID1_PREAMBLE_Pos 0 /**< \brief (DSU_CID1) Preamble */
  479. #define DSU_CID1_PREAMBLE_Msk (_U_(0xF) << DSU_CID1_PREAMBLE_Pos)
  480. #define DSU_CID1_PREAMBLE(value) (DSU_CID1_PREAMBLE_Msk & ((value) << DSU_CID1_PREAMBLE_Pos))
  481. #define DSU_CID1_CCLASS_Pos 4 /**< \brief (DSU_CID1) Component Class */
  482. #define DSU_CID1_CCLASS_Msk (_U_(0xF) << DSU_CID1_CCLASS_Pos)
  483. #define DSU_CID1_CCLASS(value) (DSU_CID1_CCLASS_Msk & ((value) << DSU_CID1_CCLASS_Pos))
  484. #define DSU_CID1_MASK _U_(0x000000FF) /**< \brief (DSU_CID1) MASK Register */
  485. /* -------- DSU_CID2 : (DSU Offset: 0x1FF8) (R/ 32) Component Identification 2 -------- */
  486. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  487. typedef union {
  488. struct {
  489. uint32_t PREAMBLEB2:8; /*!< bit: 0.. 7 Preamble Byte 2 */
  490. uint32_t :24; /*!< bit: 8..31 Reserved */
  491. } bit; /*!< Structure used for bit access */
  492. uint32_t reg; /*!< Type used for register access */
  493. } DSU_CID2_Type;
  494. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  495. #define DSU_CID2_OFFSET 0x1FF8 /**< \brief (DSU_CID2 offset) Component Identification 2 */
  496. #define DSU_CID2_RESETVALUE _U_(0x00000005) /**< \brief (DSU_CID2 reset_value) Component Identification 2 */
  497. #define DSU_CID2_PREAMBLEB2_Pos 0 /**< \brief (DSU_CID2) Preamble Byte 2 */
  498. #define DSU_CID2_PREAMBLEB2_Msk (_U_(0xFF) << DSU_CID2_PREAMBLEB2_Pos)
  499. #define DSU_CID2_PREAMBLEB2(value) (DSU_CID2_PREAMBLEB2_Msk & ((value) << DSU_CID2_PREAMBLEB2_Pos))
  500. #define DSU_CID2_MASK _U_(0x000000FF) /**< \brief (DSU_CID2) MASK Register */
  501. /* -------- DSU_CID3 : (DSU Offset: 0x1FFC) (R/ 32) Component Identification 3 -------- */
  502. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  503. typedef union {
  504. struct {
  505. uint32_t PREAMBLEB3:8; /*!< bit: 0.. 7 Preamble Byte 3 */
  506. uint32_t :24; /*!< bit: 8..31 Reserved */
  507. } bit; /*!< Structure used for bit access */
  508. uint32_t reg; /*!< Type used for register access */
  509. } DSU_CID3_Type;
  510. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  511. #define DSU_CID3_OFFSET 0x1FFC /**< \brief (DSU_CID3 offset) Component Identification 3 */
  512. #define DSU_CID3_RESETVALUE _U_(0x000000B1) /**< \brief (DSU_CID3 reset_value) Component Identification 3 */
  513. #define DSU_CID3_PREAMBLEB3_Pos 0 /**< \brief (DSU_CID3) Preamble Byte 3 */
  514. #define DSU_CID3_PREAMBLEB3_Msk (_U_(0xFF) << DSU_CID3_PREAMBLEB3_Pos)
  515. #define DSU_CID3_PREAMBLEB3(value) (DSU_CID3_PREAMBLEB3_Msk & ((value) << DSU_CID3_PREAMBLEB3_Pos))
  516. #define DSU_CID3_MASK _U_(0x000000FF) /**< \brief (DSU_CID3) MASK Register */
  517. /** \brief DSU hardware registers */
  518. #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
  519. typedef struct {
  520. __O DSU_CTRL_Type CTRL; /**< \brief Offset: 0x0000 ( /W 8) Control */
  521. __IO DSU_STATUSA_Type STATUSA; /**< \brief Offset: 0x0001 (R/W 8) Status A */
  522. __I DSU_STATUSB_Type STATUSB; /**< \brief Offset: 0x0002 (R/ 8) Status B */
  523. RoReg8 Reserved1[0x1];
  524. __IO DSU_ADDR_Type ADDR; /**< \brief Offset: 0x0004 (R/W 32) Address */
  525. __IO DSU_LENGTH_Type LENGTH; /**< \brief Offset: 0x0008 (R/W 32) Length */
  526. __IO DSU_DATA_Type DATA; /**< \brief Offset: 0x000C (R/W 32) Data */
  527. __IO DSU_DCC_Type DCC[2]; /**< \brief Offset: 0x0010 (R/W 32) Debug Communication Channel n */
  528. __I DSU_DID_Type DID; /**< \brief Offset: 0x0018 (R/ 32) Device Identification */
  529. RoReg8 Reserved2[0xD4];
  530. __IO DSU_DCFG_Type DCFG[2]; /**< \brief Offset: 0x00F0 (R/W 32) Device Configuration */
  531. RoReg8 Reserved3[0xF08];
  532. __I DSU_ENTRY0_Type ENTRY0; /**< \brief Offset: 0x1000 (R/ 32) CoreSight ROM Table Entry 0 */
  533. __I DSU_ENTRY1_Type ENTRY1; /**< \brief Offset: 0x1004 (R/ 32) CoreSight ROM Table Entry 1 */
  534. __I DSU_END_Type END; /**< \brief Offset: 0x1008 (R/ 32) CoreSight ROM Table End */
  535. RoReg8 Reserved4[0xFC0];
  536. __I DSU_MEMTYPE_Type MEMTYPE; /**< \brief Offset: 0x1FCC (R/ 32) CoreSight ROM Table Memory Type */
  537. __I DSU_PID4_Type PID4; /**< \brief Offset: 0x1FD0 (R/ 32) Peripheral Identification 4 */
  538. __I DSU_PID5_Type PID5; /**< \brief Offset: 0x1FD4 (R/ 32) Peripheral Identification 5 */
  539. __I DSU_PID6_Type PID6; /**< \brief Offset: 0x1FD8 (R/ 32) Peripheral Identification 6 */
  540. __I DSU_PID7_Type PID7; /**< \brief Offset: 0x1FDC (R/ 32) Peripheral Identification 7 */
  541. __I DSU_PID0_Type PID0; /**< \brief Offset: 0x1FE0 (R/ 32) Peripheral Identification 0 */
  542. __I DSU_PID1_Type PID1; /**< \brief Offset: 0x1FE4 (R/ 32) Peripheral Identification 1 */
  543. __I DSU_PID2_Type PID2; /**< \brief Offset: 0x1FE8 (R/ 32) Peripheral Identification 2 */
  544. __I DSU_PID3_Type PID3; /**< \brief Offset: 0x1FEC (R/ 32) Peripheral Identification 3 */
  545. __I DSU_CID0_Type CID0; /**< \brief Offset: 0x1FF0 (R/ 32) Component Identification 0 */
  546. __I DSU_CID1_Type CID1; /**< \brief Offset: 0x1FF4 (R/ 32) Component Identification 1 */
  547. __I DSU_CID2_Type CID2; /**< \brief Offset: 0x1FF8 (R/ 32) Component Identification 2 */
  548. __I DSU_CID3_Type CID3; /**< \brief Offset: 0x1FFC (R/ 32) Component Identification 3 */
  549. } Dsu;
  550. #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
  551. /*@}*/
  552. #endif /* _SAMD11_DSU_COMPONENT_ */