/*
* Initialize the system
*
* @param none
* @return none
*
* @brief Setup the microcontroller system.
* Initialize the System and update the SystemFrequency variable.
*/
void SystemInit (void)
{
#if (FLASH_SETUP == 1) /* Flash Accelerator Setup */
LPC_SC->FLASHCFG = FLASHCFG_Val;
#endif
#if (CLOCK_SETUP) /* Clock Setup */
LPC_SC->SCS = SCS_Val; /* bit[5]=1;The main oscillator is enabled, added by fulinux. */
if (SCS_Val & (1 << 5)) { /* If Main Oscillator is enabled */
while ((LP
sk-lpc1788中的void SystemInit (void)函数
于 2013-04-12 15:45:34 首次发布