clock frequency

English
Forums: 

Looking into the cmsis library source code, I have found 2 places where the core frequency is set:
1) in SystemInit() function there is a line:
SystemCoreClock = 96000000;
2) In CGU_Init() function the first line is:
CGU_SetXTALOSC(12000000);

Which line is correct? The first sets 96 MHz, and the second sets 12 MHz.

The CGU_SetXTALOSC specifies the frequency of your external oscillator.