30 #ifndef _SAM3N_PMC_COMPONENT_ 31 #define _SAM3N_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_PID19 (0x1u << 19) 98 #define PMC_PCER0_PID20 (0x1u << 20) 99 #define PMC_PCER0_PID21 (0x1u << 21) 100 #define PMC_PCER0_PID23 (0x1u << 23) 101 #define PMC_PCER0_PID24 (0x1u << 24) 102 #define PMC_PCER0_PID25 (0x1u << 25) 103 #define PMC_PCER0_PID26 (0x1u << 26) 104 #define PMC_PCER0_PID27 (0x1u << 27) 105 #define PMC_PCER0_PID28 (0x1u << 28) 106 #define PMC_PCER0_PID29 (0x1u << 29) 107 #define PMC_PCER0_PID30 (0x1u << 30) 108 #define PMC_PCER0_PID31 (0x1u << 31) 110 #define PMC_PCDR0_PID2 (0x1u << 2) 111 #define PMC_PCDR0_PID3 (0x1u << 3) 112 #define PMC_PCDR0_PID4 (0x1u << 4) 113 #define PMC_PCDR0_PID5 (0x1u << 5) 114 #define PMC_PCDR0_PID6 (0x1u << 6) 115 #define PMC_PCDR0_PID7 (0x1u << 7) 116 #define PMC_PCDR0_PID8 (0x1u << 8) 117 #define PMC_PCDR0_PID9 (0x1u << 9) 118 #define PMC_PCDR0_PID10 (0x1u << 10) 119 #define PMC_PCDR0_PID11 (0x1u << 11) 120 #define PMC_PCDR0_PID12 (0x1u << 12) 121 #define PMC_PCDR0_PID13 (0x1u << 13) 122 #define PMC_PCDR0_PID14 (0x1u << 14) 123 #define PMC_PCDR0_PID15 (0x1u << 15) 124 #define PMC_PCDR0_PID19 (0x1u << 19) 125 #define PMC_PCDR0_PID20 (0x1u << 20) 126 #define PMC_PCDR0_PID21 (0x1u << 21) 127 #define PMC_PCDR0_PID23 (0x1u << 23) 128 #define PMC_PCDR0_PID24 (0x1u << 24) 129 #define PMC_PCDR0_PID25 (0x1u << 25) 130 #define PMC_PCDR0_PID26 (0x1u << 26) 131 #define PMC_PCDR0_PID27 (0x1u << 27) 132 #define PMC_PCDR0_PID28 (0x1u << 28) 133 #define PMC_PCDR0_PID29 (0x1u << 29) 134 #define PMC_PCDR0_PID30 (0x1u << 30) 135 #define PMC_PCDR0_PID31 (0x1u << 31) 137 #define PMC_PCSR0_PID2 (0x1u << 2) 138 #define PMC_PCSR0_PID3 (0x1u << 3) 139 #define PMC_PCSR0_PID4 (0x1u << 4) 140 #define PMC_PCSR0_PID5 (0x1u << 5) 141 #define PMC_PCSR0_PID6 (0x1u << 6) 142 #define PMC_PCSR0_PID7 (0x1u << 7) 143 #define PMC_PCSR0_PID8 (0x1u << 8) 144 #define PMC_PCSR0_PID9 (0x1u << 9) 145 #define PMC_PCSR0_PID10 (0x1u << 10) 146 #define PMC_PCSR0_PID11 (0x1u << 11) 147 #define PMC_PCSR0_PID12 (0x1u << 12) 148 #define PMC_PCSR0_PID13 (0x1u << 13) 149 #define PMC_PCSR0_PID14 (0x1u << 14) 150 #define PMC_PCSR0_PID15 (0x1u << 15) 151 #define PMC_PCSR0_PID19 (0x1u << 19) 152 #define PMC_PCSR0_PID20 (0x1u << 20) 153 #define PMC_PCSR0_PID21 (0x1u << 21) 154 #define PMC_PCSR0_PID23 (0x1u << 23) 155 #define PMC_PCSR0_PID24 (0x1u << 24) 156 #define PMC_PCSR0_PID25 (0x1u << 25) 157 #define PMC_PCSR0_PID26 (0x1u << 26) 158 #define PMC_PCSR0_PID27 (0x1u << 27) 159 #define PMC_PCSR0_PID28 (0x1u << 28) 160 #define PMC_PCSR0_PID29 (0x1u << 29) 161 #define PMC_PCSR0_PID30 (0x1u << 30) 162 #define PMC_PCSR0_PID31 (0x1u << 31) 164 #define CKGR_MOR_MOSCXTEN (0x1u << 0) 165 #define CKGR_MOR_MOSCXTBY (0x1u << 1) 166 #define CKGR_MOR_MOSCRCEN (0x1u << 3) 167 #define CKGR_MOR_MOSCRCF_Pos 4 168 #define CKGR_MOR_MOSCRCF_Msk (0x7u << CKGR_MOR_MOSCRCF_Pos) 169 #define CKGR_MOR_MOSCRCF_4_MHz (0x0u << 4) 170 #define CKGR_MOR_MOSCRCF_8_MHz (0x1u << 4) 171 #define CKGR_MOR_MOSCRCF_12_MHz (0x2u << 4) 172 #define CKGR_MOR_MOSCXTST_Pos 8 173 #define CKGR_MOR_MOSCXTST_Msk (0xffu << CKGR_MOR_MOSCXTST_Pos) 174 #define CKGR_MOR_MOSCXTST(value) ((CKGR_MOR_MOSCXTST_Msk & ((value) << CKGR_MOR_MOSCXTST_Pos))) 175 #define CKGR_MOR_KEY_Pos 16 176 #define CKGR_MOR_KEY_Msk (0xffu << CKGR_MOR_KEY_Pos) 177 #define CKGR_MOR_KEY(value) ((CKGR_MOR_KEY_Msk & ((value) << CKGR_MOR_KEY_Pos))) 178 #define CKGR_MOR_MOSCSEL (0x1u << 24) 179 #define CKGR_MOR_CFDEN (0x1u << 25) 181 #define CKGR_MCFR_MAINF_Pos 0 182 #define CKGR_MCFR_MAINF_Msk (0xffffu << CKGR_MCFR_MAINF_Pos) 183 #define CKGR_MCFR_MAINFRDY (0x1u << 16) 185 #define CKGR_PLLAR_DIVA_Pos 0 186 #define CKGR_PLLAR_DIVA_Msk (0xffu << CKGR_PLLAR_DIVA_Pos) 187 #define CKGR_PLLAR_DIVA(value) ((CKGR_PLLAR_DIVA_Msk & ((value) << CKGR_PLLAR_DIVA_Pos))) 188 #define CKGR_PLLAR_PLLACOUNT_Pos 8 189 #define CKGR_PLLAR_PLLACOUNT_Msk (0x3fu << CKGR_PLLAR_PLLACOUNT_Pos) 190 #define CKGR_PLLAR_PLLACOUNT(value) ((CKGR_PLLAR_PLLACOUNT_Msk & ((value) << CKGR_PLLAR_PLLACOUNT_Pos))) 191 #define CKGR_PLLAR_MULA_Pos 16 192 #define CKGR_PLLAR_MULA_Msk (0x7ffu << CKGR_PLLAR_MULA_Pos) 193 #define CKGR_PLLAR_MULA(value) ((CKGR_PLLAR_MULA_Msk & ((value) << CKGR_PLLAR_MULA_Pos))) 194 #define CKGR_PLLAR_ONE (0x1u << 29) 196 #define PMC_MCKR_CSS_Pos 0 197 #define PMC_MCKR_CSS_Msk (0x3u << PMC_MCKR_CSS_Pos) 198 #define PMC_MCKR_CSS_SLOW_CLK (0x0u << 0) 199 #define PMC_MCKR_CSS_MAIN_CLK (0x1u << 0) 200 #define PMC_MCKR_CSS_PLLA_CLK (0x2u << 0) 201 #define PMC_MCKR_PRES_Pos 4 202 #define PMC_MCKR_PRES_Msk (0x7u << PMC_MCKR_PRES_Pos) 203 #define PMC_MCKR_PRES_CLK_1 (0x0u << 4) 204 #define PMC_MCKR_PRES_CLK_2 (0x1u << 4) 205 #define PMC_MCKR_PRES_CLK_4 (0x2u << 4) 206 #define PMC_MCKR_PRES_CLK_8 (0x3u << 4) 207 #define PMC_MCKR_PRES_CLK_16 (0x4u << 4) 208 #define PMC_MCKR_PRES_CLK_32 (0x5u << 4) 209 #define PMC_MCKR_PRES_CLK_64 (0x6u << 4) 210 #define PMC_MCKR_PRES_CLK_3 (0x7u << 4) 211 #define PMC_MCKR_PLLADIV2 (0x1u << 12) 213 #define PMC_PCK_CSS_Pos 0 214 #define PMC_PCK_CSS_Msk (0x7u << PMC_PCK_CSS_Pos) 215 #define PMC_PCK_CSS_SLOW_CLK (0x0u << 0) 216 #define PMC_PCK_CSS_MAIN_CLK (0x1u << 0) 217 #define PMC_PCK_CSS_PLLA_CLK (0x2u << 0) 218 #define PMC_PCK_CSS_MCK (0x4u << 0) 219 #define PMC_PCK_PRES_Pos 4 220 #define PMC_PCK_PRES_Msk (0x7u << PMC_PCK_PRES_Pos) 221 #define PMC_PCK_PRES_CLK_1 (0x0u << 4) 222 #define PMC_PCK_PRES_CLK_2 (0x1u << 4) 223 #define PMC_PCK_PRES_CLK_4 (0x2u << 4) 224 #define PMC_PCK_PRES_CLK_8 (0x3u << 4) 225 #define PMC_PCK_PRES_CLK_16 (0x4u << 4) 226 #define PMC_PCK_PRES_CLK_32 (0x5u << 4) 227 #define PMC_PCK_PRES_CLK_64 (0x6u << 4) 229 #define PMC_IER_MOSCXTS (0x1u << 0) 230 #define PMC_IER_LOCKA (0x1u << 1) 231 #define PMC_IER_MCKRDY (0x1u << 3) 232 #define PMC_IER_PCKRDY0 (0x1u << 8) 233 #define PMC_IER_PCKRDY1 (0x1u << 9) 234 #define PMC_IER_PCKRDY2 (0x1u << 10) 235 #define PMC_IER_MOSCSELS (0x1u << 16) 236 #define PMC_IER_MOSCRCS (0x1u << 17) 237 #define PMC_IER_CFDEV (0x1u << 18) 239 #define PMC_IDR_MOSCXTS (0x1u << 0) 240 #define PMC_IDR_LOCKA (0x1u << 1) 241 #define PMC_IDR_MCKRDY (0x1u << 3) 242 #define PMC_IDR_PCKRDY0 (0x1u << 8) 243 #define PMC_IDR_PCKRDY1 (0x1u << 9) 244 #define PMC_IDR_PCKRDY2 (0x1u << 10) 245 #define PMC_IDR_MOSCSELS (0x1u << 16) 246 #define PMC_IDR_MOSCRCS (0x1u << 17) 247 #define PMC_IDR_CFDEV (0x1u << 18) 249 #define PMC_SR_MOSCXTS (0x1u << 0) 250 #define PMC_SR_LOCKA (0x1u << 1) 251 #define PMC_SR_MCKRDY (0x1u << 3) 252 #define PMC_SR_OSCSELS (0x1u << 7) 253 #define PMC_SR_PCKRDY0 (0x1u << 8) 254 #define PMC_SR_PCKRDY1 (0x1u << 9) 255 #define PMC_SR_PCKRDY2 (0x1u << 10) 256 #define PMC_SR_MOSCSELS (0x1u << 16) 257 #define PMC_SR_MOSCRCS (0x1u << 17) 258 #define PMC_SR_CFDEV (0x1u << 18) 259 #define PMC_SR_CFDS (0x1u << 19) 260 #define PMC_SR_FOS (0x1u << 20) 262 #define PMC_IMR_MOSCXTS (0x1u << 0) 263 #define PMC_IMR_LOCKA (0x1u << 1) 264 #define PMC_IMR_MCKRDY (0x1u << 3) 265 #define PMC_IMR_PCKRDY0 (0x1u << 8) 266 #define PMC_IMR_PCKRDY1 (0x1u << 9) 267 #define PMC_IMR_PCKRDY2 (0x1u << 10) 268 #define PMC_IMR_MOSCSELS (0x1u << 16) 269 #define PMC_IMR_MOSCRCS (0x1u << 17) 270 #define PMC_IMR_CFDEV (0x1u << 18) 272 #define PMC_FSMR_FSTT0 (0x1u << 0) 273 #define PMC_FSMR_FSTT1 (0x1u << 1) 274 #define PMC_FSMR_FSTT2 (0x1u << 2) 275 #define PMC_FSMR_FSTT3 (0x1u << 3) 276 #define PMC_FSMR_FSTT4 (0x1u << 4) 277 #define PMC_FSMR_FSTT5 (0x1u << 5) 278 #define PMC_FSMR_FSTT6 (0x1u << 6) 279 #define PMC_FSMR_FSTT7 (0x1u << 7) 280 #define PMC_FSMR_FSTT8 (0x1u << 8) 281 #define PMC_FSMR_FSTT9 (0x1u << 9) 282 #define PMC_FSMR_FSTT10 (0x1u << 10) 283 #define PMC_FSMR_FSTT11 (0x1u << 11) 284 #define PMC_FSMR_FSTT12 (0x1u << 12) 285 #define PMC_FSMR_FSTT13 (0x1u << 13) 286 #define PMC_FSMR_FSTT14 (0x1u << 14) 287 #define PMC_FSMR_FSTT15 (0x1u << 15) 288 #define PMC_FSMR_RTTAL (0x1u << 16) 289 #define PMC_FSMR_RTCAL (0x1u << 17) 290 #define PMC_FSMR_LPM (0x1u << 20) 292 #define PMC_FSPR_FSTP0 (0x1u << 0) 293 #define PMC_FSPR_FSTP1 (0x1u << 1) 294 #define PMC_FSPR_FSTP2 (0x1u << 2) 295 #define PMC_FSPR_FSTP3 (0x1u << 3) 296 #define PMC_FSPR_FSTP4 (0x1u << 4) 297 #define PMC_FSPR_FSTP5 (0x1u << 5) 298 #define PMC_FSPR_FSTP6 (0x1u << 6) 299 #define PMC_FSPR_FSTP7 (0x1u << 7) 300 #define PMC_FSPR_FSTP8 (0x1u << 8) 301 #define PMC_FSPR_FSTP9 (0x1u << 9) 302 #define PMC_FSPR_FSTP10 (0x1u << 10) 303 #define PMC_FSPR_FSTP11 (0x1u << 11) 304 #define PMC_FSPR_FSTP12 (0x1u << 12) 305 #define PMC_FSPR_FSTP13 (0x1u << 13) 306 #define PMC_FSPR_FSTP14 (0x1u << 14) 307 #define PMC_FSPR_FSTP15 (0x1u << 15) 309 #define PMC_FOCR_FOCLR (0x1u << 0) 311 #define PMC_WPMR_WPEN (0x1u << 0) 312 #define PMC_WPMR_WPKEY_Pos 8 313 #define PMC_WPMR_WPKEY_Msk (0xffffffu << PMC_WPMR_WPKEY_Pos) 314 #define PMC_WPMR_WPKEY(value) ((PMC_WPMR_WPKEY_Msk & ((value) << PMC_WPMR_WPKEY_Pos))) 316 #define PMC_WPSR_WPVS (0x1u << 0) 317 #define PMC_WPSR_WPVSRC_Pos 8 318 #define PMC_WPSR_WPVSRC_Msk (0xffffu << PMC_WPSR_WPVSRC_Pos) RoReg CKGR_MCFR
(Pmc Offset: 0x0024) Main Clock Frequency Register
Definition: component_pmc.h:51
WoReg PMC_SCDR
(Pmc Offset: 0x0004) System Clock Disable Register
Definition: component_pmc.h:43
WoReg PMC_IDR
(Pmc Offset: 0x0064) Interrupt Disable Register
Definition: component_pmc.h:59
volatile uint32_t RwReg
Definition: sam3n00a.h:54
WoReg PMC_SCER
(Pmc Offset: 0x0000) System Clock Enable Register
Definition: component_pmc.h:42
RwReg CKGR_PLLAR
(Pmc Offset: 0x0028) PLLA Register
Definition: component_pmc.h:52
WoReg PMC_FOCR
(Pmc Offset: 0x0078) Fault Output Clear Register
Definition: component_pmc.h:64
RoReg PMC_SR
(Pmc Offset: 0x0068) Status Register
Definition: component_pmc.h:60
RoReg PMC_WPSR
(Pmc Offset: 0x00E8) Write Protect Status Register
Definition: component_pmc.h:67
RwReg CKGR_MOR
(Pmc Offset: 0x0020) Main Oscillator Register
Definition: component_pmc.h:50
volatile uint32_t WoReg
Definition: sam3n00a.h:53
WoReg PMC_IER
(Pmc Offset: 0x0060) Interrupt Enable Register
Definition: component_pmc.h:58
WoReg PMC_PCER0
(Pmc Offset: 0x0010) Peripheral Clock Enable Register 0
Definition: component_pmc.h:46
RwReg PMC_FSMR
(Pmc Offset: 0x0070) Fast Startup Mode Register
Definition: component_pmc.h:62
RoReg PMC_IMR
(Pmc Offset: 0x006C) Interrupt Mask Register
Definition: component_pmc.h:61
RwReg PMC_FSPR
(Pmc Offset: 0x0074) Fast Startup Polarity Register
Definition: component_pmc.h:63
WoReg PMC_PCDR0
(Pmc Offset: 0x0014) Peripheral Clock Disable Register 0
Definition: component_pmc.h:47
RoReg PMC_SCSR
(Pmc Offset: 0x0008) System Clock Status Register
Definition: component_pmc.h:44
volatile const uint32_t RoReg
Definition: sam3n00a.h:49
Pmc hardware registers.
Definition: component_pmc.h:41
RwReg PMC_MCKR
(Pmc Offset: 0x0030) Master Clock Register
Definition: component_pmc.h:54
RwReg PMC_WPMR
(Pmc Offset: 0x00E4) Write Protect Mode Register
Definition: component_pmc.h:66
RoReg PMC_PCSR0
(Pmc Offset: 0x0018) Peripheral Clock Status Register 0
Definition: component_pmc.h:48