From 262df23d1f0016324d63fe3ae22a98e01b4db2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Rivi=C3=A8re?= Date: Mon, 22 Oct 2012 20:52:41 +0000 Subject: [PATCH] Fixed wait_pll(). --- sources/sysinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/sysinit.c b/sources/sysinit.c index e7b52f0..fb2a2e1 100644 --- a/sources/sysinit.c +++ b/sources/sysinit.c @@ -244,7 +244,7 @@ void wait_pll(void) { register uint32_t trgt = MCF_SLT0_SCNT - 100000; do { - } while ((* (volatile uint16_t *) 0xf0000800 > 0) && MCF_SLT0_SCNT > trgt); + } while ((* (volatile int16_t *) 0xf0000800 < 0) && MCF_SLT0_SCNT > trgt); } static volatile uint8_t *pll_base = (volatile uint8_t *) 0xf0000600;