mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Fri Jul 17 09:15:10 2015 +0100
Revision:
592:a274ee790e56
Parent:
579:53297373a894
Synchronized with git revision e7144f83a8d75df80c4877936b6ffe552b0be9e6

Full URL: https://github.com/mbedmicro/mbed/commit/e7144f83a8d75df80c4877936b6ffe552b0be9e6/

More API implementation for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 579:53297373a894 1 #ifndef _SAMD21_DSU_COMPONENT_
mbed_official 579:53297373a894 2 #define _SAMD21_DSU_COMPONENT_
mbed_official 579:53297373a894 3
mbed_official 579:53297373a894 4 /* ========================================================================== */
mbed_official 579:53297373a894 5 /** SOFTWARE API DEFINITION FOR DSU */
mbed_official 579:53297373a894 6 /* ========================================================================== */
mbed_official 579:53297373a894 7 /** \addtogroup SAMD21_DSU Device Service Unit */
mbed_official 579:53297373a894 8 /*@{*/
mbed_official 579:53297373a894 9
mbed_official 579:53297373a894 10 #define DSU_U2209
mbed_official 579:53297373a894 11 #define REV_DSU 0x200
mbed_official 579:53297373a894 12
mbed_official 579:53297373a894 13 /* -------- DSU_CTRL : (DSU Offset: 0x0000) ( /W 8) Control -------- */
mbed_official 579:53297373a894 14 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 15 typedef union {
mbed_official 579:53297373a894 16 struct {
mbed_official 579:53297373a894 17 uint8_t SWRST:1; /*!< bit: 0 Software Reset */
mbed_official 579:53297373a894 18 uint8_t :1; /*!< bit: 1 Reserved */
mbed_official 579:53297373a894 19 uint8_t CRC:1; /*!< bit: 2 32-bit Cyclic Redundancy Check */
mbed_official 579:53297373a894 20 uint8_t MBIST:1; /*!< bit: 3 Memory Built-In Self-Test */
mbed_official 579:53297373a894 21 uint8_t CE:1; /*!< bit: 4 Chip Erase */
mbed_official 579:53297373a894 22 uint8_t :3; /*!< bit: 5.. 7 Reserved */
mbed_official 579:53297373a894 23 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 24 uint8_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 25 } DSU_CTRL_Type;
mbed_official 579:53297373a894 26 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 27
mbed_official 579:53297373a894 28 #define DSU_CTRL_OFFSET 0x0000 /**< \brief (DSU_CTRL offset) Control */
mbed_official 579:53297373a894 29 #define DSU_CTRL_RESETVALUE 0x00ul /**< \brief (DSU_CTRL reset_value) Control */
mbed_official 579:53297373a894 30
mbed_official 579:53297373a894 31 #define DSU_CTRL_SWRST_Pos 0 /**< \brief (DSU_CTRL) Software Reset */
mbed_official 579:53297373a894 32 #define DSU_CTRL_SWRST (0x1ul << DSU_CTRL_SWRST_Pos)
mbed_official 579:53297373a894 33 #define DSU_CTRL_CRC_Pos 2 /**< \brief (DSU_CTRL) 32-bit Cyclic Redundancy Check */
mbed_official 579:53297373a894 34 #define DSU_CTRL_CRC (0x1ul << DSU_CTRL_CRC_Pos)
mbed_official 579:53297373a894 35 #define DSU_CTRL_MBIST_Pos 3 /**< \brief (DSU_CTRL) Memory Built-In Self-Test */
mbed_official 579:53297373a894 36 #define DSU_CTRL_MBIST (0x1ul << DSU_CTRL_MBIST_Pos)
mbed_official 579:53297373a894 37 #define DSU_CTRL_CE_Pos 4 /**< \brief (DSU_CTRL) Chip Erase */
mbed_official 579:53297373a894 38 #define DSU_CTRL_CE (0x1ul << DSU_CTRL_CE_Pos)
mbed_official 579:53297373a894 39 #define DSU_CTRL_MASK 0x1Dul /**< \brief (DSU_CTRL) MASK Register */
mbed_official 579:53297373a894 40
mbed_official 579:53297373a894 41 /* -------- DSU_STATUSA : (DSU Offset: 0x0001) (R/W 8) Status A -------- */
mbed_official 579:53297373a894 42 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 43 typedef union {
mbed_official 579:53297373a894 44 struct {
mbed_official 579:53297373a894 45 uint8_t DONE:1; /*!< bit: 0 Done */
mbed_official 579:53297373a894 46 uint8_t CRSTEXT:1; /*!< bit: 1 CPU Reset Phase Extension */
mbed_official 579:53297373a894 47 uint8_t BERR:1; /*!< bit: 2 Bus Error */
mbed_official 579:53297373a894 48 uint8_t FAILURE:1; /*!< bit: 3 Failure */
mbed_official 579:53297373a894 49 uint8_t PERR:1; /*!< bit: 4 Protection Error */
mbed_official 579:53297373a894 50 uint8_t :3; /*!< bit: 5.. 7 Reserved */
mbed_official 579:53297373a894 51 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 52 uint8_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 53 } DSU_STATUSA_Type;
mbed_official 579:53297373a894 54 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 55
mbed_official 579:53297373a894 56 #define DSU_STATUSA_OFFSET 0x0001 /**< \brief (DSU_STATUSA offset) Status A */
mbed_official 579:53297373a894 57 #define DSU_STATUSA_RESETVALUE 0x00ul /**< \brief (DSU_STATUSA reset_value) Status A */
mbed_official 579:53297373a894 58
mbed_official 579:53297373a894 59 #define DSU_STATUSA_DONE_Pos 0 /**< \brief (DSU_STATUSA) Done */
mbed_official 579:53297373a894 60 #define DSU_STATUSA_DONE (0x1ul << DSU_STATUSA_DONE_Pos)
mbed_official 579:53297373a894 61 #define DSU_STATUSA_CRSTEXT_Pos 1 /**< \brief (DSU_STATUSA) CPU Reset Phase Extension */
mbed_official 579:53297373a894 62 #define DSU_STATUSA_CRSTEXT (0x1ul << DSU_STATUSA_CRSTEXT_Pos)
mbed_official 579:53297373a894 63 #define DSU_STATUSA_BERR_Pos 2 /**< \brief (DSU_STATUSA) Bus Error */
mbed_official 579:53297373a894 64 #define DSU_STATUSA_BERR (0x1ul << DSU_STATUSA_BERR_Pos)
mbed_official 579:53297373a894 65 #define DSU_STATUSA_FAIL_Pos 3 /**< \brief (DSU_STATUSA) Failure */
mbed_official 579:53297373a894 66 #define DSU_STATUSA_FAIL (0x1ul << DSU_STATUSA_FAIL_Pos)
mbed_official 579:53297373a894 67 #define DSU_STATUSA_PERR_Pos 4 /**< \brief (DSU_STATUSA) Protection Error */
mbed_official 579:53297373a894 68 #define DSU_STATUSA_PERR (0x1ul << DSU_STATUSA_PERR_Pos)
mbed_official 579:53297373a894 69 #define DSU_STATUSA_MASK 0x1Ful /**< \brief (DSU_STATUSA) MASK Register */
mbed_official 579:53297373a894 70
mbed_official 579:53297373a894 71 /* -------- DSU_STATUSB : (DSU Offset: 0x0002) (R/ 8) Status B -------- */
mbed_official 579:53297373a894 72 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 73 typedef union {
mbed_official 579:53297373a894 74 struct {
mbed_official 579:53297373a894 75 uint8_t PROT:1; /*!< bit: 0 Protected */
mbed_official 579:53297373a894 76 uint8_t DBGPRES:1; /*!< bit: 1 Debugger Present */
mbed_official 579:53297373a894 77 uint8_t DCCD0:1; /*!< bit: 2 Debug Communication Channel 0 Dirty */
mbed_official 579:53297373a894 78 uint8_t DCCD1:1; /*!< bit: 3 Debug Communication Channel 1 Dirty */
mbed_official 579:53297373a894 79 uint8_t HPE:1; /*!< bit: 4 Hot-Plugging Enable */
mbed_official 579:53297373a894 80 uint8_t :3; /*!< bit: 5.. 7 Reserved */
mbed_official 579:53297373a894 81 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 82 struct {
mbed_official 579:53297373a894 83 uint8_t :2; /*!< bit: 0.. 1 Reserved */
mbed_official 579:53297373a894 84 uint8_t DCCD:2; /*!< bit: 2.. 3 Debug Communication Channel x Dirty */
mbed_official 579:53297373a894 85 uint8_t :4; /*!< bit: 4.. 7 Reserved */
mbed_official 579:53297373a894 86 } vec; /*!< Structure used for vec access */
mbed_official 579:53297373a894 87 uint8_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 88 } DSU_STATUSB_Type;
mbed_official 579:53297373a894 89 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 90
mbed_official 579:53297373a894 91 #define DSU_STATUSB_OFFSET 0x0002 /**< \brief (DSU_STATUSB offset) Status B */
mbed_official 579:53297373a894 92 #define DSU_STATUSB_RESETVALUE 0x10ul /**< \brief (DSU_STATUSB reset_value) Status B */
mbed_official 579:53297373a894 93
mbed_official 579:53297373a894 94 #define DSU_STATUSB_PROT_Pos 0 /**< \brief (DSU_STATUSB) Protected */
mbed_official 579:53297373a894 95 #define DSU_STATUSB_PROT (0x1ul << DSU_STATUSB_PROT_Pos)
mbed_official 579:53297373a894 96 #define DSU_STATUSB_DBGPRES_Pos 1 /**< \brief (DSU_STATUSB) Debugger Present */
mbed_official 579:53297373a894 97 #define DSU_STATUSB_DBGPRES (0x1ul << DSU_STATUSB_DBGPRES_Pos)
mbed_official 579:53297373a894 98 #define DSU_STATUSB_DCCD0_Pos 2 /**< \brief (DSU_STATUSB) Debug Communication Channel 0 Dirty */
mbed_official 579:53297373a894 99 #define DSU_STATUSB_DCCD0 (1 << DSU_STATUSB_DCCD0_Pos)
mbed_official 579:53297373a894 100 #define DSU_STATUSB_DCCD1_Pos 3 /**< \brief (DSU_STATUSB) Debug Communication Channel 1 Dirty */
mbed_official 579:53297373a894 101 #define DSU_STATUSB_DCCD1 (1 << DSU_STATUSB_DCCD1_Pos)
mbed_official 579:53297373a894 102 #define DSU_STATUSB_DCCD_Pos 2 /**< \brief (DSU_STATUSB) Debug Communication Channel x Dirty */
mbed_official 579:53297373a894 103 #define DSU_STATUSB_DCCD_Msk (0x3ul << DSU_STATUSB_DCCD_Pos)
mbed_official 579:53297373a894 104 #define DSU_STATUSB_DCCD(value) ((DSU_STATUSB_DCCD_Msk & ((value) << DSU_STATUSB_DCCD_Pos)))
mbed_official 579:53297373a894 105 #define DSU_STATUSB_HPE_Pos 4 /**< \brief (DSU_STATUSB) Hot-Plugging Enable */
mbed_official 579:53297373a894 106 #define DSU_STATUSB_HPE (0x1ul << DSU_STATUSB_HPE_Pos)
mbed_official 579:53297373a894 107 #define DSU_STATUSB_MASK 0x1Ful /**< \brief (DSU_STATUSB) MASK Register */
mbed_official 579:53297373a894 108
mbed_official 579:53297373a894 109 /* -------- DSU_ADDR : (DSU Offset: 0x0004) (R/W 32) Address -------- */
mbed_official 579:53297373a894 110 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 111 typedef union {
mbed_official 579:53297373a894 112 struct {
mbed_official 579:53297373a894 113 uint32_t :2; /*!< bit: 0.. 1 Reserved */
mbed_official 579:53297373a894 114 uint32_t ADDR:30; /*!< bit: 2..31 Address */
mbed_official 579:53297373a894 115 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 116 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 117 } DSU_ADDR_Type;
mbed_official 579:53297373a894 118 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 119
mbed_official 579:53297373a894 120 #define DSU_ADDR_OFFSET 0x0004 /**< \brief (DSU_ADDR offset) Address */
mbed_official 579:53297373a894 121 #define DSU_ADDR_RESETVALUE 0x00000000ul /**< \brief (DSU_ADDR reset_value) Address */
mbed_official 579:53297373a894 122
mbed_official 579:53297373a894 123 #define DSU_ADDR_ADDR_Pos 2 /**< \brief (DSU_ADDR) Address */
mbed_official 579:53297373a894 124 #define DSU_ADDR_ADDR_Msk (0x3FFFFFFFul << DSU_ADDR_ADDR_Pos)
mbed_official 579:53297373a894 125 #define DSU_ADDR_ADDR(value) ((DSU_ADDR_ADDR_Msk & ((value) << DSU_ADDR_ADDR_Pos)))
mbed_official 579:53297373a894 126 #define DSU_ADDR_MASK 0xFFFFFFFCul /**< \brief (DSU_ADDR) MASK Register */
mbed_official 579:53297373a894 127
mbed_official 579:53297373a894 128 /* -------- DSU_LENGTH : (DSU Offset: 0x0008) (R/W 32) Length -------- */
mbed_official 579:53297373a894 129 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 130 typedef union {
mbed_official 579:53297373a894 131 struct {
mbed_official 579:53297373a894 132 uint32_t :2; /*!< bit: 0.. 1 Reserved */
mbed_official 579:53297373a894 133 uint32_t LENGTH:30; /*!< bit: 2..31 Length */
mbed_official 579:53297373a894 134 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 135 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 136 } DSU_LENGTH_Type;
mbed_official 579:53297373a894 137 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 138
mbed_official 579:53297373a894 139 #define DSU_LENGTH_OFFSET 0x0008 /**< \brief (DSU_LENGTH offset) Length */
mbed_official 579:53297373a894 140 #define DSU_LENGTH_RESETVALUE 0x00000000ul /**< \brief (DSU_LENGTH reset_value) Length */
mbed_official 579:53297373a894 141
mbed_official 579:53297373a894 142 #define DSU_LENGTH_LENGTH_Pos 2 /**< \brief (DSU_LENGTH) Length */
mbed_official 579:53297373a894 143 #define DSU_LENGTH_LENGTH_Msk (0x3FFFFFFFul << DSU_LENGTH_LENGTH_Pos)
mbed_official 579:53297373a894 144 #define DSU_LENGTH_LENGTH(value) ((DSU_LENGTH_LENGTH_Msk & ((value) << DSU_LENGTH_LENGTH_Pos)))
mbed_official 579:53297373a894 145 #define DSU_LENGTH_MASK 0xFFFFFFFCul /**< \brief (DSU_LENGTH) MASK Register */
mbed_official 579:53297373a894 146
mbed_official 579:53297373a894 147 /* -------- DSU_DATA : (DSU Offset: 0x000C) (R/W 32) Data -------- */
mbed_official 579:53297373a894 148 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 149 typedef union {
mbed_official 579:53297373a894 150 struct {
mbed_official 579:53297373a894 151 uint32_t DATA:32; /*!< bit: 0..31 Data */
mbed_official 579:53297373a894 152 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 153 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 154 } DSU_DATA_Type;
mbed_official 579:53297373a894 155 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 156
mbed_official 579:53297373a894 157 #define DSU_DATA_OFFSET 0x000C /**< \brief (DSU_DATA offset) Data */
mbed_official 579:53297373a894 158 #define DSU_DATA_RESETVALUE 0x00000000ul /**< \brief (DSU_DATA reset_value) Data */
mbed_official 579:53297373a894 159
mbed_official 579:53297373a894 160 #define DSU_DATA_DATA_Pos 0 /**< \brief (DSU_DATA) Data */
mbed_official 579:53297373a894 161 #define DSU_DATA_DATA_Msk (0xFFFFFFFFul << DSU_DATA_DATA_Pos)
mbed_official 579:53297373a894 162 #define DSU_DATA_DATA(value) ((DSU_DATA_DATA_Msk & ((value) << DSU_DATA_DATA_Pos)))
mbed_official 579:53297373a894 163 #define DSU_DATA_MASK 0xFFFFFFFFul /**< \brief (DSU_DATA) MASK Register */
mbed_official 579:53297373a894 164
mbed_official 579:53297373a894 165 /* -------- DSU_DCC : (DSU Offset: 0x0010) (R/W 32) Debug Communication Channel n -------- */
mbed_official 579:53297373a894 166 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 167 typedef union {
mbed_official 579:53297373a894 168 struct {
mbed_official 579:53297373a894 169 uint32_t DATA:32; /*!< bit: 0..31 Data */
mbed_official 579:53297373a894 170 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 171 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 172 } DSU_DCC_Type;
mbed_official 579:53297373a894 173 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 174
mbed_official 579:53297373a894 175 #define DSU_DCC_OFFSET 0x0010 /**< \brief (DSU_DCC offset) Debug Communication Channel n */
mbed_official 579:53297373a894 176 #define DSU_DCC_RESETVALUE 0x00000000ul /**< \brief (DSU_DCC reset_value) Debug Communication Channel n */
mbed_official 579:53297373a894 177
mbed_official 579:53297373a894 178 #define DSU_DCC_DATA_Pos 0 /**< \brief (DSU_DCC) Data */
mbed_official 579:53297373a894 179 #define DSU_DCC_DATA_Msk (0xFFFFFFFFul << DSU_DCC_DATA_Pos)
mbed_official 579:53297373a894 180 #define DSU_DCC_DATA(value) ((DSU_DCC_DATA_Msk & ((value) << DSU_DCC_DATA_Pos)))
mbed_official 579:53297373a894 181 #define DSU_DCC_MASK 0xFFFFFFFFul /**< \brief (DSU_DCC) MASK Register */
mbed_official 579:53297373a894 182
mbed_official 579:53297373a894 183 /* -------- DSU_DID : (DSU Offset: 0x0018) (R/ 32) Device Identification -------- */
mbed_official 579:53297373a894 184 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 185 typedef union {
mbed_official 579:53297373a894 186 struct {
mbed_official 579:53297373a894 187 uint32_t DEVSEL:8; /*!< bit: 0.. 7 Device Select */
mbed_official 579:53297373a894 188 uint32_t REVISION:4; /*!< bit: 8..11 Revision */
mbed_official 579:53297373a894 189 uint32_t DIE:4; /*!< bit: 12..15 Die Identification */
mbed_official 579:53297373a894 190 uint32_t SERIES:6; /*!< bit: 16..21 Product Series */
mbed_official 579:53297373a894 191 uint32_t :1; /*!< bit: 22 Reserved */
mbed_official 579:53297373a894 192 uint32_t FAMILY:5; /*!< bit: 23..27 Product Family */
mbed_official 579:53297373a894 193 uint32_t PROCESSOR:4; /*!< bit: 28..31 Processor */
mbed_official 579:53297373a894 194 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 195 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 196 } DSU_DID_Type;
mbed_official 579:53297373a894 197 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 198
mbed_official 579:53297373a894 199 #define DSU_DID_OFFSET 0x0018 /**< \brief (DSU_DID offset) Device Identification */
mbed_official 579:53297373a894 200
mbed_official 579:53297373a894 201 #define DSU_DID_DEVSEL_Pos 0 /**< \brief (DSU_DID) Device Select */
mbed_official 579:53297373a894 202 #define DSU_DID_DEVSEL_Msk (0xFFul << DSU_DID_DEVSEL_Pos)
mbed_official 579:53297373a894 203 #define DSU_DID_DEVSEL(value) ((DSU_DID_DEVSEL_Msk & ((value) << DSU_DID_DEVSEL_Pos)))
mbed_official 579:53297373a894 204 #define DSU_DID_REVISION_Pos 8 /**< \brief (DSU_DID) Revision */
mbed_official 579:53297373a894 205 #define DSU_DID_REVISION_Msk (0xFul << DSU_DID_REVISION_Pos)
mbed_official 579:53297373a894 206 #define DSU_DID_REVISION(value) ((DSU_DID_REVISION_Msk & ((value) << DSU_DID_REVISION_Pos)))
mbed_official 579:53297373a894 207 #define DSU_DID_DIE_Pos 12 /**< \brief (DSU_DID) Die Identification */
mbed_official 579:53297373a894 208 #define DSU_DID_DIE_Msk (0xFul << DSU_DID_DIE_Pos)
mbed_official 579:53297373a894 209 #define DSU_DID_DIE(value) ((DSU_DID_DIE_Msk & ((value) << DSU_DID_DIE_Pos)))
mbed_official 579:53297373a894 210 #define DSU_DID_SERIES_Pos 16 /**< \brief (DSU_DID) Product Series */
mbed_official 579:53297373a894 211 #define DSU_DID_SERIES_Msk (0x3Ful << DSU_DID_SERIES_Pos)
mbed_official 579:53297373a894 212 #define DSU_DID_SERIES(value) ((DSU_DID_SERIES_Msk & ((value) << DSU_DID_SERIES_Pos)))
mbed_official 579:53297373a894 213 #define DSU_DID_FAMILY_Pos 23 /**< \brief (DSU_DID) Product Family */
mbed_official 579:53297373a894 214 #define DSU_DID_FAMILY_Msk (0x1Ful << DSU_DID_FAMILY_Pos)
mbed_official 579:53297373a894 215 #define DSU_DID_FAMILY(value) ((DSU_DID_FAMILY_Msk & ((value) << DSU_DID_FAMILY_Pos)))
mbed_official 579:53297373a894 216 #define DSU_DID_PROCESSOR_Pos 28 /**< \brief (DSU_DID) Processor */
mbed_official 579:53297373a894 217 #define DSU_DID_PROCESSOR_Msk (0xFul << DSU_DID_PROCESSOR_Pos)
mbed_official 579:53297373a894 218 #define DSU_DID_PROCESSOR(value) ((DSU_DID_PROCESSOR_Msk & ((value) << DSU_DID_PROCESSOR_Pos)))
mbed_official 579:53297373a894 219 #define DSU_DID_MASK 0xFFBFFFFFul /**< \brief (DSU_DID) MASK Register */
mbed_official 579:53297373a894 220
mbed_official 579:53297373a894 221 /* -------- DSU_ENTRY : (DSU Offset: 0x1000) (R/ 32) Coresight ROM Table Entry n -------- */
mbed_official 579:53297373a894 222 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 223 typedef union {
mbed_official 579:53297373a894 224 struct {
mbed_official 579:53297373a894 225 uint32_t EPRES:1; /*!< bit: 0 Entry Present */
mbed_official 579:53297373a894 226 uint32_t FMT:1; /*!< bit: 1 Format */
mbed_official 579:53297373a894 227 uint32_t :10; /*!< bit: 2..11 Reserved */
mbed_official 579:53297373a894 228 uint32_t ADDOFF:20; /*!< bit: 12..31 Address Offset */
mbed_official 579:53297373a894 229 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 230 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 231 } DSU_ENTRY_Type;
mbed_official 579:53297373a894 232 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 233
mbed_official 579:53297373a894 234 #define DSU_ENTRY_OFFSET 0x1000 /**< \brief (DSU_ENTRY offset) Coresight ROM Table Entry n */
mbed_official 579:53297373a894 235 #define DSU_ENTRY_RESETVALUE 0x00000002ul /**< \brief (DSU_ENTRY reset_value) Coresight ROM Table Entry n */
mbed_official 579:53297373a894 236
mbed_official 579:53297373a894 237 #define DSU_ENTRY_EPRES_Pos 0 /**< \brief (DSU_ENTRY) Entry Present */
mbed_official 579:53297373a894 238 #define DSU_ENTRY_EPRES (0x1ul << DSU_ENTRY_EPRES_Pos)
mbed_official 579:53297373a894 239 #define DSU_ENTRY_FMT_Pos 1 /**< \brief (DSU_ENTRY) Format */
mbed_official 579:53297373a894 240 #define DSU_ENTRY_FMT (0x1ul << DSU_ENTRY_FMT_Pos)
mbed_official 579:53297373a894 241 #define DSU_ENTRY_ADDOFF_Pos 12 /**< \brief (DSU_ENTRY) Address Offset */
mbed_official 579:53297373a894 242 #define DSU_ENTRY_ADDOFF_Msk (0xFFFFFul << DSU_ENTRY_ADDOFF_Pos)
mbed_official 579:53297373a894 243 #define DSU_ENTRY_ADDOFF(value) ((DSU_ENTRY_ADDOFF_Msk & ((value) << DSU_ENTRY_ADDOFF_Pos)))
mbed_official 579:53297373a894 244 #define DSU_ENTRY_MASK 0xFFFFF003ul /**< \brief (DSU_ENTRY) MASK Register */
mbed_official 579:53297373a894 245
mbed_official 579:53297373a894 246 /* -------- DSU_END : (DSU Offset: 0x1008) (R/ 32) Coresight ROM Table End -------- */
mbed_official 579:53297373a894 247 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 248 typedef union {
mbed_official 579:53297373a894 249 struct {
mbed_official 579:53297373a894 250 uint32_t END:32; /*!< bit: 0..31 End Marker */
mbed_official 579:53297373a894 251 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 252 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 253 } DSU_END_Type;
mbed_official 579:53297373a894 254 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 255
mbed_official 579:53297373a894 256 #define DSU_END_OFFSET 0x1008 /**< \brief (DSU_END offset) Coresight ROM Table End */
mbed_official 579:53297373a894 257 #define DSU_END_RESETVALUE 0x00000000ul /**< \brief (DSU_END reset_value) Coresight ROM Table End */
mbed_official 579:53297373a894 258
mbed_official 579:53297373a894 259 #define DSU_END_END_Pos 0 /**< \brief (DSU_END) End Marker */
mbed_official 579:53297373a894 260 #define DSU_END_END_Msk (0xFFFFFFFFul << DSU_END_END_Pos)
mbed_official 579:53297373a894 261 #define DSU_END_END(value) ((DSU_END_END_Msk & ((value) << DSU_END_END_Pos)))
mbed_official 579:53297373a894 262 #define DSU_END_MASK 0xFFFFFFFFul /**< \brief (DSU_END) MASK Register */
mbed_official 579:53297373a894 263
mbed_official 579:53297373a894 264 /* -------- DSU_MEMTYPE : (DSU Offset: 0x1FCC) (R/ 32) Coresight ROM Table Memory Type -------- */
mbed_official 579:53297373a894 265 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 266 typedef union {
mbed_official 579:53297373a894 267 struct {
mbed_official 579:53297373a894 268 uint32_t SMEMP:1; /*!< bit: 0 System Memory Present */
mbed_official 579:53297373a894 269 uint32_t :31; /*!< bit: 1..31 Reserved */
mbed_official 579:53297373a894 270 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 271 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 272 } DSU_MEMTYPE_Type;
mbed_official 579:53297373a894 273 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 274
mbed_official 579:53297373a894 275 #define DSU_MEMTYPE_OFFSET 0x1FCC /**< \brief (DSU_MEMTYPE offset) Coresight ROM Table Memory Type */
mbed_official 579:53297373a894 276 #define DSU_MEMTYPE_RESETVALUE 0x00000000ul /**< \brief (DSU_MEMTYPE reset_value) Coresight ROM Table Memory Type */
mbed_official 579:53297373a894 277
mbed_official 579:53297373a894 278 #define DSU_MEMTYPE_SMEMP_Pos 0 /**< \brief (DSU_MEMTYPE) System Memory Present */
mbed_official 579:53297373a894 279 #define DSU_MEMTYPE_SMEMP (0x1ul << DSU_MEMTYPE_SMEMP_Pos)
mbed_official 579:53297373a894 280 #define DSU_MEMTYPE_MASK 0x00000001ul /**< \brief (DSU_MEMTYPE) MASK Register */
mbed_official 579:53297373a894 281
mbed_official 579:53297373a894 282 /* -------- DSU_PID4 : (DSU Offset: 0x1FD0) (R/ 32) Peripheral Identification 4 -------- */
mbed_official 579:53297373a894 283 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 284 typedef union {
mbed_official 579:53297373a894 285 struct {
mbed_official 579:53297373a894 286 uint32_t JEPCC:4; /*!< bit: 0.. 3 JEP-106 Continuation Code */
mbed_official 579:53297373a894 287 uint32_t FKBC:4; /*!< bit: 4.. 7 4KB Count */
mbed_official 579:53297373a894 288 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 289 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 290 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 291 } DSU_PID4_Type;
mbed_official 579:53297373a894 292 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 293
mbed_official 579:53297373a894 294 #define DSU_PID4_OFFSET 0x1FD0 /**< \brief (DSU_PID4 offset) Peripheral Identification 4 */
mbed_official 579:53297373a894 295 #define DSU_PID4_RESETVALUE 0x00000000ul /**< \brief (DSU_PID4 reset_value) Peripheral Identification 4 */
mbed_official 579:53297373a894 296
mbed_official 579:53297373a894 297 #define DSU_PID4_JEPCC_Pos 0 /**< \brief (DSU_PID4) JEP-106 Continuation Code */
mbed_official 579:53297373a894 298 #define DSU_PID4_JEPCC_Msk (0xFul << DSU_PID4_JEPCC_Pos)
mbed_official 579:53297373a894 299 #define DSU_PID4_JEPCC(value) ((DSU_PID4_JEPCC_Msk & ((value) << DSU_PID4_JEPCC_Pos)))
mbed_official 579:53297373a894 300 #define DSU_PID4_FKBC_Pos 4 /**< \brief (DSU_PID4) 4KB Count */
mbed_official 579:53297373a894 301 #define DSU_PID4_FKBC_Msk (0xFul << DSU_PID4_FKBC_Pos)
mbed_official 579:53297373a894 302 #define DSU_PID4_FKBC(value) ((DSU_PID4_FKBC_Msk & ((value) << DSU_PID4_FKBC_Pos)))
mbed_official 579:53297373a894 303 #define DSU_PID4_MASK 0x000000FFul /**< \brief (DSU_PID4) MASK Register */
mbed_official 579:53297373a894 304
mbed_official 579:53297373a894 305 /* -------- DSU_PID0 : (DSU Offset: 0x1FE0) (R/ 32) Peripheral Identification 0 -------- */
mbed_official 579:53297373a894 306 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 307 typedef union {
mbed_official 579:53297373a894 308 struct {
mbed_official 579:53297373a894 309 uint32_t PARTNBL:8; /*!< bit: 0.. 7 Part Number Low */
mbed_official 579:53297373a894 310 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 311 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 312 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 313 } DSU_PID0_Type;
mbed_official 579:53297373a894 314 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 315
mbed_official 579:53297373a894 316 #define DSU_PID0_OFFSET 0x1FE0 /**< \brief (DSU_PID0 offset) Peripheral Identification 0 */
mbed_official 579:53297373a894 317 #define DSU_PID0_RESETVALUE 0x000000D0ul /**< \brief (DSU_PID0 reset_value) Peripheral Identification 0 */
mbed_official 579:53297373a894 318
mbed_official 579:53297373a894 319 #define DSU_PID0_PARTNBL_Pos 0 /**< \brief (DSU_PID0) Part Number Low */
mbed_official 579:53297373a894 320 #define DSU_PID0_PARTNBL_Msk (0xFFul << DSU_PID0_PARTNBL_Pos)
mbed_official 579:53297373a894 321 #define DSU_PID0_PARTNBL(value) ((DSU_PID0_PARTNBL_Msk & ((value) << DSU_PID0_PARTNBL_Pos)))
mbed_official 579:53297373a894 322 #define DSU_PID0_MASK 0x000000FFul /**< \brief (DSU_PID0) MASK Register */
mbed_official 579:53297373a894 323
mbed_official 579:53297373a894 324 /* -------- DSU_PID1 : (DSU Offset: 0x1FE4) (R/ 32) Peripheral Identification 1 -------- */
mbed_official 579:53297373a894 325 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 326 typedef union {
mbed_official 579:53297373a894 327 struct {
mbed_official 579:53297373a894 328 uint32_t PARTNBH:4; /*!< bit: 0.. 3 Part Number High */
mbed_official 579:53297373a894 329 uint32_t JEPIDCL:4; /*!< bit: 4.. 7 Low part of the JEP-106 Identity Code */
mbed_official 579:53297373a894 330 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 331 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 332 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 333 } DSU_PID1_Type;
mbed_official 579:53297373a894 334 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 335
mbed_official 579:53297373a894 336 #define DSU_PID1_OFFSET 0x1FE4 /**< \brief (DSU_PID1 offset) Peripheral Identification 1 */
mbed_official 579:53297373a894 337 #define DSU_PID1_RESETVALUE 0x000000FCul /**< \brief (DSU_PID1 reset_value) Peripheral Identification 1 */
mbed_official 579:53297373a894 338
mbed_official 579:53297373a894 339 #define DSU_PID1_PARTNBH_Pos 0 /**< \brief (DSU_PID1) Part Number High */
mbed_official 579:53297373a894 340 #define DSU_PID1_PARTNBH_Msk (0xFul << DSU_PID1_PARTNBH_Pos)
mbed_official 579:53297373a894 341 #define DSU_PID1_PARTNBH(value) ((DSU_PID1_PARTNBH_Msk & ((value) << DSU_PID1_PARTNBH_Pos)))
mbed_official 579:53297373a894 342 #define DSU_PID1_JEPIDCL_Pos 4 /**< \brief (DSU_PID1) Low part of the JEP-106 Identity Code */
mbed_official 579:53297373a894 343 #define DSU_PID1_JEPIDCL_Msk (0xFul << DSU_PID1_JEPIDCL_Pos)
mbed_official 579:53297373a894 344 #define DSU_PID1_JEPIDCL(value) ((DSU_PID1_JEPIDCL_Msk & ((value) << DSU_PID1_JEPIDCL_Pos)))
mbed_official 579:53297373a894 345 #define DSU_PID1_MASK 0x000000FFul /**< \brief (DSU_PID1) MASK Register */
mbed_official 579:53297373a894 346
mbed_official 579:53297373a894 347 /* -------- DSU_PID2 : (DSU Offset: 0x1FE8) (R/ 32) Peripheral Identification 2 -------- */
mbed_official 579:53297373a894 348 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 349 typedef union {
mbed_official 579:53297373a894 350 struct {
mbed_official 579:53297373a894 351 uint32_t JEPIDCH:3; /*!< bit: 0.. 2 JEP-106 Identity Code High */
mbed_official 579:53297373a894 352 uint32_t JEPU:1; /*!< bit: 3 JEP-106 Identity Code is used */
mbed_official 579:53297373a894 353 uint32_t REVISION:4; /*!< bit: 4.. 7 Revision Number */
mbed_official 579:53297373a894 354 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 355 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 356 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 357 } DSU_PID2_Type;
mbed_official 579:53297373a894 358 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 359
mbed_official 579:53297373a894 360 #define DSU_PID2_OFFSET 0x1FE8 /**< \brief (DSU_PID2 offset) Peripheral Identification 2 */
mbed_official 579:53297373a894 361 #define DSU_PID2_RESETVALUE 0x00000009ul /**< \brief (DSU_PID2 reset_value) Peripheral Identification 2 */
mbed_official 579:53297373a894 362
mbed_official 579:53297373a894 363 #define DSU_PID2_JEPIDCH_Pos 0 /**< \brief (DSU_PID2) JEP-106 Identity Code High */
mbed_official 579:53297373a894 364 #define DSU_PID2_JEPIDCH_Msk (0x7ul << DSU_PID2_JEPIDCH_Pos)
mbed_official 579:53297373a894 365 #define DSU_PID2_JEPIDCH(value) ((DSU_PID2_JEPIDCH_Msk & ((value) << DSU_PID2_JEPIDCH_Pos)))
mbed_official 579:53297373a894 366 #define DSU_PID2_JEPU_Pos 3 /**< \brief (DSU_PID2) JEP-106 Identity Code is used */
mbed_official 579:53297373a894 367 #define DSU_PID2_JEPU (0x1ul << DSU_PID2_JEPU_Pos)
mbed_official 579:53297373a894 368 #define DSU_PID2_REVISION_Pos 4 /**< \brief (DSU_PID2) Revision Number */
mbed_official 579:53297373a894 369 #define DSU_PID2_REVISION_Msk (0xFul << DSU_PID2_REVISION_Pos)
mbed_official 579:53297373a894 370 #define DSU_PID2_REVISION(value) ((DSU_PID2_REVISION_Msk & ((value) << DSU_PID2_REVISION_Pos)))
mbed_official 579:53297373a894 371 #define DSU_PID2_MASK 0x000000FFul /**< \brief (DSU_PID2) MASK Register */
mbed_official 579:53297373a894 372
mbed_official 579:53297373a894 373 /* -------- DSU_PID3 : (DSU Offset: 0x1FEC) (R/ 32) Peripheral Identification 3 -------- */
mbed_official 579:53297373a894 374 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 375 typedef union {
mbed_official 579:53297373a894 376 struct {
mbed_official 579:53297373a894 377 uint32_t CUSMOD:4; /*!< bit: 0.. 3 ARM CUSMOD */
mbed_official 579:53297373a894 378 uint32_t REVAND:4; /*!< bit: 4.. 7 Revision Number */
mbed_official 579:53297373a894 379 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 380 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 381 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 382 } DSU_PID3_Type;
mbed_official 579:53297373a894 383 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 384
mbed_official 579:53297373a894 385 #define DSU_PID3_OFFSET 0x1FEC /**< \brief (DSU_PID3 offset) Peripheral Identification 3 */
mbed_official 579:53297373a894 386 #define DSU_PID3_RESETVALUE 0x00000000ul /**< \brief (DSU_PID3 reset_value) Peripheral Identification 3 */
mbed_official 579:53297373a894 387
mbed_official 579:53297373a894 388 #define DSU_PID3_CUSMOD_Pos 0 /**< \brief (DSU_PID3) ARM CUSMOD */
mbed_official 579:53297373a894 389 #define DSU_PID3_CUSMOD_Msk (0xFul << DSU_PID3_CUSMOD_Pos)
mbed_official 579:53297373a894 390 #define DSU_PID3_CUSMOD(value) ((DSU_PID3_CUSMOD_Msk & ((value) << DSU_PID3_CUSMOD_Pos)))
mbed_official 579:53297373a894 391 #define DSU_PID3_REVAND_Pos 4 /**< \brief (DSU_PID3) Revision Number */
mbed_official 579:53297373a894 392 #define DSU_PID3_REVAND_Msk (0xFul << DSU_PID3_REVAND_Pos)
mbed_official 579:53297373a894 393 #define DSU_PID3_REVAND(value) ((DSU_PID3_REVAND_Msk & ((value) << DSU_PID3_REVAND_Pos)))
mbed_official 579:53297373a894 394 #define DSU_PID3_MASK 0x000000FFul /**< \brief (DSU_PID3) MASK Register */
mbed_official 579:53297373a894 395
mbed_official 579:53297373a894 396 /* -------- DSU_CID0 : (DSU Offset: 0x1FF0) (R/ 32) Component Identification 0 -------- */
mbed_official 579:53297373a894 397 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 398 typedef union {
mbed_official 579:53297373a894 399 struct {
mbed_official 579:53297373a894 400 uint32_t PREAMBLEB0:8; /*!< bit: 0.. 7 Preamble Byte 0 */
mbed_official 579:53297373a894 401 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 402 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 403 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 404 } DSU_CID0_Type;
mbed_official 579:53297373a894 405 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 406
mbed_official 579:53297373a894 407 #define DSU_CID0_OFFSET 0x1FF0 /**< \brief (DSU_CID0 offset) Component Identification 0 */
mbed_official 579:53297373a894 408 #define DSU_CID0_RESETVALUE 0x0000000Dul /**< \brief (DSU_CID0 reset_value) Component Identification 0 */
mbed_official 579:53297373a894 409
mbed_official 579:53297373a894 410 #define DSU_CID0_PREAMBLEB0_Pos 0 /**< \brief (DSU_CID0) Preamble Byte 0 */
mbed_official 579:53297373a894 411 #define DSU_CID0_PREAMBLEB0_Msk (0xFFul << DSU_CID0_PREAMBLEB0_Pos)
mbed_official 579:53297373a894 412 #define DSU_CID0_PREAMBLEB0(value) ((DSU_CID0_PREAMBLEB0_Msk & ((value) << DSU_CID0_PREAMBLEB0_Pos)))
mbed_official 579:53297373a894 413 #define DSU_CID0_MASK 0x000000FFul /**< \brief (DSU_CID0) MASK Register */
mbed_official 579:53297373a894 414
mbed_official 579:53297373a894 415 /* -------- DSU_CID1 : (DSU Offset: 0x1FF4) (R/ 32) Component Identification 1 -------- */
mbed_official 579:53297373a894 416 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 417 typedef union {
mbed_official 579:53297373a894 418 struct {
mbed_official 579:53297373a894 419 uint32_t PREAMBLE:4; /*!< bit: 0.. 3 Preamble */
mbed_official 579:53297373a894 420 uint32_t CCLASS:4; /*!< bit: 4.. 7 Component Class */
mbed_official 579:53297373a894 421 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 422 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 423 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 424 } DSU_CID1_Type;
mbed_official 579:53297373a894 425 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 426
mbed_official 579:53297373a894 427 #define DSU_CID1_OFFSET 0x1FF4 /**< \brief (DSU_CID1 offset) Component Identification 1 */
mbed_official 579:53297373a894 428 #define DSU_CID1_RESETVALUE 0x00000010ul /**< \brief (DSU_CID1 reset_value) Component Identification 1 */
mbed_official 579:53297373a894 429
mbed_official 579:53297373a894 430 #define DSU_CID1_PREAMBLE_Pos 0 /**< \brief (DSU_CID1) Preamble */
mbed_official 579:53297373a894 431 #define DSU_CID1_PREAMBLE_Msk (0xFul << DSU_CID1_PREAMBLE_Pos)
mbed_official 579:53297373a894 432 #define DSU_CID1_PREAMBLE(value) ((DSU_CID1_PREAMBLE_Msk & ((value) << DSU_CID1_PREAMBLE_Pos)))
mbed_official 579:53297373a894 433 #define DSU_CID1_CCLASS_Pos 4 /**< \brief (DSU_CID1) Component Class */
mbed_official 579:53297373a894 434 #define DSU_CID1_CCLASS_Msk (0xFul << DSU_CID1_CCLASS_Pos)
mbed_official 579:53297373a894 435 #define DSU_CID1_CCLASS(value) ((DSU_CID1_CCLASS_Msk & ((value) << DSU_CID1_CCLASS_Pos)))
mbed_official 579:53297373a894 436 #define DSU_CID1_MASK 0x000000FFul /**< \brief (DSU_CID1) MASK Register */
mbed_official 579:53297373a894 437
mbed_official 579:53297373a894 438 /* -------- DSU_CID2 : (DSU Offset: 0x1FF8) (R/ 32) Component Identification 2 -------- */
mbed_official 579:53297373a894 439 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 440 typedef union {
mbed_official 579:53297373a894 441 struct {
mbed_official 579:53297373a894 442 uint32_t PREAMBLEB2:8; /*!< bit: 0.. 7 Preamble Byte 2 */
mbed_official 579:53297373a894 443 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 444 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 445 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 446 } DSU_CID2_Type;
mbed_official 579:53297373a894 447 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 448
mbed_official 579:53297373a894 449 #define DSU_CID2_OFFSET 0x1FF8 /**< \brief (DSU_CID2 offset) Component Identification 2 */
mbed_official 579:53297373a894 450 #define DSU_CID2_RESETVALUE 0x00000005ul /**< \brief (DSU_CID2 reset_value) Component Identification 2 */
mbed_official 579:53297373a894 451
mbed_official 579:53297373a894 452 #define DSU_CID2_PREAMBLEB2_Pos 0 /**< \brief (DSU_CID2) Preamble Byte 2 */
mbed_official 579:53297373a894 453 #define DSU_CID2_PREAMBLEB2_Msk (0xFFul << DSU_CID2_PREAMBLEB2_Pos)
mbed_official 579:53297373a894 454 #define DSU_CID2_PREAMBLEB2(value) ((DSU_CID2_PREAMBLEB2_Msk & ((value) << DSU_CID2_PREAMBLEB2_Pos)))
mbed_official 579:53297373a894 455 #define DSU_CID2_MASK 0x000000FFul /**< \brief (DSU_CID2) MASK Register */
mbed_official 579:53297373a894 456
mbed_official 579:53297373a894 457 /* -------- DSU_CID3 : (DSU Offset: 0x1FFC) (R/ 32) Component Identification 3 -------- */
mbed_official 579:53297373a894 458 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 459 typedef union {
mbed_official 579:53297373a894 460 struct {
mbed_official 579:53297373a894 461 uint32_t PREAMBLEB3:8; /*!< bit: 0.. 7 Preamble Byte 3 */
mbed_official 579:53297373a894 462 uint32_t :24; /*!< bit: 8..31 Reserved */
mbed_official 579:53297373a894 463 } bit; /*!< Structure used for bit access */
mbed_official 579:53297373a894 464 uint32_t reg; /*!< Type used for register access */
mbed_official 579:53297373a894 465 } DSU_CID3_Type;
mbed_official 579:53297373a894 466 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 467
mbed_official 579:53297373a894 468 #define DSU_CID3_OFFSET 0x1FFC /**< \brief (DSU_CID3 offset) Component Identification 3 */
mbed_official 579:53297373a894 469 #define DSU_CID3_RESETVALUE 0x000000B1ul /**< \brief (DSU_CID3 reset_value) Component Identification 3 */
mbed_official 579:53297373a894 470
mbed_official 579:53297373a894 471 #define DSU_CID3_PREAMBLEB3_Pos 0 /**< \brief (DSU_CID3) Preamble Byte 3 */
mbed_official 579:53297373a894 472 #define DSU_CID3_PREAMBLEB3_Msk (0xFFul << DSU_CID3_PREAMBLEB3_Pos)
mbed_official 579:53297373a894 473 #define DSU_CID3_PREAMBLEB3(value) ((DSU_CID3_PREAMBLEB3_Msk & ((value) << DSU_CID3_PREAMBLEB3_Pos)))
mbed_official 579:53297373a894 474 #define DSU_CID3_MASK 0x000000FFul /**< \brief (DSU_CID3) MASK Register */
mbed_official 579:53297373a894 475
mbed_official 579:53297373a894 476 /** \brief DSU hardware registers */
mbed_official 579:53297373a894 477 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__))
mbed_official 579:53297373a894 478 typedef struct {
mbed_official 579:53297373a894 479 __O DSU_CTRL_Type CTRL; /**< \brief Offset: 0x0000 ( /W 8) Control */
mbed_official 579:53297373a894 480 __IO DSU_STATUSA_Type STATUSA; /**< \brief Offset: 0x0001 (R/W 8) Status A */
mbed_official 579:53297373a894 481 __I DSU_STATUSB_Type STATUSB; /**< \brief Offset: 0x0002 (R/ 8) Status B */
mbed_official 579:53297373a894 482 RoReg8 Reserved1[0x1];
mbed_official 579:53297373a894 483 __IO DSU_ADDR_Type ADDR; /**< \brief Offset: 0x0004 (R/W 32) Address */
mbed_official 579:53297373a894 484 __IO DSU_LENGTH_Type LENGTH; /**< \brief Offset: 0x0008 (R/W 32) Length */
mbed_official 579:53297373a894 485 __IO DSU_DATA_Type DATA; /**< \brief Offset: 0x000C (R/W 32) Data */
mbed_official 579:53297373a894 486 __IO DSU_DCC_Type DCC[2]; /**< \brief Offset: 0x0010 (R/W 32) Debug Communication Channel n */
mbed_official 579:53297373a894 487 __I DSU_DID_Type DID; /**< \brief Offset: 0x0018 (R/ 32) Device Identification */
mbed_official 579:53297373a894 488 RoReg8 Reserved2[0xFE4];
mbed_official 579:53297373a894 489 __I DSU_ENTRY_Type ENTRY[2]; /**< \brief Offset: 0x1000 (R/ 32) Coresight ROM Table Entry n */
mbed_official 579:53297373a894 490 __I DSU_END_Type END; /**< \brief Offset: 0x1008 (R/ 32) Coresight ROM Table End */
mbed_official 579:53297373a894 491 RoReg8 Reserved3[0xFC0];
mbed_official 579:53297373a894 492 __I DSU_MEMTYPE_Type MEMTYPE; /**< \brief Offset: 0x1FCC (R/ 32) Coresight ROM Table Memory Type */
mbed_official 579:53297373a894 493 __I DSU_PID4_Type PID4; /**< \brief Offset: 0x1FD0 (R/ 32) Peripheral Identification 4 */
mbed_official 579:53297373a894 494 RoReg8 Reserved4[0xC];
mbed_official 579:53297373a894 495 __I DSU_PID0_Type PID0; /**< \brief Offset: 0x1FE0 (R/ 32) Peripheral Identification 0 */
mbed_official 579:53297373a894 496 __I DSU_PID1_Type PID1; /**< \brief Offset: 0x1FE4 (R/ 32) Peripheral Identification 1 */
mbed_official 579:53297373a894 497 __I DSU_PID2_Type PID2; /**< \brief Offset: 0x1FE8 (R/ 32) Peripheral Identification 2 */
mbed_official 579:53297373a894 498 __I DSU_PID3_Type PID3; /**< \brief Offset: 0x1FEC (R/ 32) Peripheral Identification 3 */
mbed_official 579:53297373a894 499 __I DSU_CID0_Type CID0; /**< \brief Offset: 0x1FF0 (R/ 32) Component Identification 0 */
mbed_official 579:53297373a894 500 __I DSU_CID1_Type CID1; /**< \brief Offset: 0x1FF4 (R/ 32) Component Identification 1 */
mbed_official 579:53297373a894 501 __I DSU_CID2_Type CID2; /**< \brief Offset: 0x1FF8 (R/ 32) Component Identification 2 */
mbed_official 579:53297373a894 502 __I DSU_CID3_Type CID3; /**< \brief Offset: 0x1FFC (R/ 32) Component Identification 3 */
mbed_official 579:53297373a894 503 } Dsu;
mbed_official 579:53297373a894 504 #endif /* !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) */
mbed_official 579:53297373a894 505
mbed_official 579:53297373a894 506 /*@}*/
mbed_official 579:53297373a894 507
mbed_official 579:53297373a894 508 #endif /* _SAMD21_DSU_COMPONENT_ */