From 146e8b8e5383254551bd7c1fab32af725031655e Mon Sep 17 00:00:00 2001 From: Richard Campbell <15174497+rlcamp@users.noreply.github.com> Date: Sun, 27 Dec 2020 00:52:53 -0800 Subject: [PATCH] Fix typo in samd51 clock init --- cores/arduino/startup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/arduino/startup.c b/cores/arduino/startup.c index 8816eb549..c493b1af9 100644 --- a/cores/arduino/startup.c +++ b/cores/arduino/startup.c @@ -63,7 +63,7 @@ void SystemInit( void ) * 1) Enable XOSC32K clock (External on-board 32.768Hz oscillator) */ - OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_EN32K | OSC32KCTRL_XOSC32K_EN32K | OSC32KCTRL_XOSC32K_CGM_XT | OSC32KCTRL_XOSC32K_XTALEN; + OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_EN1K | OSC32KCTRL_XOSC32K_EN32K | OSC32KCTRL_XOSC32K_CGM_XT | OSC32KCTRL_XOSC32K_XTALEN; while( (OSC32KCTRL->STATUS.reg & OSC32KCTRL_STATUS_XOSC32KRDY) == 0 ){ /* Wait for oscillator to be ready */