From 87f759172a1f6f4221f8c9bd88dcdaee8cb5e52c Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 6 Feb 2017 12:35:47 -1000 Subject: [PATCH] Support the Indexed name LOCK->LOCK0 --- arch/arm/src/kinetis/kinetis_clockconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/kinetis/kinetis_clockconfig.c b/arch/arm/src/kinetis/kinetis_clockconfig.c index bac16f218b9..8db2b3e0095 100644 --- a/arch/arm/src/kinetis/kinetis_clockconfig.c +++ b/arch/arm/src/kinetis/kinetis_clockconfig.c @@ -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