Support the Indexed name LOCK->LOCK0

This commit is contained in:
David Sidrane 2017-02-06 12:35:47 -10:00
parent 6022c62229
commit 87f759172a

View File

@ -224,7 +224,7 @@ void kinetis_pllconfig(void)
/* Wait for the PLL LOCK bit to set */
while ((getreg8(KINETIS_MCG_S) & MCG_S_LOCK) == 0);
while ((getreg8(KINETIS_MCG_S) & MCG_S_LOCK0) == 0);
/* We are now running in PLL Bypassed External (PBE) mode. Transition to
* PLL Engaged External (PEE) mode by setting CLKS to 0