From 894d53bb882feb0195a0ff7b9bb44cc9a1da5fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 13 Dec 2012 14:41:00 +0000 Subject: [PATCH] make pll_base local --- SD_CARD/BaS_gcc/.cproject | 4 ++++ SD_CARD/BaS_gcc/sources/sysinit.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/SD_CARD/BaS_gcc/.cproject b/SD_CARD/BaS_gcc/.cproject index 9d6a853..c19c953 100644 --- a/SD_CARD/BaS_gcc/.cproject +++ b/SD_CARD/BaS_gcc/.cproject @@ -320,6 +320,8 @@ + + @@ -654,6 +656,8 @@ + + diff --git a/SD_CARD/BaS_gcc/sources/sysinit.c b/SD_CARD/BaS_gcc/sources/sysinit.c index 6d3c847..ed369c2 100644 --- a/SD_CARD/BaS_gcc/sources/sysinit.c +++ b/SD_CARD/BaS_gcc/sources/sysinit.c @@ -328,10 +328,11 @@ void wait_pll(void) } while ((* (volatile int16_t *) 0xf0000800 < 0) && MCF_SLT0_SCNT > trgt); } -static volatile uint8_t *pll_base = (volatile uint8_t *) 0xf0000600; void init_pll(void) { + static volatile uint8_t *pll_base = (volatile uint8_t *) 0xf0000600; + xprintf("FPGA PLL initialization: "); wait_pll();