30 #ifndef _SAM3S8_SUPC_COMPONENT_ 31 #define _SAM3S8_SUPC_COMPONENT_ 39 #if !(defined(__ASSEMBLY__) || defined(__IAR_SYSTEMS_ASM__)) 51 #define SUPC_CR_VROFF (0x1u << 2) 52 #define SUPC_CR_VROFF_NO_EFFECT (0x0u << 2) 53 #define SUPC_CR_VROFF_STOP_VREG (0x1u << 2) 54 #define SUPC_CR_XTALSEL (0x1u << 3) 55 #define SUPC_CR_XTALSEL_NO_EFFECT (0x0u << 3) 56 #define SUPC_CR_XTALSEL_CRYSTAL_SEL (0x1u << 3) 57 #define SUPC_CR_KEY_Pos 24 58 #define SUPC_CR_KEY_Msk (0xffu << SUPC_CR_KEY_Pos) 59 #define SUPC_CR_KEY(value) ((SUPC_CR_KEY_Msk & ((value) << SUPC_CR_KEY_Pos))) 61 #define SUPC_SMMR_SMTH_Pos 0 62 #define SUPC_SMMR_SMTH_Msk (0xfu << SUPC_SMMR_SMTH_Pos) 63 #define SUPC_SMMR_SMTH_1_9V (0x0u << 0) 64 #define SUPC_SMMR_SMTH_2_0V (0x1u << 0) 65 #define SUPC_SMMR_SMTH_2_1V (0x2u << 0) 66 #define SUPC_SMMR_SMTH_2_2V (0x3u << 0) 67 #define SUPC_SMMR_SMTH_2_3V (0x4u << 0) 68 #define SUPC_SMMR_SMTH_2_4V (0x5u << 0) 69 #define SUPC_SMMR_SMTH_2_5V (0x6u << 0) 70 #define SUPC_SMMR_SMTH_2_6V (0x7u << 0) 71 #define SUPC_SMMR_SMTH_2_7V (0x8u << 0) 72 #define SUPC_SMMR_SMTH_2_8V (0x9u << 0) 73 #define SUPC_SMMR_SMTH_2_9V (0xAu << 0) 74 #define SUPC_SMMR_SMTH_3_0V (0xBu << 0) 75 #define SUPC_SMMR_SMTH_3_1V (0xCu << 0) 76 #define SUPC_SMMR_SMTH_3_2V (0xDu << 0) 77 #define SUPC_SMMR_SMTH_3_3V (0xEu << 0) 78 #define SUPC_SMMR_SMTH_3_4V (0xFu << 0) 79 #define SUPC_SMMR_SMSMPL_Pos 8 80 #define SUPC_SMMR_SMSMPL_Msk (0x7u << SUPC_SMMR_SMSMPL_Pos) 81 #define SUPC_SMMR_SMSMPL_SMD (0x0u << 8) 82 #define SUPC_SMMR_SMSMPL_CSM (0x1u << 8) 83 #define SUPC_SMMR_SMSMPL_32SLCK (0x2u << 8) 84 #define SUPC_SMMR_SMSMPL_256SLCK (0x3u << 8) 85 #define SUPC_SMMR_SMSMPL_2048SLCK (0x4u << 8) 86 #define SUPC_SMMR_SMRSTEN (0x1u << 12) 87 #define SUPC_SMMR_SMRSTEN_NOT_ENABLE (0x0u << 12) 88 #define SUPC_SMMR_SMRSTEN_ENABLE (0x1u << 12) 89 #define SUPC_SMMR_SMIEN (0x1u << 13) 90 #define SUPC_SMMR_SMIEN_NOT_ENABLE (0x0u << 13) 91 #define SUPC_SMMR_SMIEN_ENABLE (0x1u << 13) 93 #define SUPC_MR_BODRSTEN (0x1u << 12) 94 #define SUPC_MR_BODRSTEN_NOT_ENABLE (0x0u << 12) 95 #define SUPC_MR_BODRSTEN_ENABLE (0x1u << 12) 96 #define SUPC_MR_BODDIS (0x1u << 13) 97 #define SUPC_MR_BODDIS_ENABLE (0x0u << 13) 98 #define SUPC_MR_BODDIS_DISABLE (0x1u << 13) 99 #define SUPC_MR_ONREG (0x1u << 14) 100 #define SUPC_MR_ONREG_ONREG_UNUSED (0x0u << 14) 101 #define SUPC_MR_ONREG_ONREG_USED (0x1u << 14) 102 #define SUPC_MR_OSCBYPASS (0x1u << 20) 103 #define SUPC_MR_OSCBYPASS_NO_EFFECT (0x0u << 20) 104 #define SUPC_MR_OSCBYPASS_BYPASS (0x1u << 20) 105 #define SUPC_MR_KEY_Pos 24 106 #define SUPC_MR_KEY_Msk (0xffu << SUPC_MR_KEY_Pos) 107 #define SUPC_MR_KEY(value) ((SUPC_MR_KEY_Msk & ((value) << SUPC_MR_KEY_Pos))) 109 #define SUPC_WUMR_SMEN (0x1u << 1) 110 #define SUPC_WUMR_SMEN_NOT_ENABLE (0x0u << 1) 111 #define SUPC_WUMR_SMEN_ENABLE (0x1u << 1) 112 #define SUPC_WUMR_RTTEN (0x1u << 2) 113 #define SUPC_WUMR_RTTEN_NOT_ENABLE (0x0u << 2) 114 #define SUPC_WUMR_RTTEN_ENABLE (0x1u << 2) 115 #define SUPC_WUMR_RTCEN (0x1u << 3) 116 #define SUPC_WUMR_RTCEN_NOT_ENABLE (0x0u << 3) 117 #define SUPC_WUMR_RTCEN_ENABLE (0x1u << 3) 118 #define SUPC_WUMR_LPDBCEN0 (0x1u << 5) 119 #define SUPC_WUMR_LPDBCEN0_NOT_ENABLE (0x0u << 5) 120 #define SUPC_WUMR_LPDBCEN0_ENABLE (0x1u << 5) 121 #define SUPC_WUMR_LPDBCEN1 (0x1u << 6) 122 #define SUPC_WUMR_LPDBCEN1_NOT_ENABLE (0x0u << 6) 123 #define SUPC_WUMR_LPDBCEN1_ENABLE (0x1u << 6) 124 #define SUPC_WUMR_LPDBCCLR (0x1u << 7) 125 #define SUPC_WUMR_LPDBCCLR_NOT_ENABLE (0x0u << 7) 126 #define SUPC_WUMR_LPDBCCLR_ENABLE (0x1u << 7) 127 #define SUPC_WUMR_WKUPDBC_Pos 12 128 #define SUPC_WUMR_WKUPDBC_Msk (0x7u << SUPC_WUMR_WKUPDBC_Pos) 129 #define SUPC_WUMR_WKUPDBC_IMMEDIATE (0x0u << 12) 130 #define SUPC_WUMR_WKUPDBC_3_SCLK (0x1u << 12) 131 #define SUPC_WUMR_WKUPDBC_32_SCLK (0x2u << 12) 132 #define SUPC_WUMR_WKUPDBC_512_SCLK (0x3u << 12) 133 #define SUPC_WUMR_WKUPDBC_4096_SCLK (0x4u << 12) 134 #define SUPC_WUMR_WKUPDBC_32768_SCLK (0x5u << 12) 135 #define SUPC_WUMR_LPDBC_Pos 16 136 #define SUPC_WUMR_LPDBC_Msk (0x7u << SUPC_WUMR_LPDBC_Pos) 137 #define SUPC_WUMR_LPDBC_DISABLE (0x0u << 16) 138 #define SUPC_WUMR_LPDBC_2_RTCOUT0 (0x1u << 16) 139 #define SUPC_WUMR_LPDBC_3_RTCOUT0 (0x2u << 16) 140 #define SUPC_WUMR_LPDBC_4_RTCOUT0 (0x3u << 16) 141 #define SUPC_WUMR_LPDBC_5_RTCOUT0 (0x4u << 16) 142 #define SUPC_WUMR_LPDBC_6_RTCOUT0 (0x5u << 16) 143 #define SUPC_WUMR_LPDBC_7_RTCOUT0 (0x6u << 16) 144 #define SUPC_WUMR_LPDBC_8_RTCOUT0 (0x7u << 16) 146 #define SUPC_WUIR_WKUPEN0 (0x1u << 0) 147 #define SUPC_WUIR_WKUPEN0_DISABLE (0x0u << 0) 148 #define SUPC_WUIR_WKUPEN0_ENABLE (0x1u << 0) 149 #define SUPC_WUIR_WKUPEN1 (0x1u << 1) 150 #define SUPC_WUIR_WKUPEN1_DISABLE (0x0u << 1) 151 #define SUPC_WUIR_WKUPEN1_ENABLE (0x1u << 1) 152 #define SUPC_WUIR_WKUPEN2 (0x1u << 2) 153 #define SUPC_WUIR_WKUPEN2_DISABLE (0x0u << 2) 154 #define SUPC_WUIR_WKUPEN2_ENABLE (0x1u << 2) 155 #define SUPC_WUIR_WKUPEN3 (0x1u << 3) 156 #define SUPC_WUIR_WKUPEN3_DISABLE (0x0u << 3) 157 #define SUPC_WUIR_WKUPEN3_ENABLE (0x1u << 3) 158 #define SUPC_WUIR_WKUPEN4 (0x1u << 4) 159 #define SUPC_WUIR_WKUPEN4_DISABLE (0x0u << 4) 160 #define SUPC_WUIR_WKUPEN4_ENABLE (0x1u << 4) 161 #define SUPC_WUIR_WKUPEN5 (0x1u << 5) 162 #define SUPC_WUIR_WKUPEN5_DISABLE (0x0u << 5) 163 #define SUPC_WUIR_WKUPEN5_ENABLE (0x1u << 5) 164 #define SUPC_WUIR_WKUPEN6 (0x1u << 6) 165 #define SUPC_WUIR_WKUPEN6_DISABLE (0x0u << 6) 166 #define SUPC_WUIR_WKUPEN6_ENABLE (0x1u << 6) 167 #define SUPC_WUIR_WKUPEN7 (0x1u << 7) 168 #define SUPC_WUIR_WKUPEN7_DISABLE (0x0u << 7) 169 #define SUPC_WUIR_WKUPEN7_ENABLE (0x1u << 7) 170 #define SUPC_WUIR_WKUPEN8 (0x1u << 8) 171 #define SUPC_WUIR_WKUPEN8_DISABLE (0x0u << 8) 172 #define SUPC_WUIR_WKUPEN8_ENABLE (0x1u << 8) 173 #define SUPC_WUIR_WKUPEN9 (0x1u << 9) 174 #define SUPC_WUIR_WKUPEN9_DISABLE (0x0u << 9) 175 #define SUPC_WUIR_WKUPEN9_ENABLE (0x1u << 9) 176 #define SUPC_WUIR_WKUPEN10 (0x1u << 10) 177 #define SUPC_WUIR_WKUPEN10_DISABLE (0x0u << 10) 178 #define SUPC_WUIR_WKUPEN10_ENABLE (0x1u << 10) 179 #define SUPC_WUIR_WKUPEN11 (0x1u << 11) 180 #define SUPC_WUIR_WKUPEN11_DISABLE (0x0u << 11) 181 #define SUPC_WUIR_WKUPEN11_ENABLE (0x1u << 11) 182 #define SUPC_WUIR_WKUPEN12 (0x1u << 12) 183 #define SUPC_WUIR_WKUPEN12_DISABLE (0x0u << 12) 184 #define SUPC_WUIR_WKUPEN12_ENABLE (0x1u << 12) 185 #define SUPC_WUIR_WKUPEN13 (0x1u << 13) 186 #define SUPC_WUIR_WKUPEN13_DISABLE (0x0u << 13) 187 #define SUPC_WUIR_WKUPEN13_ENABLE (0x1u << 13) 188 #define SUPC_WUIR_WKUPEN14 (0x1u << 14) 189 #define SUPC_WUIR_WKUPEN14_DISABLE (0x0u << 14) 190 #define SUPC_WUIR_WKUPEN14_ENABLE (0x1u << 14) 191 #define SUPC_WUIR_WKUPEN15 (0x1u << 15) 192 #define SUPC_WUIR_WKUPEN15_DISABLE (0x0u << 15) 193 #define SUPC_WUIR_WKUPEN15_ENABLE (0x1u << 15) 194 #define SUPC_WUIR_WKUPT0 (0x1u << 16) 195 #define SUPC_WUIR_WKUPT0_LOW (0x0u << 16) 196 #define SUPC_WUIR_WKUPT0_HIGH (0x1u << 16) 197 #define SUPC_WUIR_WKUPT1 (0x1u << 17) 198 #define SUPC_WUIR_WKUPT1_LOW (0x0u << 17) 199 #define SUPC_WUIR_WKUPT1_HIGH (0x1u << 17) 200 #define SUPC_WUIR_WKUPT2 (0x1u << 18) 201 #define SUPC_WUIR_WKUPT2_LOW (0x0u << 18) 202 #define SUPC_WUIR_WKUPT2_HIGH (0x1u << 18) 203 #define SUPC_WUIR_WKUPT3 (0x1u << 19) 204 #define SUPC_WUIR_WKUPT3_LOW (0x0u << 19) 205 #define SUPC_WUIR_WKUPT3_HIGH (0x1u << 19) 206 #define SUPC_WUIR_WKUPT4 (0x1u << 20) 207 #define SUPC_WUIR_WKUPT4_LOW (0x0u << 20) 208 #define SUPC_WUIR_WKUPT4_HIGH (0x1u << 20) 209 #define SUPC_WUIR_WKUPT5 (0x1u << 21) 210 #define SUPC_WUIR_WKUPT5_LOW (0x0u << 21) 211 #define SUPC_WUIR_WKUPT5_HIGH (0x1u << 21) 212 #define SUPC_WUIR_WKUPT6 (0x1u << 22) 213 #define SUPC_WUIR_WKUPT6_LOW (0x0u << 22) 214 #define SUPC_WUIR_WKUPT6_HIGH (0x1u << 22) 215 #define SUPC_WUIR_WKUPT7 (0x1u << 23) 216 #define SUPC_WUIR_WKUPT7_LOW (0x0u << 23) 217 #define SUPC_WUIR_WKUPT7_HIGH (0x1u << 23) 218 #define SUPC_WUIR_WKUPT8 (0x1u << 24) 219 #define SUPC_WUIR_WKUPT8_LOW (0x0u << 24) 220 #define SUPC_WUIR_WKUPT8_HIGH (0x1u << 24) 221 #define SUPC_WUIR_WKUPT9 (0x1u << 25) 222 #define SUPC_WUIR_WKUPT9_LOW (0x0u << 25) 223 #define SUPC_WUIR_WKUPT9_HIGH (0x1u << 25) 224 #define SUPC_WUIR_WKUPT10 (0x1u << 26) 225 #define SUPC_WUIR_WKUPT10_LOW (0x0u << 26) 226 #define SUPC_WUIR_WKUPT10_HIGH (0x1u << 26) 227 #define SUPC_WUIR_WKUPT11 (0x1u << 27) 228 #define SUPC_WUIR_WKUPT11_LOW (0x0u << 27) 229 #define SUPC_WUIR_WKUPT11_HIGH (0x1u << 27) 230 #define SUPC_WUIR_WKUPT12 (0x1u << 28) 231 #define SUPC_WUIR_WKUPT12_LOW (0x0u << 28) 232 #define SUPC_WUIR_WKUPT12_HIGH (0x1u << 28) 233 #define SUPC_WUIR_WKUPT13 (0x1u << 29) 234 #define SUPC_WUIR_WKUPT13_LOW (0x0u << 29) 235 #define SUPC_WUIR_WKUPT13_HIGH (0x1u << 29) 236 #define SUPC_WUIR_WKUPT14 (0x1u << 30) 237 #define SUPC_WUIR_WKUPT14_LOW (0x0u << 30) 238 #define SUPC_WUIR_WKUPT14_HIGH (0x1u << 30) 239 #define SUPC_WUIR_WKUPT15 (0x1u << 31) 240 #define SUPC_WUIR_WKUPT15_LOW (0x0u << 31) 241 #define SUPC_WUIR_WKUPT15_HIGH (0x1u << 31) 243 #define SUPC_SR_WKUPS (0x1u << 1) 244 #define SUPC_SR_WKUPS_NO (0x0u << 1) 245 #define SUPC_SR_WKUPS_PRESENT (0x1u << 1) 246 #define SUPC_SR_SMWS (0x1u << 2) 247 #define SUPC_SR_SMWS_NO (0x0u << 2) 248 #define SUPC_SR_SMWS_PRESENT (0x1u << 2) 249 #define SUPC_SR_BODRSTS (0x1u << 3) 250 #define SUPC_SR_BODRSTS_NO (0x0u << 3) 251 #define SUPC_SR_BODRSTS_PRESENT (0x1u << 3) 252 #define SUPC_SR_SMRSTS (0x1u << 4) 253 #define SUPC_SR_SMRSTS_NO (0x0u << 4) 254 #define SUPC_SR_SMRSTS_PRESENT (0x1u << 4) 255 #define SUPC_SR_SMS (0x1u << 5) 256 #define SUPC_SR_SMS_NO (0x0u << 5) 257 #define SUPC_SR_SMS_PRESENT (0x1u << 5) 258 #define SUPC_SR_SMOS (0x1u << 6) 259 #define SUPC_SR_SMOS_HIGH (0x0u << 6) 260 #define SUPC_SR_SMOS_LOW (0x1u << 6) 261 #define SUPC_SR_OSCSEL (0x1u << 7) 262 #define SUPC_SR_OSCSEL_RC (0x0u << 7) 263 #define SUPC_SR_OSCSEL_CRYST (0x1u << 7) 264 #define SUPC_SR_LPDBCS0 (0x1u << 13) 265 #define SUPC_SR_LPDBCS0_NO (0x0u << 13) 266 #define SUPC_SR_LPDBCS0_PRESENT (0x1u << 13) 267 #define SUPC_SR_LPDBCS1 (0x1u << 14) 268 #define SUPC_SR_LPDBCS1_NO (0x0u << 14) 269 #define SUPC_SR_LPDBCS1_PRESENT (0x1u << 14) 270 #define SUPC_SR_WKUPIS0 (0x1u << 16) 271 #define SUPC_SR_WKUPIS0_DIS (0x0u << 16) 272 #define SUPC_SR_WKUPIS0_EN (0x1u << 16) 273 #define SUPC_SR_WKUPIS1 (0x1u << 17) 274 #define SUPC_SR_WKUPIS1_DIS (0x0u << 17) 275 #define SUPC_SR_WKUPIS1_EN (0x1u << 17) 276 #define SUPC_SR_WKUPIS2 (0x1u << 18) 277 #define SUPC_SR_WKUPIS2_DIS (0x0u << 18) 278 #define SUPC_SR_WKUPIS2_EN (0x1u << 18) 279 #define SUPC_SR_WKUPIS3 (0x1u << 19) 280 #define SUPC_SR_WKUPIS3_DIS (0x0u << 19) 281 #define SUPC_SR_WKUPIS3_EN (0x1u << 19) 282 #define SUPC_SR_WKUPIS4 (0x1u << 20) 283 #define SUPC_SR_WKUPIS4_DIS (0x0u << 20) 284 #define SUPC_SR_WKUPIS4_EN (0x1u << 20) 285 #define SUPC_SR_WKUPIS5 (0x1u << 21) 286 #define SUPC_SR_WKUPIS5_DIS (0x0u << 21) 287 #define SUPC_SR_WKUPIS5_EN (0x1u << 21) 288 #define SUPC_SR_WKUPIS6 (0x1u << 22) 289 #define SUPC_SR_WKUPIS6_DIS (0x0u << 22) 290 #define SUPC_SR_WKUPIS6_EN (0x1u << 22) 291 #define SUPC_SR_WKUPIS7 (0x1u << 23) 292 #define SUPC_SR_WKUPIS7_DIS (0x0u << 23) 293 #define SUPC_SR_WKUPIS7_EN (0x1u << 23) 294 #define SUPC_SR_WKUPIS8 (0x1u << 24) 295 #define SUPC_SR_WKUPIS8_DIS (0x0u << 24) 296 #define SUPC_SR_WKUPIS8_EN (0x1u << 24) 297 #define SUPC_SR_WKUPIS9 (0x1u << 25) 298 #define SUPC_SR_WKUPIS9_DIS (0x0u << 25) 299 #define SUPC_SR_WKUPIS9_EN (0x1u << 25) 300 #define SUPC_SR_WKUPIS10 (0x1u << 26) 301 #define SUPC_SR_WKUPIS10_DIS (0x0u << 26) 302 #define SUPC_SR_WKUPIS10_EN (0x1u << 26) 303 #define SUPC_SR_WKUPIS11 (0x1u << 27) 304 #define SUPC_SR_WKUPIS11_DIS (0x0u << 27) 305 #define SUPC_SR_WKUPIS11_EN (0x1u << 27) 306 #define SUPC_SR_WKUPIS12 (0x1u << 28) 307 #define SUPC_SR_WKUPIS12_DIS (0x0u << 28) 308 #define SUPC_SR_WKUPIS12_EN (0x1u << 28) 309 #define SUPC_SR_WKUPIS13 (0x1u << 29) 310 #define SUPC_SR_WKUPIS13_DIS (0x0u << 29) 311 #define SUPC_SR_WKUPIS13_EN (0x1u << 29) 312 #define SUPC_SR_WKUPIS14 (0x1u << 30) 313 #define SUPC_SR_WKUPIS14_DIS (0x0u << 30) 314 #define SUPC_SR_WKUPIS14_EN (0x1u << 30) 315 #define SUPC_SR_WKUPIS15 (0x1u << 31) 316 #define SUPC_SR_WKUPIS15_DIS (0x0u << 31) 317 #define SUPC_SR_WKUPIS15_EN (0x1u << 31) volatile uint32_t RwReg
Definition: sam3n00a.h:54
volatile uint32_t WoReg
Definition: sam3n00a.h:53
Supc hardware registers.
Definition: component_supc.h:41
volatile const uint32_t RoReg
Definition: sam3n00a.h:49