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 // <o> Prescaler configuration 14 // <0x0=>OFF(Peripheral clock divided by 1) 15 // <0x1=>Peripheral clock divided by 1 16 // <0x2=>Peripheral clock divided by 2 17 // <0x3=>Peripheral clock divided by 4 18 // <0x4=>Peripheral clock divided by 8 19 // <0x5=>Peripheral clock divided by 16 20 // <0x6=>Peripheral clock divided by 32 21 // <0x7=>Peripheral clock divided by 64 22 // <0x8=>Peripheral clock divided by 128 23 // <0x9=>Peripheral clock divided by 256 24 // <0xA=>Peripheral clock divided by 512 25 // <0xB=>Peripheral clock divided by 1024 26 // <i> These bits define the RTC clock relative to the peripheral clock 27 // <id> rtc_arch_prescaler 28 #ifndef CONF_RTC_PRESCALER 29 #define CONF_RTC_PRESCALER 0x0 30 31 #endif 32 33 // <o> Compare Value <1-4294967295> 34 // <i> These bits define the RTC Compare value, the ticks period is equal to reciprocal of (rtc clock/prescaler/compare value), 35 // <i> by default 1K clock input, 1 prescaler, 1 compare value, the ticks period equals to 1ms. 36 // <id> rtc_arch_comp_val 37 38 #ifndef CONF_RTC_COMP_VAL 39 #define CONF_RTC_COMP_VAL 1 40 41 #endif 42 43 // <e> Event control 44 // <id> rtc_event_control 45 #ifndef CONF_RTC_EVENT_CONTROL_ENABLE 46 #define CONF_RTC_EVENT_CONTROL_ENABLE 0 47 #endif 48 49 // <q> Periodic Interval 0 Event Output 50 // <i> This bit indicates whether Periodic interval 0 event is enabled and will be generated 51 // <id> rtc_pereo0 52 #ifndef CONF_RTC_PEREO0 53 #define CONF_RTC_PEREO0 0 54 #endif 55 // <q> Periodic Interval 1 Event Output 56 // <i> This bit indicates whether Periodic interval 1 event is enabled and will be generated 57 // <id> rtc_pereo1 58 #ifndef CONF_RTC_PEREO1 59 #define CONF_RTC_PEREO1 0 60 #endif 61 // <q> Periodic Interval 2 Event Output 62 // <i> This bit indicates whether Periodic interval 2 event is enabled and will be generated 63 // <id> rtc_pereo2 64 #ifndef CONF_RTC_PEREO2 65 #define CONF_RTC_PEREO2 0 66 #endif 67 // <q> Periodic Interval 3 Event Output 68 // <i> This bit indicates whether Periodic interval 3 event is enabled and will be generated 69 // <id> rtc_pereo3 70 #ifndef CONF_RTC_PEREO3 71 #define CONF_RTC_PEREO3 0 72 #endif 73 // <q> Periodic Interval 4 Event Output 74 // <i> This bit indicates whether Periodic interval 4 event is enabled and will be generated 75 // <id> rtc_pereo4 76 #ifndef CONF_RTC_PEREO4 77 #define CONF_RTC_PEREO4 0 78 #endif 79 // <q> Periodic Interval 5 Event Output 80 // <i> This bit indicates whether Periodic interval 5 event is enabled and will be generated 81 // <id> rtc_pereo5 82 #ifndef CONF_RTC_PEREO5 83 #define CONF_RTC_PEREO5 0 84 #endif 85 // <q> Periodic Interval 6 Event Output 86 // <i> This bit indicates whether Periodic interval 6 event is enabled and will be generated 87 // <id> rtc_pereo6 88 #ifndef CONF_RTC_PEREO6 89 #define CONF_RTC_PEREO6 0 90 #endif 91 // <q> Periodic Interval 7 Event Output 92 // <i> This bit indicates whether Periodic interval 7 event is enabled and will be generated 93 // <id> rtc_pereo7 94 #ifndef CONF_RTC_PEREO7 95 #define CONF_RTC_PEREO7 0 96 #endif 97 98 // <q> Compare 0 Event Output 99 // <i> This bit indicates whether Compare O event is enabled and will be generated 100 // <id> rtc_cmpeo0 101 #ifndef CONF_RTC_COMPE0 102 #define CONF_RTC_COMPE0 0 103 #endif 104 105 // <q> Overflow Event Output 106 // <i> This bit indicates whether Overflow event is enabled and will be generated 107 // <id> rtc_ovfeo 108 #ifndef CONF_RTC_OVFEO 109 #define CONF_RTC_OVFEO 0 110 #endif 111 112 // </e> 113 114 // </h> 115 116 // <<< end of configuration section >>> 117 118 #endif // HPL_RTC_CONFIG_H 119