1 /* Auto-generated config file hpl_osc32kctrl_config.h */ 2 #ifndef HPL_OSC32KCTRL_CONFIG_H 3 #define HPL_OSC32KCTRL_CONFIG_H 4 5 // <<< Use Configuration Wizard in Context Menu >>> 6 7 // <e> RTC Source configuration 8 // <id> enable_rtc_source 9 #ifndef CONF_RTCCTRL_CONFIG 10 #define CONF_RTCCTRL_CONFIG 1 11 #endif 12 13 // <h> RTC source control 14 // <y> RTC Clock Source Selection 15 // <GCLK_GENCTRL_SRC_OSCULP32K"> 32kHz Ultra Low Power Internal Oscillator (OSCULP32K) 16 // <GCLK_GENCTRL_SRC_OSC32K"> 32kHz High Accuracy Internal Oscillator (OSC32K) 17 // <GCLK_GENCTRL_SRC_XOSC32K"> 32kHz External Crystal Oscillator (XOSC32K) 18 // <i> This defines the clock source for RTC 19 // <id> rtc_source_oscillator 20 #ifndef CONF_RTCCTRL_SRC 21 #define CONF_RTCCTRL_SRC GCLK_GENCTRL_SRC_XOSC32K 22 #endif 23 24 // <q> Use 1 kHz output 25 // <id> rtc_1khz_selection 26 #ifndef CONF_RTCCTRL_1KHZ 27 #define CONF_RTCCTRL_1KHZ 1 28 #endif 29 30 #if CONF_RTCCTRL_SRC == GCLK_GENCTRL_SRC_OSCULP32K 31 #define CONF_RTCCTRL (CONF_RTCCTRL_1KHZ ? OSC32KCTRL_RTCCTRL_RTCSEL_ULP1K_Val : OSC32KCTRL_RTCCTRL_RTCSEL_ULP32K_Val) 32 #elif CONF_RTCCTRL_SRC == GCLK_GENCTRL_SRC_OSC32K 33 #define CONF_RTCCTRL (CONF_RTCCTRL_1KHZ ? OSC32KCTRL_RTCCTRL_RTCSEL_OSC1K_Val : OSC32KCTRL_RTCCTRL_RTCSEL_OSC32K_Val) 34 #elif CONF_RTCCTRL_SRC == GCLK_GENCTRL_SRC_XOSC32K 35 #define CONF_RTCCTRL (CONF_RTCCTRL_1KHZ ? OSC32KCTRL_RTCCTRL_RTCSEL_XOSC1K_Val : OSC32KCTRL_RTCCTRL_RTCSEL_XOSC32K_Val) 36 #else 37 #error unexpected CONF_RTCCTRL_SRC 38 #endif 39 40 // </h> 41 // </e> 42 // <e> 32kHz External Crystal Oscillator Configuration 43 // <i> Indicates whether configuration for External 32K Osc is enabled or not 44 // <id> enable_xosc32k 45 #ifndef CONF_XOSC32K_CONFIG 46 #define CONF_XOSC32K_CONFIG 1 47 #endif 48 49 // <h> 32kHz External Crystal Oscillator Control 50 // <q> Oscillator enable 51 // <i> Indicates whether 32kHz External Crystal Oscillator is enabled or not 52 // <id> xosc32k_arch_enable 53 #ifndef CONF_XOSC32K_ENABLE 54 #define CONF_XOSC32K_ENABLE 1 55 #endif 56 57 // <o> Start-Up Time 58 // <0x0=>62592us 59 // <0x1=>125092us 60 // <0x2=>500092us 61 // <0x3=>1000092us 62 // <0x4=>2000092us 63 // <0x5=>4000092us 64 // <0x6=>8000092us 65 // <id> xosc32k_arch_startup 66 #ifndef CONF_XOSC32K_STARTUP 67 #define CONF_XOSC32K_STARTUP 0x0 68 #endif 69 70 // <q> On Demand Control 71 // <i> Indicates whether On Demand Control is enabled or not 72 // <id> xosc32k_arch_ondemand 73 #ifndef CONF_XOSC32K_ONDEMAND 74 #define CONF_XOSC32K_ONDEMAND 0 75 #endif 76 77 // <q> Run in Standby 78 // <i> Indicates whether Run in Standby is enabled or not 79 // <id> xosc32k_arch_runstdby 80 #ifndef CONF_XOSC32K_RUNSTDBY 81 #define CONF_XOSC32K_RUNSTDBY 1 82 #endif 83 84 // <q> 1kHz Output Enable 85 // <i> Indicates whether 1kHz Output is enabled or not 86 // <id> xosc32k_arch_en1k 87 #ifndef CONF_XOSC32K_EN1K 88 #define CONF_XOSC32K_EN1K 1 89 #endif 90 91 // <q> 32kHz Output Enable 92 // <i> Indicates whether 32kHz Output is enabled or not 93 // <id> xosc32k_arch_en32k 94 #ifndef CONF_XOSC32K_EN32K 95 #define CONF_XOSC32K_EN32K 0 96 #endif 97 98 // <q> Crystal connected to XIN32/XOUT32 Enable 99 // <i> Indicates whether the connections between the I/O pads and the external clock or crystal oscillator is enabled or not 100 // <id> xosc32k_arch_xtalen 101 #ifndef CONF_XOSC32K_XTALEN 102 #define CONF_XOSC32K_XTALEN 1 103 #endif 104 105 // </h> 106 // </e> 107 108 // <e> 32kHz Internal Oscillator Configuration 109 // <i> Indicates whether configuration for OSC32K is enabled or not 110 // <id> enable_osc32k 111 #ifndef CONF_OSC32K_CONFIG 112 #define CONF_OSC32K_CONFIG 0 113 #endif 114 115 // <h> 32kHz Internal Oscillator Control 116 // <q> Enable 117 // <i> Indicates whether 32kHz Internal Oscillator is enabled or not 118 // <id> osc32k_arch_enable 119 #ifndef CONF_OSC32K_ENABLE 120 #define CONF_OSC32K_ENABLE 0 121 #endif 122 123 // <q> Oscillator Calibration Control 124 // <i> Indicates whether Oscillator Calibration is enabled or not 125 // <id> osc32k_arch_calib_enable 126 #ifndef CONF_OSC32K_CALIB_ENABLE 127 #define CONF_OSC32K_CALIB_ENABLE 0 128 #endif 129 130 // <o> Oscillator Calibration <0x0-0x7F> 131 // <id> osc32k_arch_calib 132 #ifndef CONF_OSC32K_CALIB 133 #define CONF_OSC32K_CALIB 0x0 134 #endif 135 136 // <o> Start-Up Time 137 // <0x0=>92us 138 // <0x1=>122us 139 // <0x2=>183us 140 // <0x3=>305us 141 // <0x4=>549us 142 // <0x5=>1038us 143 // <0x6=>2014us 144 // <0x7=>3967us 145 // <id> osc32k_arch_startup 146 #ifndef CONF_OSC32K_STARTUP 147 #define CONF_OSC32K_STARTUP 0x0 148 #endif 149 150 // <q> On Demand Control 151 // <i> Indicates whether On Demand Control is enabled or not 152 // <id> osc32k_arch_ondemand 153 #ifndef CONF_OSC32K_ONDEMAND 154 #define CONF_OSC32K_ONDEMAND 0 155 #endif 156 157 // <q> Run in Standby 158 // <i> Indicates whether Run in Standby is enabled or not 159 // <id> osc32k_arch_runstdby 160 #ifndef CONF_OSC32K_RUNSTDBY 161 #define CONF_OSC32K_RUNSTDBY 0 162 #endif 163 164 // <q> 1kHz Output Enable 165 // <i> Indicates whether 1kHz Output is enabled or not 166 // <id> osc32k_arch_en1k 167 #ifndef CONF_OSC32K_EN1K 168 #define CONF_OSC32K_EN1K 0 169 #endif 170 171 // <q> 32kHz Output Enable 172 // <i> Indicates whether 32kHz Output is enabled or not 173 // <id> osc32k_arch_en32k 174 #ifndef CONF_OSC32K_EN32K 175 #define CONF_OSC32K_EN32K 0 176 #endif 177 // </h> 178 // </e> 179 180 // <e> 32kHz Ultra Low Power Internal Oscillator Configuration 181 // <i> Indicates whether configuration for OSCULP32K is enabled or not 182 // <id> enable_osculp32k 183 #ifndef CONF_OSCULP32K_CONFIG 184 #define CONF_OSCULP32K_CONFIG 0 185 #endif 186 187 // <h> 32kHz Ultra Low Power Internal Oscillator Control 188 189 // <q> Oscillator Calibration Control 190 // <i> Indicates whether Oscillator Calibration is enabled or not 191 // <id> osculp32k_calib_enable 192 #ifndef CONF_OSCULP32K_CALIB_ENABLE 193 #define CONF_OSCULP32K_CALIB_ENABLE 0 194 #endif 195 196 // <o> Oscillator Calibration <0x0-0x1F> 197 // <id> osculp32k_calib 198 #ifndef CONF_OSCULP32K_CALIB 199 #define CONF_OSCULP32K_CALIB 0x0 200 #endif 201 202 // </h> 203 // </e> 204 205 // <<< end of configuration section >>> 206 207 #endif // HPL_OSC32KCTRL_CONFIG_H 208