diff options
Diffstat (limited to 'src/core/system_LPC11xx.cpp')
| -rwxr-xr-x | src/core/system_LPC11xx.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/core/system_LPC11xx.cpp b/src/core/system_LPC11xx.cpp index 5a291c5..1e5d157 100755 --- a/src/core/system_LPC11xx.cpp +++ b/src/core/system_LPC11xx.cpp @@ -125,14 +125,24 @@ #define SYSOSCCTRL_Val 0x00000000
#define WDTOSC_SETUP 0
#define WDTOSCCTRL_Val 0x000000A0
+
+#if defined ( NO_EXTCLK )
+ #define SYSPLLCLKSEL_Val 0x00000000 // for NON EXTCLK
+#else
#define SYSPLLCLKSEL_Val 0x00000001
-//#define SYSPLLCLKSEL_Val 0x00000000 // for NON EXTCLK
+#endif
+
#define SYSPLL_SETUP 1
#define SYSPLLCTRL_Val 0x00000023
#define MAINCLKSEL_Val 0x00000003
#define SYSAHBCLKDIV_Val 0x00000001
+
+#if defined ( NO_EXTCLK )
+ #define AHBCLKCTRL_Val 0x0001FFFF // for NON EXTCLK
+#else
#define AHBCLKCTRL_Val 0x0001005F
-//#define AHBCLKCTRL_Val 0x0001FFFF // for NON EXTCLK
+#endif
+
#define SSP0CLKDIV_Val 0x00000001
#define UARTCLKDIV_Val 0x00000001
#define SSP1CLKDIV_Val 0x00000001
|
