Harald Welte | d1bd5c4 | 2019-05-17 16:38:30 +0200 | [diff] [blame] | 1 | /* Auto-generated config file hpl_rtc_config.h */ |
| 2 | #ifndef HPL_RTC_CONFIG_H |
| 3 | #define HPL_RTC_CONFIG_H |
| 4 | |
| 5 | // <<< Use Configuration Wizard in Context Menu >>> |
| 6 | |
| 7 | // <h> Basic settings |
| 8 | |
| 9 | #ifndef CONF_RTC_ENABLE |
| 10 | #define CONF_RTC_ENABLE 1 |
| 11 | #endif |
| 12 | |
| 13 | // <q> Force reset RTC on initialization |
| 14 | // <i> Force RTC to reset on initialization. |
| 15 | // <i> Note that the previous power down data in RTC is lost if it's enabled. |
| 16 | // <id> rtc_arch_init_reset |
| 17 | #ifndef CONF_RTC_INIT_RESET |
| 18 | #define CONF_RTC_INIT_RESET 1 |
| 19 | #endif |
| 20 | |
| 21 | // <o> Prescaler configuration |
| 22 | // <0x0=>OFF(Peripheral clock divided by 1) |
| 23 | // <0x1=>Peripheral clock divided by 1 |
| 24 | // <0x2=>Peripheral clock divided by 2 |
| 25 | // <0x3=>Peripheral clock divided by 4 |
| 26 | // <0x4=>Peripheral clock divided by 8 |
| 27 | // <0x5=>Peripheral clock divided by 16 |
| 28 | // <0x6=>Peripheral clock divided by 32 |
| 29 | // <0x7=>Peripheral clock divided by 64 |
| 30 | // <0x8=>Peripheral clock divided by 128 |
| 31 | // <0x9=>Peripheral clock divided by 256 |
| 32 | // <0xA=>Peripheral clock divided by 512 |
| 33 | // <0xB=>Peripheral clock divided by 1024 |
| 34 | // <i> These bits define the RTC clock relative to the peripheral clock |
| 35 | // <id> rtc_arch_prescaler |
| 36 | #ifndef CONF_RTC_PRESCALER |
| 37 | |
| 38 | #define CONF_RTC_PRESCALER 0xB |
| 39 | |
| 40 | #endif |
| 41 | |
| 42 | #ifndef CONF_RTC_COMP_VAL |
| 43 | |
| 44 | #define CONF_RTC_COMP_VAL 0 |
| 45 | |
| 46 | #endif |
| 47 | |
| 48 | // <e> RTC Tamper Input 0 settings |
| 49 | // <id> tamper_input_0_settings |
| 50 | #ifndef CONF_TAMPER_INPUT_0_SETTINGS |
| 51 | #define CONF_TAMPER_INPUT_0_SETTINGS 0 |
| 52 | #endif |
| 53 | |
| 54 | // <q> Tamper Level Settings |
| 55 | // <i> Indicates Tamper input 0 level |
| 56 | // <id> tamper_level_0 |
| 57 | #ifndef CONF_RTC_TAMP_LVL_0 |
| 58 | #define CONF_RTC_TAMP_LVL_0 0 |
| 59 | #endif |
| 60 | |
| 61 | // <o> RTC Tamper Input Action |
| 62 | // <0x0=>OFF(Disabled) |
| 63 | // <0x1=>Wake and Set Tamper Flag |
| 64 | // <0x2=>Capture Timestamp and Set Tamper Flag |
| 65 | // <0x3=>Active Layer Mode.IN and OUT pin is used.Timestamp is also captured. |
| 66 | // <i> These bits define the RTC Tamper Input Action to be performed |
| 67 | // <id> rtc_tamper_input_action_0 |
| 68 | #ifndef CONF_RTC_TAMPER_INACT_0 |
| 69 | #define CONF_RTC_TAMPER_INACT_0 0 |
| 70 | #endif |
| 71 | |
| 72 | // <q> Debounce Enable for Tamper Input |
| 73 | // <i> Indicates Debounce should be enabled for Tamper input 0 |
| 74 | // <id> tamper_debounce_enable_0 |
| 75 | #ifndef CONF_RTC_TAMP_DEBNC_0 |
| 76 | #define CONF_RTC_TAMP_DEBNC_0 0 |
| 77 | #endif |
| 78 | |
| 79 | // </e> |
| 80 | |
| 81 | // <e> RTC Tamper Input 1 settings |
| 82 | // <id> tamper_input_1_settings |
| 83 | #ifndef CONF_TAMPER_INPUT_1_SETTINGS |
| 84 | #define CONF_TAMPER_INPUT_1_SETTINGS 0 |
| 85 | #endif |
| 86 | |
| 87 | // <q> Tamper Level Settings |
| 88 | // <i> Indicates Tamper input 1 level |
| 89 | // <id> tamper_level_1 |
| 90 | #ifndef CONF_RTC_TAMP_LVL_1 |
| 91 | #define CONF_RTC_TAMP_LVL_1 0 |
| 92 | #endif |
| 93 | |
| 94 | // <o> RTC Tamper Input Action |
| 95 | // <0x0=>OFF(Disabled) |
| 96 | // <0x1=>Wake and Set Tamper Flag |
| 97 | // <0x2=>Capture Timestamp and Set Tamper Flag |
| 98 | // <0x3=>Active Layer Mode.IN and OUT pin is used.Timestamp is also captured. |
| 99 | // <i> These bits define the RTC Tamper Input Action to be performed |
| 100 | // <id> rtc_tamper_input_action_1 |
| 101 | #ifndef CONF_RTC_TAMPER_INACT_1 |
| 102 | #define CONF_RTC_TAMPER_INACT_1 0 |
| 103 | #endif |
| 104 | |
| 105 | // <q> Debounce Enable for Tamper Input |
| 106 | // <i> Indicates Debounce should be enabled for Tamper input 1 |
| 107 | // <id> tamper_debounce_enable_1 |
| 108 | #ifndef CONF_RTC_TAMP_DEBNC_1 |
| 109 | #define CONF_RTC_TAMP_DEBNC_1 0 |
| 110 | #endif |
| 111 | |
| 112 | // </e> |
| 113 | |
| 114 | // <e> RTC Tamper Input 2 settings |
| 115 | // <id> tamper_input_2_settings |
| 116 | #ifndef CONF_TAMPER_INPUT_2_SETTINGS |
| 117 | #define CONF_TAMPER_INPUT_2_SETTINGS 0 |
| 118 | #endif |
| 119 | |
| 120 | // <q> Tamper Level Settings |
| 121 | // <i> Indicates Tamper input 2 level |
| 122 | // <id> tamper_level_2 |
| 123 | #ifndef CONF_RTC_TAMP_LVL_2 |
| 124 | #define CONF_RTC_TAMP_LVL_2 0 |
| 125 | #endif |
| 126 | |
| 127 | // <o> RTC Tamper Input Action |
| 128 | // <0x0=>OFF(Disabled) |
| 129 | // <0x1=>Wake and Set Tamper Flag |
| 130 | // <0x2=>Capture Timestamp and Set Tamper Flag |
| 131 | // <0x3=>Active Layer Mode.IN and OUT pin is used.Timestamp is also captured. |
| 132 | // <i> These bits define the RTC Tamper Input Action to be performed |
| 133 | // <id> rtc_tamper_input_action_2 |
| 134 | #ifndef CONF_RTC_TAMPER_INACT_2 |
| 135 | #define CONF_RTC_TAMPER_INACT_2 0 |
| 136 | #endif |
| 137 | |
| 138 | // <q> Debounce Enable for Tamper Input |
| 139 | // <i> Indicates Debounce should be enabled for Tamper input 2 |
| 140 | // <id> tamper_debounce_enable_2 |
| 141 | #ifndef CONF_RTC_TAMP_DEBNC_2 |
| 142 | #define CONF_RTC_TAMP_DEBNC_2 0 |
| 143 | #endif |
| 144 | |
| 145 | // </e> |
| 146 | |
| 147 | // <e> RTC Tamper Input 3 settings |
| 148 | // <id> tamper_input_3_settings |
| 149 | #ifndef CONF_TAMPER_INPUT_3_SETTINGS |
| 150 | #define CONF_TAMPER_INPUT_3_SETTINGS 0 |
| 151 | #endif |
| 152 | |
| 153 | // <q> Tamper Level Settings |
| 154 | // <i> Indicates Tamper input 3 level |
| 155 | // <id> tamper_level_3 |
| 156 | #ifndef CONF_RTC_TAMP_LVL_3 |
| 157 | #define CONF_RTC_TAMP_LVL_3 0 |
| 158 | #endif |
| 159 | |
| 160 | // <o> RTC Tamper Input Action |
| 161 | // <0x0=>OFF(Disabled) |
| 162 | // <0x1=>Wake and Set Tamper Flag |
| 163 | // <0x2=>Capture Timestamp and Set Tamper Flag |
| 164 | // <0x3=>Active Layer Mode.IN and OUT pin is used.Timestamp is also captured. |
| 165 | // <i> These bits define the RTC Tamper Input Action to be performed |
| 166 | // <id> rtc_tamper_input_action_3 |
| 167 | #ifndef CONF_RTC_TAMPER_INACT_3 |
| 168 | #define CONF_RTC_TAMPER_INACT_3 0 |
| 169 | #endif |
| 170 | |
| 171 | // <q> Debounce Enable for Tamper Input |
| 172 | // <i> Indicates Debounce should be enabled for Tamper input 3 |
| 173 | // <id> tamper_debounce_enable_3 |
| 174 | #ifndef CONF_RTC_TAMP_DEBNC_3 |
| 175 | #define CONF_RTC_TAMP_DEBNC_3 0 |
| 176 | #endif |
| 177 | |
| 178 | // </e> |
| 179 | |
| 180 | // <e> RTC Tamper Input 4 settings |
| 181 | // <id> tamper_input_4_settings |
| 182 | #ifndef CONF_TAMPER_INPUT_4_SETTINGS |
| 183 | #define CONF_TAMPER_INPUT_4_SETTINGS 0 |
| 184 | #endif |
| 185 | |
| 186 | // <q> Tamper Level Settings |
| 187 | // <i> Indicates Tamper input 4 level |
| 188 | // <id> tamper_level_4 |
| 189 | #ifndef CONF_RTC_TAMP_LVL_4 |
| 190 | #define CONF_RTC_TAMP_LVL_4 0 |
| 191 | #endif |
| 192 | |
| 193 | // <o> RTC Tamper Input Action |
| 194 | // <0x0=>OFF(Disabled) |
| 195 | // <0x1=>Wake and Set Tamper Flag |
| 196 | // <0x2=>Capture Timestamp and Set Tamper Flag |
| 197 | // <0x3=>Active Layer Mode.IN and OUT pin is used.Timestamp is also captured. |
| 198 | // <i> These bits define the RTC Tamper Input Action to be performed |
| 199 | // <id> rtc_tamper_input_action_4 |
| 200 | #ifndef CONF_RTC_TAMPER_INACT_4 |
| 201 | #define CONF_RTC_TAMPER_INACT_4 0 |
| 202 | #endif |
| 203 | |
| 204 | // <q> Debounce Enable for Tamper Input |
| 205 | // <i> Indicates Debounce should be enabled for Tamper input 4 |
| 206 | // <id> tamper_debounce_enable_4 |
| 207 | #ifndef CONF_RTC_TAMP_DEBNC_4 |
| 208 | #define CONF_RTC_TAMP_DEBNC_4 0 |
| 209 | #endif |
| 210 | |
| 211 | // </e> |
| 212 | |
| 213 | // <o> RTC Tamper Active Layer Frequency Prescalar |
| 214 | // <0x0=>DIV2 CLK_RTC_OUT is CLK_RTC /2 |
| 215 | // <0x1=>DIV4 CLK_RTC_OUT is CLK_RTC /4 |
| 216 | // <0x2=>DIV8 CLK_RTC_OUT is CLK_RTC /8 |
| 217 | // <0x3=>DIV16 CLK_RTC_OUT is CLK_RTC /16 |
| 218 | // <0x4=>DIV32 CLK_RTC_OUT is CLK_RTC /32 |
| 219 | // <0x5=>DIV64 CLK_RTC_OUT is CLK_RTC /64 |
| 220 | // <0x6=>DIV128 CLK_RTC_OUT is CLK_RTC /128 |
| 221 | // <0x7=>DIV256 CLK_RTC_OUT is CLK_RTC /256 |
| 222 | // <i> These bits define the RTC Tamper Active Layer Frequecny Prescalar |
| 223 | // <id> rtc_tamper_active_layer_frequency_prescalar |
| 224 | #ifndef CONF_RTC_TAMP_ACT_LAYER_FREQ_PRES |
| 225 | #define CONF_RTC_TAMP_ACT_LAYER_FREQ_PRES 0 |
| 226 | #endif |
| 227 | |
| 228 | // <o> RTC Tamper Debounce Frequency Prescalar |
| 229 | // <0x0=>DIV2 CLK_RTC_DEB is CLK_RTC /2 |
| 230 | // <0x1=>DIV4 CLK_RTC_DEB is CLK_RTC /4 |
| 231 | // <0x2=>DIV8 CLK_RTC_DEB is CLK_RTC /8 |
| 232 | // <0x3=>DIV16 CLK_RTC_DEB is CLK_RTC /16 |
| 233 | // <0x4=>DIV32 CLK_RTC_DEB is CLK_RTC /32 |
| 234 | // <0x5=>DIV64 CLK_RTC_DEB is CLK_RTC /64 |
| 235 | // <0x6=>DIV128 CLK_RTC_DEB is CLK_RTC /128 |
| 236 | // <0x7=>DIV256 CLK_RTC_DEB is CLK_RTC /256 |
| 237 | // <i> These bits define the RTC Debounce Frequency Prescalar |
| 238 | // <id> rtc_tamper_debounce_frequency_prescalar |
| 239 | #ifndef CONF_RTC_TAMP_DEBF_PRES |
| 240 | #define CONF_RTC_TAMP_DEBF_PRES 0 |
| 241 | #endif |
| 242 | |
| 243 | // <e> Event control |
| 244 | // <id> rtc_event_control |
| 245 | #ifndef CONF_RTC_EVENT_CONTROL_ENABLE |
| 246 | #define CONF_RTC_EVENT_CONTROL_ENABLE 0 |
| 247 | #endif |
| 248 | |
| 249 | // <q> Periodic Interval 0 Event Output |
| 250 | // <i> This bit indicates whether Periodic interval 0 event is enabled and will be generated |
| 251 | // <id> rtc_pereo0 |
| 252 | #ifndef CONF_RTC_PEREO0 |
| 253 | #define CONF_RTC_PEREO0 0 |
| 254 | #endif |
| 255 | // <q> Periodic Interval 1 Event Output |
| 256 | // <i> This bit indicates whether Periodic interval 1 event is enabled and will be generated |
| 257 | // <id> rtc_pereo1 |
| 258 | #ifndef CONF_RTC_PEREO1 |
| 259 | #define CONF_RTC_PEREO1 0 |
| 260 | #endif |
| 261 | // <q> Periodic Interval 2 Event Output |
| 262 | // <i> This bit indicates whether Periodic interval 2 event is enabled and will be generated |
| 263 | // <id> rtc_pereo2 |
| 264 | #ifndef CONF_RTC_PEREO2 |
| 265 | #define CONF_RTC_PEREO2 0 |
| 266 | #endif |
| 267 | // <q> Periodic Interval 3 Event Output |
| 268 | // <i> This bit indicates whether Periodic interval 3 event is enabled and will be generated |
| 269 | // <id> rtc_pereo3 |
| 270 | #ifndef CONF_RTC_PEREO3 |
| 271 | #define CONF_RTC_PEREO3 0 |
| 272 | #endif |
| 273 | // <q> Periodic Interval 4 Event Output |
| 274 | // <i> This bit indicates whether Periodic interval 4 event is enabled and will be generated |
| 275 | // <id> rtc_pereo4 |
| 276 | #ifndef CONF_RTC_PEREO4 |
| 277 | #define CONF_RTC_PEREO4 0 |
| 278 | #endif |
| 279 | // <q> Periodic Interval 5 Event Output |
| 280 | // <i> This bit indicates whether Periodic interval 5 event is enabled and will be generated |
| 281 | // <id> rtc_pereo5 |
| 282 | #ifndef CONF_RTC_PEREO5 |
| 283 | #define CONF_RTC_PEREO5 0 |
| 284 | #endif |
| 285 | // <q> Periodic Interval 6 Event Output |
| 286 | // <i> This bit indicates whether Periodic interval 6 event is enabled and will be generated |
| 287 | // <id> rtc_pereo6 |
| 288 | #ifndef CONF_RTC_PEREO6 |
| 289 | #define CONF_RTC_PEREO6 0 |
| 290 | #endif |
| 291 | // <q> Periodic Interval 7 Event Output |
| 292 | // <i> This bit indicates whether Periodic interval 7 event is enabled and will be generated |
| 293 | // <id> rtc_pereo7 |
| 294 | #ifndef CONF_RTC_PEREO7 |
| 295 | #define CONF_RTC_PEREO7 0 |
| 296 | #endif |
| 297 | |
| 298 | // <q> Compare 0 Event Output |
| 299 | // <i> This bit indicates whether Compare O event is enabled and will be generated |
| 300 | // <id> rtc_cmpeo0 |
| 301 | #ifndef CONF_RTC_COMPE0 |
| 302 | #define CONF_RTC_COMPE0 0 |
| 303 | #endif |
| 304 | |
| 305 | // <q> Compare 1 Event Output |
| 306 | // <i> This bit indicates whether Compare 1 event is enabled and will be generated |
| 307 | // <id> rtc_cmpeo1 |
| 308 | #ifndef CONF_RTC_COMPE1 |
| 309 | #define CONF_RTC_COMPE1 0 |
| 310 | #endif |
| 311 | // <q> Overflow Event Output |
| 312 | // <i> This bit indicates whether Overflow event is enabled and will be generated |
| 313 | // <id> rtc_ovfeo |
| 314 | #ifndef CONF_RTC_OVFEO |
| 315 | #define CONF_RTC_OVFEO 0 |
| 316 | #endif |
| 317 | |
| 318 | // <q> Tamper Event Output |
| 319 | // <i> This bit indicates whether Tamper event output is enabled and will be generated |
| 320 | // <id> rtc_tampereo |
| 321 | #ifndef CONF_RTC_TAMPEREO |
| 322 | #define CONF_RTC_TAMPEREO 0 |
| 323 | #endif |
| 324 | |
| 325 | // <q> Tamper Event Input |
| 326 | // <i> This bit indicates whether Tamper event input is enabled and will be generated |
| 327 | // <id> rtc_tampevei |
| 328 | #ifndef CONF_RTC_TAMPEVEI |
| 329 | #define CONF_RTC_TAMPEVEI 0 |
| 330 | #endif |
| 331 | // </e> |
| 332 | |
| 333 | // </h> |
| 334 | |
| 335 | // <<< end of configuration section >>> |
| 336 | |
| 337 | #endif // HPL_RTC_CONFIG_H |