From f21c2494cb612b9f9316ab97096e55ab30a404b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noralf=20Tr=C3=B8nnes?= Date: Sat, 28 Apr 2018 13:57:51 +0200 Subject: [PATCH] atmel-samd/samd21: Enable OSC32K Enable OSC32K which is used by the RTC. For some reason the RTC worked without enabling it. --- ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h index 5b9ec6ed6c..74ec2bee95 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h @@ -109,7 +109,7 @@ // Indicates whether configuration for OSC32K is enabled or not // enable_osc32k #ifndef CONF_OSC32K_CONFIG -#define CONF_OSC32K_CONFIG 0 +#define CONF_OSC32K_CONFIG 1 #endif // 32kHz Internal Oscillator (OSC32K) Control @@ -117,7 +117,7 @@ // Indicates whether Internal 32K Oscillator is enabled or not // osc32k_arch_enable #ifndef CONF_OSC32K_ENABLE -#define CONF_OSC32K_ENABLE 0 +#define CONF_OSC32K_ENABLE 1 #endif // On Demand Control @@ -142,7 +142,7 @@ // Enable 32 Khz Output // osc32k_arch_en32k #ifndef CONF_OSC32K_EN32K -#define CONF_OSC32K_EN32K 0 +#define CONF_OSC32K_EN32K 1 #endif // Enable 1K