Skip to content

Commit

Permalink
Merge pull request #278 from rlcamp/master
Browse files Browse the repository at this point in the history
Fix typo in samd51 clock init which was preventing XOSC1K from being used in RTCCTRL
  • Loading branch information
hathach authored Nov 15, 2022
2 parents 7812526 + 22176f8 commit 0fd44a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/arduino/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0fd44a5

Please sign in to comment.