mirror of https://github.com/ARMmbed/mbed-os.git
commit
e8dcecba1b
|
@ -100,13 +100,23 @@
|
||||||
// </h>
|
// </h>
|
||||||
// </e>
|
// </e>
|
||||||
*/
|
*/
|
||||||
#define CLOCK_SETUP 1
|
#define CLOCK_SETUP 1 // 1 == IRC: 2 == System Oscillator 12Mhz Xtal:
|
||||||
#define SYSOSCCTRL_Val 0x00000000 // Reset: 0x000
|
|
||||||
#define WDTOSCCTRL_Val 0x00000000 // Reset: 0x000
|
#if (CLOCK_SETUP == 1)
|
||||||
#define SYSPLLCTRL_Val 0x00000041 // Reset: 0x000
|
#define SYSOSCCTRL_Val 0x00000000 // Reset: 0x000
|
||||||
#define SYSPLLCLKSEL_Val 0x00000000 // Reset: 0x000
|
#define WDTOSCCTRL_Val 0x00000000 // Reset: 0x000
|
||||||
#define MAINCLKSEL_Val 0x00000000 // Reset: 0x000
|
#define SYSPLLCTRL_Val 0x00000041 // Reset: 0x000
|
||||||
#define SYSAHBCLKDIV_Val 0x00000001 // Reset: 0x001
|
#define SYSPLLCLKSEL_Val 0x00000000 // Reset: 0x000
|
||||||
|
#define MAINCLKSEL_Val 0x00000000 // Reset: 0x000
|
||||||
|
#define SYSAHBCLKDIV_Val 0x00000001 // Reset: 0x001
|
||||||
|
#elif (CLOCK_SETUP == 2)
|
||||||
|
#define SYSOSCCTRL_Val 0x00000000 // Reset: 0x000
|
||||||
|
#define WDTOSCCTRL_Val 0x00000000 // Reset: 0x000
|
||||||
|
#define SYSPLLCTRL_Val 0x00000040 // Reset: 0x000
|
||||||
|
#define SYSPLLCLKSEL_Val 0x00000001 // Reset: 0x000
|
||||||
|
#define MAINCLKSEL_Val 0x00000003 // Reset: 0x000
|
||||||
|
#define SYSAHBCLKDIV_Val 0x00000001 // Reset: 0x001
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
//-------- <<< end of configuration section >>> ------------------------------
|
//-------- <<< end of configuration section >>> ------------------------------
|
||||||
|
|
Loading…
Reference in New Issue