30 #ifndef _SAM3U_PMC_COMPONENT_ 31 #define _SAM3U_PMC_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 71 #define PMC_SCER_PCK0 (0x1u << 8) 72 #define PMC_SCER_PCK1 (0x1u << 9) 73 #define PMC_SCER_PCK2 (0x1u << 10) 75 #define PMC_SCDR_PCK0 (0x1u << 8) 76 #define PMC_SCDR_PCK1 (0x1u << 9) 77 #define PMC_SCDR_PCK2 (0x1u << 10) 79 #define PMC_SCSR_PCK0 (0x1u << 8) 80 #define PMC_SCSR_PCK1 (0x1u << 9) 81 #define PMC_SCSR_PCK2 (0x1u << 10) 83 #define PMC_PCER0_PID2 (0x1u << 2) 84 #define PMC_PCER0_PID3 (0x1u << 3) 85 #define PMC_PCER0_PID4 (0x1u << 4) 86 #define PMC_PCER0_PID5 (0x1u << 5) 87 #define PMC_PCER0_PID6 (0x1u << 6) 88 #define PMC_PCER0_PID7 (0x1u << 7) 89 #define PMC_PCER0_PID8 (0x1u << 8) 90 #define PMC_PCER0_PID9 (0x1u << 9) 91 #define PMC_PCER0_PID10 (0x1u << 10) 92 #define PMC_PCER0_PID11 (0x1u << 11) 93 #define PMC_PCER0_PID12 (0x1u << 12) 94 #define PMC_PCER0_PID13 (0x1u << 13) 95 #define PMC_PCER0_PID14 (0x1u << 14) 96 #define PMC_PCER0_PID15 (0x1u << 15) 97 #define PMC_PCER0_PID16 (0x1u << 16) 98 #define PMC_PCER0_PID18 (0x1u << 18) 99 #define PMC_PCER0_PID19 (0x1u << 19) 100 #define PMC_PCER0_PID20 (0x1u << 20) 101 #define PMC_PCER0_PID21 (0x1u << 21) 102 #define PMC_PCER0_PID22 (0x1u << 22) 103 #define PMC_PCER0_PID23 (0x1u << 23) 104 #define PMC_PCER0_PID24 (0x1u << 24) 105 #define PMC_PCER0_PID25 (0x1u << 25) 106 #define PMC_PCER0_PID26 (0x1u << 26) 107 #define PMC_PCER0_PID27 (0x1u << 27) 108 #define PMC_PCER0_PID28 (0x1u << 28) 109 #define PMC_PCER0_PID29 (0x1u << 29) 111 #define PMC_PCDR0_PID2 (0x1u << 2) 112 #define PMC_PCDR0_PID3 (0x1u << 3) 113 #define PMC_PCDR0_PID4 (0x1u << 4) 114 #define PMC_PCDR0_PID5 (0x1u << 5) 115 #define PMC_PCDR0_PID6 (0x1u << 6) 116 #define PMC_PCDR0_PID7 (0x1u << 7) 117 #define PMC_PCDR0_PID8 (0x1u << 8) 118 #define PMC_PCDR0_PID9 (0x1u << 9) 119 #define PMC_PCDR0_PID10 (0x1u << 10) 120 #define PMC_PCDR0_PID11 (0x1u << 11) 121 #define PMC_PCDR0_PID12 (0x1u << 12) 122 #define PMC_PCDR0_PID13 (0x1u << 13) 123 #define PMC_PCDR0_PID14 (0x1u << 14) 124 #define PMC_PCDR0_PID15 (0x1u << 15) 125 #define PMC_PCDR0_PID16 (0x1u << 16) 126 #define PMC_PCDR0_PID18 (0x1u << 18) 127 #define PMC_PCDR0_PID19 (0x1u << 19) 128 #define PMC_PCDR0_PID20 (0x1u << 20) 129 #define PMC_PCDR0_PID21 (0x1u << 21) 130 #define PMC_PCDR0_PID22 (0x1u << 22) 131 #define PMC_PCDR0_PID23 (0x1u << 23) 132 #define PMC_PCDR0_PID24 (0x1u << 24) 133 #define PMC_PCDR0_PID25 (0x1u << 25) 134 #define PMC_PCDR0_PID26 (0x1u << 26) 135 #define PMC_PCDR0_PID27 (0x1u << 27) 136 #define PMC_PCDR0_PID28 (0x1u << 28) 137 #define PMC_PCDR0_PID29 (0x1u << 29) 139 #define PMC_PCSR0_PID2 (0x1u << 2) 140 #define PMC_PCSR0_PID3 (0x1u << 3) 141 #define PMC_PCSR0_PID4 (0x1u << 4) 142 #define PMC_PCSR0_PID5 (0x1u << 5) 143 #define PMC_PCSR0_PID6 (0x1u << 6) 144 #define PMC_PCSR0_PID7 (0x1u << 7) 145 #define PMC_PCSR0_PID8 (0x1u << 8) 146 #define PMC_PCSR0_PID9 (0x1u << 9) 147 #define PMC_PCSR0_PID10 (0x1u << 10) 148 #define PMC_PCSR0_PID11 (0x1u << 11) 149 #define PMC_PCSR0_PID12 (0x1u << 12) 150 #define PMC_PCSR0_PID13 (0x1u << 13) 151 #define PMC_PCSR0_PID14 (0x1u << 14) 152 #define PMC_PCSR0_PID15 (0x1u << 15) 153 #define PMC_PCSR0_PID16 (0x1u << 16) 154 #define PMC_PCSR0_PID18 (0x1u << 18) 155 #define PMC_PCSR0_PID19 (0x1u << 19) 156 #define PMC_PCSR0_PID20 (0x1u << 20) 157 #define PMC_PCSR0_PID21 (0x1u << 21) 158 #define PMC_PCSR0_PID22 (0x1u << 22) 159 #define PMC_PCSR0_PID23 (0x1u << 23) 160 #define PMC_PCSR0_PID24 (0x1u << 24) 161 #define PMC_PCSR0_PID25 (0x1u << 25) 162 #define PMC_PCSR0_PID26 (0x1u << 26) 163 #define PMC_PCSR0_PID27 (0x1u << 27) 164 #define PMC_PCSR0_PID28 (0x1u << 28) 165 #define PMC_PCSR0_PID29 (0x1u << 29) 167 #define CKGR_UCKR_UPLLEN (0x1u << 16) 168 #define CKGR_UCKR_UPLLCOUNT_Pos 20 169 #define CKGR_UCKR_UPLLCOUNT_Msk (0xfu << CKGR_UCKR_UPLLCOUNT_Pos) 170 #define CKGR_UCKR_UPLLCOUNT(value) ((CKGR_UCKR_UPLLCOUNT_Msk & ((value) << CKGR_UCKR_UPLLCOUNT_Pos))) 172 #define CKGR_MOR_MOSCXTEN (0x1u << 0) 173 #define CKGR_MOR_MOSCXTBY (0x1u << 1) 174 #define CKGR_MOR_MOSCRCEN (0x1u << 3) 175 #define CKGR_MOR_MOSCRCF_Pos 4 176 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) 177 #define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) 178 #define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) 179 #define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) 180 #define CKGR_MOR_MOSCXTST_Pos 8 181 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) 182 #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) 183 #define CKGR_MOR_KEY_Pos 16 184 #define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos) 185 #define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos))) 186 #define CKGR_MOR_MOSCSEL (0x1u << 24) 187 #define CKGR_MOR_CFDEN (0x1u << 25) 189 #define CKGR_MCFR_MAINF_Pos 0 190 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) 191 #define CKGR_MCFR_MAINFRDY (0x1u << 16) 193 #define CKGR_PLLAR_DIVA_Pos 0 194 #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) 195 #define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) 196 #define CKGR_PLLAR_PLLACOUNT_Pos 8 197 #define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) 198 #define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) 199 #define CKGR_PLLAR_MULA_Pos 16 200 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) 201 #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) 202 #define CKGR_PLLAR_ONE (0x1u << 29) 204 #define PMC_MCKR_CSS_Pos 0 205 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) 206 #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) 207 #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) 208 #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) 209 #define PMC_MCKR_CSS_UPLL_CLK (0x3u << 0) 210 #define PMC_MCKR_PRES_Pos 4 211 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) 212 #define PMC_MCKR_PRES_CLK_1 (0x0u << 4) 213 #define PMC_MCKR_PRES_CLK_2 (0x1u << 4) 214 #define PMC_MCKR_PRES_CLK_4 (0x2u << 4) 215 #define PMC_MCKR_PRES_CLK_8 (0x3u << 4) 216 #define PMC_MCKR_PRES_CLK_16 (0x4u << 4) 217 #define PMC_MCKR_PRES_CLK_32 (0x5u << 4) 218 #define PMC_MCKR_PRES_CLK_64 (0x6u << 4) 219 #define PMC_MCKR_PRES_CLK_3 (0x7u << 4) 220 #define PMC_MCKR_PLLADIV2 (0x1u << 12) 221 #define PMC_MCKR_UPLLDIV2 (0x1u << 13) 223 #define PMC_PCK_CSS_Pos 0 224 #define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) 225 #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) 226 #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) 227 #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) 228 #define PMC_PCK_CSS_UPLL_CLK (0x3u << 0) 229 #define PMC_PCK_CSS_MCK (0x4u << 0) 230 #define PMC_PCK_PRES_Pos 4 231 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) 232 #define PMC_PCK_PRES_CLK_1 (0x0u << 4) 233 #define PMC_PCK_PRES_CLK_2 (0x1u << 4) 234 #define PMC_PCK_PRES_CLK_4 (0x2u << 4) 235 #define PMC_PCK_PRES_CLK_8 (0x3u << 4) 236 #define PMC_PCK_PRES_CLK_16 (0x4u << 4) 237 #define PMC_PCK_PRES_CLK_32 (0x5u << 4) 238 #define PMC_PCK_PRES_CLK_64 (0x6u << 4) 240 #define PMC_IER_MOSCXTS (0x1u << 0) 241 #define PMC_IER_LOCKA (0x1u << 1) 242 #define PMC_IER_MCKRDY (0x1u << 3) 243 #define PMC_IER_LOCKU (0x1u << 6) 244 #define PMC_IER_PCKRDY0 (0x1u << 8) 245 #define PMC_IER_PCKRDY1 (0x1u << 9) 246 #define PMC_IER_PCKRDY2 (0x1u << 10) 247 #define PMC_IER_MOSCSELS (0x1u << 16) 248 #define PMC_IER_MOSCRCS (0x1u << 17) 249 #define PMC_IER_CFDEV (0x1u << 18) 251 #define PMC_IDR_MOSCXTS (0x1u << 0) 252 #define PMC_IDR_LOCKA (0x1u << 1) 253 #define PMC_IDR_MCKRDY (0x1u << 3) 254 #define PMC_IDR_LOCKU (0x1u << 6) 255 #define PMC_IDR_PCKRDY0 (0x1u << 8) 256 #define PMC_IDR_PCKRDY1 (0x1u << 9) 257 #define PMC_IDR_PCKRDY2 (0x1u << 10) 258 #define PMC_IDR_MOSCSELS (0x1u << 16) 259 #define PMC_IDR_MOSCRCS (0x1u << 17) 260 #define PMC_IDR_CFDEV (0x1u << 18) 262 #define PMC_SR_MOSCXTS (0x1u << 0) 263 #define PMC_SR_LOCKA (0x1u << 1) 264 #define PMC_SR_MCKRDY (0x1u << 3) 265 #define PMC_SR_LOCKU (0x1u << 6) 266 #define PMC_SR_OSCSELS (0x1u << 7) 267 #define PMC_SR_PCKRDY0 (0x1u << 8) 268 #define PMC_SR_PCKRDY1 (0x1u << 9) 269 #define PMC_SR_PCKRDY2 (0x1u << 10) 270 #define PMC_SR_MOSCSELS (0x1u << 16) 271 #define PMC_SR_MOSCRCS (0x1u << 17) 272 #define PMC_SR_CFDEV (0x1u << 18) 273 #define PMC_SR_CFDS (0x1u << 19) 274 #define PMC_SR_FOS (0x1u << 20) 276 #define PMC_IMR_MOSCXTS (0x1u << 0) 277 #define PMC_IMR_LOCKA (0x1u << 1) 278 #define PMC_IMR_MCKRDY (0x1u << 3) 279 #define PMC_IMR_LOCKU (0x1u << 6) 280 #define PMC_IMR_PCKRDY0 (0x1u << 8) 281 #define PMC_IMR_PCKRDY1 (0x1u << 9) 282 #define PMC_IMR_PCKRDY2 (0x1u << 10) 283 #define PMC_IMR_MOSCSELS (0x1u << 16) 284 #define PMC_IMR_MOSCRCS (0x1u << 17) 285 #define PMC_IMR_CFDEV (0x1u << 18) 287 #define PMC_FSMR_FSTT0 (0x1u << 0) 288 #define PMC_FSMR_FSTT1 (0x1u << 1) 289 #define PMC_FSMR_FSTT2 (0x1u << 2) 290 #define PMC_FSMR_FSTT3 (0x1u << 3) 291 #define PMC_FSMR_FSTT4 (0x1u << 4) 292 #define PMC_FSMR_FSTT5 (0x1u << 5) 293 #define PMC_FSMR_FSTT6 (0x1u << 6) 294 #define PMC_FSMR_FSTT7 (0x1u << 7) 295 #define PMC_FSMR_FSTT8 (0x1u << 8) 296 #define PMC_FSMR_FSTT9 (0x1u << 9) 297 #define PMC_FSMR_FSTT10 (0x1u << 10) 298 #define PMC_FSMR_FSTT11 (0x1u << 11) 299 #define PMC_FSMR_FSTT12 (0x1u << 12) 300 #define PMC_FSMR_FSTT13 (0x1u << 13) 301 #define PMC_FSMR_FSTT14 (0x1u << 14) 302 #define PMC_FSMR_FSTT15 (0x1u << 15) 303 #define PMC_FSMR_RTTAL (0x1u << 16) 304 #define PMC_FSMR_RTCAL (0x1u << 17) 305 #define PMC_FSMR_USBAL (0x1u << 18) 306 #define PMC_FSMR_LPM (0x1u << 20) 308 #define PMC_FSPR_FSTP0 (0x1u << 0) 309 #define PMC_FSPR_FSTP1 (0x1u << 1) 310 #define PMC_FSPR_FSTP2 (0x1u << 2) 311 #define PMC_FSPR_FSTP3 (0x1u << 3) 312 #define PMC_FSPR_FSTP4 (0x1u << 4) 313 #define PMC_FSPR_FSTP5 (0x1u << 5) 314 #define PMC_FSPR_FSTP6 (0x1u << 6) 315 #define PMC_FSPR_FSTP7 (0x1u << 7) 316 #define PMC_FSPR_FSTP8 (0x1u << 8) 317 #define PMC_FSPR_FSTP9 (0x1u << 9) 318 #define PMC_FSPR_FSTP10 (0x1u << 10) 319 #define PMC_FSPR_FSTP11 (0x1u << 11) 320 #define PMC_FSPR_FSTP12 (0x1u << 12) 321 #define PMC_FSPR_FSTP13 (0x1u << 13) 322 #define PMC_FSPR_FSTP14 (0x1u << 14) 323 #define PMC_FSPR_FSTP15 (0x1u << 15) 325 #define PMC_FOCR_FOCLR (0x1u << 0) 327 #define PMC_WPMR_WPEN (0x1u << 0) 328 #define PMC_WPMR_WPKEY_Pos 8 329 #define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos) 330 #define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos))) 332 #define PMC_WPSR_WPVS (0x1u << 0) 333 #define PMC_WPSR_WPVSRC_Pos 8 334 #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) volatile uint32_t RwReg
Definition: sam3n00a.h:54
RwReg CKGR_UCKR
(Pmc Offset: 0x001C) UTMI Clock Register
Definition: component_pmc.h:49
volatile uint32_t WoReg
Definition: sam3n00a.h:53
volatile const uint32_t RoReg
Definition: sam3n00a.h:49
Pmc hardware registers.
Definition: component_pmc.h:41