dsu.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /**
  2. * \file
  3. *
  4. * \brief Instance description for DSU
  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_DSU_INSTANCE_H_
  31. #define _SAML11_DSU_INSTANCE_H_
  32. /* ========== Register definition for DSU peripheral ========== */
  33. #if (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__))
  34. #define REG_DSU_CTRL (0x41002000) /**< (DSU) Control */
  35. #define REG_DSU_STATUSA (0x41002001) /**< (DSU) Status A */
  36. #define REG_DSU_STATUSB (0x41002002) /**< (DSU) Status B */
  37. #define REG_DSU_STATUSC (0x41002003) /**< (DSU) Status C */
  38. #define REG_DSU_ADDR (0x41002004) /**< (DSU) Address */
  39. #define REG_DSU_LENGTH (0x41002008) /**< (DSU) Length */
  40. #define REG_DSU_DATA (0x4100200C) /**< (DSU) Data */
  41. #define REG_DSU_DCC (0x41002010) /**< (DSU) Debug Communication Channel n */
  42. #define REG_DSU_DCC0 (0x41002010) /**< (DSU) Debug Communication Channel 0 */
  43. #define REG_DSU_DCC1 (0x41002014) /**< (DSU) Debug Communication Channel 1 */
  44. #define REG_DSU_DID (0x41002018) /**< (DSU) Device Identification */
  45. #define REG_DSU_CFG (0x4100201C) /**< (DSU) Configuration */
  46. #define REG_DSU_BCC (0x41002020) /**< (DSU) Boot ROM Communication Channel n */
  47. #define REG_DSU_BCC0 (0x41002020) /**< (DSU) Boot ROM Communication Channel 0 */
  48. #define REG_DSU_BCC1 (0x41002024) /**< (DSU) Boot ROM Communication Channel 1 */
  49. #define REG_DSU_DCFG (0x410020F0) /**< (DSU) Device Configuration */
  50. #define REG_DSU_DCFG0 (0x410020F0) /**< (DSU) Device Configuration 0 */
  51. #define REG_DSU_DCFG1 (0x410020F4) /**< (DSU) Device Configuration 1 */
  52. #define REG_DSU_ENTRY0 (0x41003000) /**< (DSU) CoreSight ROM Table Entry 0 */
  53. #define REG_DSU_ENTRY1 (0x41003004) /**< (DSU) CoreSight ROM Table Entry 1 */
  54. #define REG_DSU_END (0x41003008) /**< (DSU) CoreSight ROM Table End */
  55. #define REG_DSU_MEMTYPE (0x41003FCC) /**< (DSU) CoreSight ROM Table Memory Type */
  56. #define REG_DSU_PID4 (0x41003FD0) /**< (DSU) Peripheral Identification 4 */
  57. #define REG_DSU_PID5 (0x41003FD4) /**< (DSU) Peripheral Identification 5 */
  58. #define REG_DSU_PID6 (0x41003FD8) /**< (DSU) Peripheral Identification 6 */
  59. #define REG_DSU_PID7 (0x41003FDC) /**< (DSU) Peripheral Identification 7 */
  60. #define REG_DSU_PID0 (0x41003FE0) /**< (DSU) Peripheral Identification 0 */
  61. #define REG_DSU_PID1 (0x41003FE4) /**< (DSU) Peripheral Identification 1 */
  62. #define REG_DSU_PID2 (0x41003FE8) /**< (DSU) Peripheral Identification 2 */
  63. #define REG_DSU_PID3 (0x41003FEC) /**< (DSU) Peripheral Identification 3 */
  64. #define REG_DSU_CID0 (0x41003FF0) /**< (DSU) Component Identification 0 */
  65. #define REG_DSU_CID1 (0x41003FF4) /**< (DSU) Component Identification 1 */
  66. #define REG_DSU_CID2 (0x41003FF8) /**< (DSU) Component Identification 2 */
  67. #define REG_DSU_CID3 (0x41003FFC) /**< (DSU) Component Identification 3 */
  68. #else
  69. #define REG_DSU_CTRL (*(__O uint8_t*)0x41002000U) /**< (DSU) Control */
  70. #define REG_DSU_STATUSA (*(__IO uint8_t*)0x41002001U) /**< (DSU) Status A */
  71. #define REG_DSU_STATUSB (*(__I uint8_t*)0x41002002U) /**< (DSU) Status B */
  72. #define REG_DSU_STATUSC (*(__I uint8_t*)0x41002003U) /**< (DSU) Status C */
  73. #define REG_DSU_ADDR (*(__IO uint32_t*)0x41002004U) /**< (DSU) Address */
  74. #define REG_DSU_LENGTH (*(__IO uint32_t*)0x41002008U) /**< (DSU) Length */
  75. #define REG_DSU_DATA (*(__IO uint32_t*)0x4100200CU) /**< (DSU) Data */
  76. #define REG_DSU_DCC (*(__IO uint32_t*)0x41002010U) /**< (DSU) Debug Communication Channel n */
  77. #define REG_DSU_DCC0 (*(__IO uint32_t*)0x41002010U) /**< (DSU) Debug Communication Channel 0 */
  78. #define REG_DSU_DCC1 (*(__IO uint32_t*)0x41002014U) /**< (DSU) Debug Communication Channel 1 */
  79. #define REG_DSU_DID (*(__I uint32_t*)0x41002018U) /**< (DSU) Device Identification */
  80. #define REG_DSU_CFG (*(__IO uint32_t*)0x4100201CU) /**< (DSU) Configuration */
  81. #define REG_DSU_BCC (*(__IO uint32_t*)0x41002020U) /**< (DSU) Boot ROM Communication Channel n */
  82. #define REG_DSU_BCC0 (*(__IO uint32_t*)0x41002020U) /**< (DSU) Boot ROM Communication Channel 0 */
  83. #define REG_DSU_BCC1 (*(__IO uint32_t*)0x41002024U) /**< (DSU) Boot ROM Communication Channel 1 */
  84. #define REG_DSU_DCFG (*(__IO uint32_t*)0x410020F0U) /**< (DSU) Device Configuration */
  85. #define REG_DSU_DCFG0 (*(__IO uint32_t*)0x410020F0U) /**< (DSU) Device Configuration 0 */
  86. #define REG_DSU_DCFG1 (*(__IO uint32_t*)0x410020F4U) /**< (DSU) Device Configuration 1 */
  87. #define REG_DSU_ENTRY0 (*(__I uint32_t*)0x41003000U) /**< (DSU) CoreSight ROM Table Entry 0 */
  88. #define REG_DSU_ENTRY1 (*(__I uint32_t*)0x41003004U) /**< (DSU) CoreSight ROM Table Entry 1 */
  89. #define REG_DSU_END (*(__I uint32_t*)0x41003008U) /**< (DSU) CoreSight ROM Table End */
  90. #define REG_DSU_MEMTYPE (*(__I uint32_t*)0x41003FCCU) /**< (DSU) CoreSight ROM Table Memory Type */
  91. #define REG_DSU_PID4 (*(__I uint32_t*)0x41003FD0U) /**< (DSU) Peripheral Identification 4 */
  92. #define REG_DSU_PID5 (*(__I uint32_t*)0x41003FD4U) /**< (DSU) Peripheral Identification 5 */
  93. #define REG_DSU_PID6 (*(__I uint32_t*)0x41003FD8U) /**< (DSU) Peripheral Identification 6 */
  94. #define REG_DSU_PID7 (*(__I uint32_t*)0x41003FDCU) /**< (DSU) Peripheral Identification 7 */
  95. #define REG_DSU_PID0 (*(__I uint32_t*)0x41003FE0U) /**< (DSU) Peripheral Identification 0 */
  96. #define REG_DSU_PID1 (*(__I uint32_t*)0x41003FE4U) /**< (DSU) Peripheral Identification 1 */
  97. #define REG_DSU_PID2 (*(__I uint32_t*)0x41003FE8U) /**< (DSU) Peripheral Identification 2 */
  98. #define REG_DSU_PID3 (*(__I uint32_t*)0x41003FECU) /**< (DSU) Peripheral Identification 3 */
  99. #define REG_DSU_CID0 (*(__I uint32_t*)0x41003FF0U) /**< (DSU) Component Identification 0 */
  100. #define REG_DSU_CID1 (*(__I uint32_t*)0x41003FF4U) /**< (DSU) Component Identification 1 */
  101. #define REG_DSU_CID2 (*(__I uint32_t*)0x41003FF8U) /**< (DSU) Component Identification 2 */
  102. #define REG_DSU_CID3 (*(__I uint32_t*)0x41003FFCU) /**< (DSU) Component Identification 3 */
  103. #endif /* (defined(__ASSEMBLER__) || defined(__IAR_SYSTEMS_ASM__)) */
  104. /* ========== Instance Parameter definitions for DSU peripheral ========== */
  105. #define DSU_DMAC_ID_DCC0 2 /* DMAC ID for DCC0 register */
  106. #define DSU_DMAC_ID_DCC1 3 /* DMAC ID for DCC1 register */
  107. #define DSU_INSTANCE_ID 33
  108. #endif /* _SAML11_DSU_INSTANCE_ */