adafruit / ArduinoCore-samd

115 stars 119 forks source link

Fix typo in samd51 clock init which was preventing XOSC1K from being used in RTCCTRL #278

Closed rlcamp closed 1 year ago

rlcamp commented 3 years ago

Previously, the OSC32KCTRL_XOSC32K_EN32K bit was enabled twice and the OSC32KCTRL_XOSC32K_EN1K bit was missing, which looks like an obvious typo. Fixing this allows XOSC1K to be properly used in RTCCTRL.

drewfish commented 3 years ago

I had noticed this too, and also assumed that the intent was EN1K.