Lines Matching refs:OSCCTRL
57 OSCCTRL->Dpll[n].DPLLCTRLA.bit.ENABLE = 0; in dpll_init()
58 while (OSCCTRL->Dpll[n].DPLLSYNCBUSY.reg) { in dpll_init()
66 OSCCTRL->Dpll[n].DPLLRATIO.reg = OSCCTRL_DPLLRATIO_LDRFRAC(LDR & 0x1F) in dpll_init()
70 OSCCTRL->Dpll[n].DPLLCTRLB.reg = OSCCTRL_DPLLCTRLB_REFCLK_GCLK in dpll_init()
74 OSCCTRL->Dpll[n].DPLLCTRLA.reg = OSCCTRL_DPLLCTRLA_ENABLE; in dpll_init()
76 while (OSCCTRL->Dpll[n].DPLLSYNCBUSY.reg) { in dpll_init()
78 while (!(OSCCTRL->Dpll[n].DPLLSTATUS.bit.CLKRDY && in dpll_init()
79 OSCCTRL->Dpll[n].DPLLSTATUS.bit.LOCK)) { in dpll_init()
92 OSCCTRL->DFLLCTRLB.reg = reg; in dfll_init()
93 OSCCTRL->DFLLCTRLA.reg = OSCCTRL_DFLLCTRLA_ENABLE; in dfll_init()
95 while (!OSCCTRL->STATUS.bit.DFLLRDY) { in dfll_init()