summaryrefslogtreecommitdiffstats
path: root/watch-library/config/hpl_osc32kctrl_config.h
diff options
context:
space:
mode:
authorJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
committerJoey Castillo <jose.castillo@gmail.com>2021-10-25 14:52:40 -0400
commit22c072ac3f4fb450315b204dc4a6f2644c8665a7 (patch)
tree340cedd1875e873448449a868bf9c937cece881f /watch-library/config/hpl_osc32kctrl_config.h
parent24e160611e12df8d31edc02af21ce07ad0929e1b (diff)
parentbadb4ba9090c6228738a555b82c988aafbe72fec (diff)
downloadSensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.gz
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.tar.bz2
Sensor-Watch-22c072ac3f4fb450315b204dc4a6f2644c8665a7.zip
Merge branch 'main' into more-asf-files
Diffstat (limited to 'watch-library/config/hpl_osc32kctrl_config.h')
-rw-r--r--watch-library/config/hpl_osc32kctrl_config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/watch-library/config/hpl_osc32kctrl_config.h b/watch-library/config/hpl_osc32kctrl_config.h
index 94b46617..540f1c60 100644
--- a/watch-library/config/hpl_osc32kctrl_config.h
+++ b/watch-library/config/hpl_osc32kctrl_config.h
@@ -17,8 +17,12 @@
// <i> This defines the clock source for RTC
// <id> rtc_source_oscillator
#ifndef CONF_RTCCTRL_SRC
+#ifdef CRYSTALLESS
+#define CONF_RTCCTRL_SRC GCLK_GENCTRL_SRC_OSCULP32K
+#else
#define CONF_RTCCTRL_SRC GCLK_GENCTRL_SRC_XOSC32K
#endif
+#endif
// <q> Use 1 kHz output
// <id> rtc_1khz_selection