30 #ifndef _SAM3S_SUPC_COMPONENT_ 31 #define _SAM3S_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_WKUPDBC_Pos 12 119 #define SUPC_WUMR_WKUPDBC_Msk (0x7u << SUPC_WUMR_WKUPDBC_Pos) 120 #define SUPC_WUMR_WKUPDBC_IMMEDIATE (0x0u << 12) 121 #define SUPC_WUMR_WKUPDBC_3_SCLK (0x1u << 12) 122 #define SUPC_WUMR_WKUPDBC_32_SCLK (0x2u << 12) 123 #define SUPC_WUMR_WKUPDBC_512_SCLK (0x3u << 12) 124 #define SUPC_WUMR_WKUPDBC_4096_SCLK (0x4u << 12) 125 #define SUPC_WUMR_WKUPDBC_32768_SCLK (0x5u << 12) 127 #define SUPC_WUIR_WKUPEN0 (0x1u << 0) 128 #define SUPC_WUIR_WKUPEN0_DISABLE (0x0u << 0) 129 #define SUPC_WUIR_WKUPEN0_ENABLE (0x1u << 0) 130 #define SUPC_WUIR_WKUPEN1 (0x1u << 1) 131 #define SUPC_WUIR_WKUPEN1_DISABLE (0x0u << 1) 132 #define SUPC_WUIR_WKUPEN1_ENABLE (0x1u << 1) 133 #define SUPC_WUIR_WKUPEN2 (0x1u << 2) 134 #define SUPC_WUIR_WKUPEN2_DISABLE (0x0u << 2) 135 #define SUPC_WUIR_WKUPEN2_ENABLE (0x1u << 2) 136 #define SUPC_WUIR_WKUPEN3 (0x1u << 3) 137 #define SUPC_WUIR_WKUPEN3_DISABLE (0x0u << 3) 138 #define SUPC_WUIR_WKUPEN3_ENABLE (0x1u << 3) 139 #define SUPC_WUIR_WKUPEN4 (0x1u << 4) 140 #define SUPC_WUIR_WKUPEN4_DISABLE (0x0u << 4) 141 #define SUPC_WUIR_WKUPEN4_ENABLE (0x1u << 4) 142 #define SUPC_WUIR_WKUPEN5 (0x1u << 5) 143 #define SUPC_WUIR_WKUPEN5_DISABLE (0x0u << 5) 144 #define SUPC_WUIR_WKUPEN5_ENABLE (0x1u << 5) 145 #define SUPC_WUIR_WKUPEN6 (0x1u << 6) 146 #define SUPC_WUIR_WKUPEN6_DISABLE (0x0u << 6) 147 #define SUPC_WUIR_WKUPEN6_ENABLE (0x1u << 6) 148 #define SUPC_WUIR_WKUPEN7 (0x1u << 7) 149 #define SUPC_WUIR_WKUPEN7_DISABLE (0x0u << 7) 150 #define SUPC_WUIR_WKUPEN7_ENABLE (0x1u << 7) 151 #define SUPC_WUIR_WKUPEN8 (0x1u << 8) 152 #define SUPC_WUIR_WKUPEN8_DISABLE (0x0u << 8) 153 #define SUPC_WUIR_WKUPEN8_ENABLE (0x1u << 8) 154 #define SUPC_WUIR_WKUPEN9 (0x1u << 9) 155 #define SUPC_WUIR_WKUPEN9_DISABLE (0x0u << 9) 156 #define SUPC_WUIR_WKUPEN9_ENABLE (0x1u << 9) 157 #define SUPC_WUIR_WKUPEN10 (0x1u << 10) 158 #define SUPC_WUIR_WKUPEN10_DISABLE (0x0u << 10) 159 #define SUPC_WUIR_WKUPEN10_ENABLE (0x1u << 10) 160 #define SUPC_WUIR_WKUPEN11 (0x1u << 11) 161 #define SUPC_WUIR_WKUPEN11_DISABLE (0x0u << 11) 162 #define SUPC_WUIR_WKUPEN11_ENABLE (0x1u << 11) 163 #define SUPC_WUIR_WKUPEN12 (0x1u << 12) 164 #define SUPC_WUIR_WKUPEN12_DISABLE (0x0u << 12) 165 #define SUPC_WUIR_WKUPEN12_ENABLE (0x1u << 12) 166 #define SUPC_WUIR_WKUPEN13 (0x1u << 13) 167 #define SUPC_WUIR_WKUPEN13_DISABLE (0x0u << 13) 168 #define SUPC_WUIR_WKUPEN13_ENABLE (0x1u << 13) 169 #define SUPC_WUIR_WKUPEN14 (0x1u << 14) 170 #define SUPC_WUIR_WKUPEN14_DISABLE (0x0u << 14) 171 #define SUPC_WUIR_WKUPEN14_ENABLE (0x1u << 14) 172 #define SUPC_WUIR_WKUPEN15 (0x1u << 15) 173 #define SUPC_WUIR_WKUPEN15_DISABLE (0x0u << 15) 174 #define SUPC_WUIR_WKUPEN15_ENABLE (0x1u << 15) 175 #define SUPC_WUIR_WKUPT0 (0x1u << 16) 176 #define SUPC_WUIR_WKUPT0_HIGH_TO_LOW (0x0u << 16) 177 #define SUPC_WUIR_WKUPT0_LOW_TO_HIGH (0x1u << 16) 178 #define SUPC_WUIR_WKUPT1 (0x1u << 17) 179 #define SUPC_WUIR_WKUPT1_HIGH_TO_LOW (0x0u << 17) 180 #define SUPC_WUIR_WKUPT1_LOW_TO_HIGH (0x1u << 17) 181 #define SUPC_WUIR_WKUPT2 (0x1u << 18) 182 #define SUPC_WUIR_WKUPT2_HIGH_TO_LOW (0x0u << 18) 183 #define SUPC_WUIR_WKUPT2_LOW_TO_HIGH (0x1u << 18) 184 #define SUPC_WUIR_WKUPT3 (0x1u << 19) 185 #define SUPC_WUIR_WKUPT3_HIGH_TO_LOW (0x0u << 19) 186 #define SUPC_WUIR_WKUPT3_LOW_TO_HIGH (0x1u << 19) 187 #define SUPC_WUIR_WKUPT4 (0x1u << 20) 188 #define SUPC_WUIR_WKUPT4_HIGH_TO_LOW (0x0u << 20) 189 #define SUPC_WUIR_WKUPT4_LOW_TO_HIGH (0x1u << 20) 190 #define SUPC_WUIR_WKUPT5 (0x1u << 21) 191 #define SUPC_WUIR_WKUPT5_HIGH_TO_LOW (0x0u << 21) 192 #define SUPC_WUIR_WKUPT5_LOW_TO_HIGH (0x1u << 21) 193 #define SUPC_WUIR_WKUPT6 (0x1u << 22) 194 #define SUPC_WUIR_WKUPT6_HIGH_TO_LOW (0x0u << 22) 195 #define SUPC_WUIR_WKUPT6_LOW_TO_HIGH (0x1u << 22) 196 #define SUPC_WUIR_WKUPT7 (0x1u << 23) 197 #define SUPC_WUIR_WKUPT7_HIGH_TO_LOW (0x0u << 23) 198 #define SUPC_WUIR_WKUPT7_LOW_TO_HIGH (0x1u << 23) 199 #define SUPC_WUIR_WKUPT8 (0x1u << 24) 200 #define SUPC_WUIR_WKUPT8_HIGH_TO_LOW (0x0u << 24) 201 #define SUPC_WUIR_WKUPT8_LOW_TO_HIGH (0x1u << 24) 202 #define SUPC_WUIR_WKUPT9 (0x1u << 25) 203 #define SUPC_WUIR_WKUPT9_HIGH_TO_LOW (0x0u << 25) 204 #define SUPC_WUIR_WKUPT9_LOW_TO_HIGH (0x1u << 25) 205 #define SUPC_WUIR_WKUPT10 (0x1u << 26) 206 #define SUPC_WUIR_WKUPT10_HIGH_TO_LOW (0x0u << 26) 207 #define SUPC_WUIR_WKUPT10_LOW_TO_HIGH (0x1u << 26) 208 #define SUPC_WUIR_WKUPT11 (0x1u << 27) 209 #define SUPC_WUIR_WKUPT11_HIGH_TO_LOW (0x0u << 27) 210 #define SUPC_WUIR_WKUPT11_LOW_TO_HIGH (0x1u << 27) 211 #define SUPC_WUIR_WKUPT12 (0x1u << 28) 212 #define SUPC_WUIR_WKUPT12_HIGH_TO_LOW (0x0u << 28) 213 #define SUPC_WUIR_WKUPT12_LOW_TO_HIGH (0x1u << 28) 214 #define SUPC_WUIR_WKUPT13 (0x1u << 29) 215 #define SUPC_WUIR_WKUPT13_HIGH_TO_LOW (0x0u << 29) 216 #define SUPC_WUIR_WKUPT13_LOW_TO_HIGH (0x1u << 29) 217 #define SUPC_WUIR_WKUPT14 (0x1u << 30) 218 #define SUPC_WUIR_WKUPT14_HIGH_TO_LOW (0x0u << 30) 219 #define SUPC_WUIR_WKUPT14_LOW_TO_HIGH (0x1u << 30) 220 #define SUPC_WUIR_WKUPT15 (0x1u << 31) 221 #define SUPC_WUIR_WKUPT15_HIGH_TO_LOW (0x0u << 31) 222 #define SUPC_WUIR_WKUPT15_LOW_TO_HIGH (0x1u << 31) 224 #define SUPC_SR_WKUPS (0x1u << 1) 225 #define SUPC_SR_WKUPS_NO (0x0u << 1) 226 #define SUPC_SR_WKUPS_PRESENT (0x1u << 1) 227 #define SUPC_SR_SMWS (0x1u << 2) 228 #define SUPC_SR_SMWS_NO (0x0u << 2) 229 #define SUPC_SR_SMWS_PRESENT (0x1u << 2) 230 #define SUPC_SR_BODRSTS (0x1u << 3) 231 #define SUPC_SR_BODRSTS_NO (0x0u << 3) 232 #define SUPC_SR_BODRSTS_PRESENT (0x1u << 3) 233 #define SUPC_SR_SMRSTS (0x1u << 4) 234 #define SUPC_SR_SMRSTS_NO (0x0u << 4) 235 #define SUPC_SR_SMRSTS_PRESENT (0x1u << 4) 236 #define SUPC_SR_SMS (0x1u << 5) 237 #define SUPC_SR_SMS_NO (0x0u << 5) 238 #define SUPC_SR_SMS_PRESENT (0x1u << 5) 239 #define SUPC_SR_SMOS (0x1u << 6) 240 #define SUPC_SR_SMOS_HIGH (0x0u << 6) 241 #define SUPC_SR_SMOS_LOW (0x1u << 6) 242 #define SUPC_SR_OSCSEL (0x1u << 7) 243 #define SUPC_SR_OSCSEL_RC (0x0u << 7) 244 #define SUPC_SR_OSCSEL_CRYST (0x1u << 7) 245 #define SUPC_SR_WKUPIS0 (0x1u << 16) 246 #define SUPC_SR_WKUPIS0_DIS (0x0u << 16) 247 #define SUPC_SR_WKUPIS0_EN (0x1u << 16) 248 #define SUPC_SR_WKUPIS1 (0x1u << 17) 249 #define SUPC_SR_WKUPIS1_DIS (0x0u << 17) 250 #define SUPC_SR_WKUPIS1_EN (0x1u << 17) 251 #define SUPC_SR_WKUPIS2 (0x1u << 18) 252 #define SUPC_SR_WKUPIS2_DIS (0x0u << 18) 253 #define SUPC_SR_WKUPIS2_EN (0x1u << 18) 254 #define SUPC_SR_WKUPIS3 (0x1u << 19) 255 #define SUPC_SR_WKUPIS3_DIS (0x0u << 19) 256 #define SUPC_SR_WKUPIS3_EN (0x1u << 19) 257 #define SUPC_SR_WKUPIS4 (0x1u << 20) 258 #define SUPC_SR_WKUPIS4_DIS (0x0u << 20) 259 #define SUPC_SR_WKUPIS4_EN (0x1u << 20) 260 #define SUPC_SR_WKUPIS5 (0x1u << 21) 261 #define SUPC_SR_WKUPIS5_DIS (0x0u << 21) 262 #define SUPC_SR_WKUPIS5_EN (0x1u << 21) 263 #define SUPC_SR_WKUPIS6 (0x1u << 22) 264 #define SUPC_SR_WKUPIS6_DIS (0x0u << 22) 265 #define SUPC_SR_WKUPIS6_EN (0x1u << 22) 266 #define SUPC_SR_WKUPIS7 (0x1u << 23) 267 #define SUPC_SR_WKUPIS7_DIS (0x0u << 23) 268 #define SUPC_SR_WKUPIS7_EN (0x1u << 23) 269 #define SUPC_SR_WKUPIS8 (0x1u << 24) 270 #define SUPC_SR_WKUPIS8_DIS (0x0u << 24) 271 #define SUPC_SR_WKUPIS8_EN (0x1u << 24) 272 #define SUPC_SR_WKUPIS9 (0x1u << 25) 273 #define SUPC_SR_WKUPIS9_DIS (0x0u << 25) 274 #define SUPC_SR_WKUPIS9_EN (0x1u << 25) 275 #define SUPC_SR_WKUPIS10 (0x1u << 26) 276 #define SUPC_SR_WKUPIS10_DIS (0x0u << 26) 277 #define SUPC_SR_WKUPIS10_EN (0x1u << 26) 278 #define SUPC_SR_WKUPIS11 (0x1u << 27) 279 #define SUPC_SR_WKUPIS11_DIS (0x0u << 27) 280 #define SUPC_SR_WKUPIS11_EN (0x1u << 27) 281 #define SUPC_SR_WKUPIS12 (0x1u << 28) 282 #define SUPC_SR_WKUPIS12_DIS (0x0u << 28) 283 #define SUPC_SR_WKUPIS12_EN (0x1u << 28) 284 #define SUPC_SR_WKUPIS13 (0x1u << 29) 285 #define SUPC_SR_WKUPIS13_DIS (0x0u << 29) 286 #define SUPC_SR_WKUPIS13_EN (0x1u << 29) 287 #define SUPC_SR_WKUPIS14 (0x1u << 30) 288 #define SUPC_SR_WKUPIS14_DIS (0x0u << 30) 289 #define SUPC_SR_WKUPIS14_EN (0x1u << 30) 290 #define SUPC_SR_WKUPIS15 (0x1u << 31) 291 #define SUPC_SR_WKUPIS15_DIS (0x0u << 31) 292 #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