From 0c0b72fc113483954db75018a2579fd6d63ffc8c 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(). --- BaS_GNU/sources/sysinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_GNU/sources/sysinit.c b/BaS_GNU/sources/sysinit.c index e7b52f0..fb2a2e1 100644 --- a/BaS_GNU/sources/sysinit.c +++ b/BaS_GNU/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;