Original Attachment has been moved to: LPC11Uxx%20LPCXpresso%20Examples_0.zip
void SystemInit (void) { #if (CLOCK_SETUP) /* Clock Setup */ #if (SYSCLK_SETUP) /* System Clock Setup */ #if (SYSOSC_SETUP) /* System Oscillator Setup */ [color=#f00]// uint32_t i; // LPC_SYSCON->PDRUNCFG &= ~(1 << 5); /* Power-up System Osc */ // LPC_SYSCON->SYSOSCCTRL = SYSOSCCTRL_Val; // for (i = 0; i < 200; i++) __NOP(); // LPC_SYSCON->SYSPLLCLKSEL = SYSPLLCLKSEL_Val; /* Select PLL Input */ // LPC_SYSCON->SYSPLLCLKUEN = 0x1; /* Update Clock Source */ // LPC_SYSCON->SYSPLLCLKUEN = 0x0; /* Toggle Update Register */ // LPC_SYSCON->SYSPLLCLKUEN = 0x1; // while (!(LPC_SYSCON->SYSPLLCLKUEN & 0x1)); /* Wait Until Updated */ [/color]#if (SYSPLL_SETUP) /* System PLL Setup */ LPC_SYSCON->SYSPLLCTRL = SYSPLLCTRL_Val; LPC_SYSCON->PDRUNCFG &= ~(1 << 7); /* Power-up SYSPLL */ while (!(LPC_SYSCON->SYSPLLSTAT & 0x1)); /* Wait Until PLL Locked */ #endif #endif ... |