mbed library sources. Supersedes mbed-src.

Dependents:   LPCXpresso1769_blinky

Fork of mbed-dev by mbed official

Files at this revision

API Documentation at this revision

Comitter:
MACRUM
Date:
Mon Sep 19 14:20:24 2016 +0000
Parent:
147:30b64687e01f
Commit message:
Modified pin names and clock config for LPCXpresso1769

Changed in this revision

targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h Show annotated file Show diff for this revision Revisions of this file
--- a/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c	Fri Sep 16 16:24:25 2016 +0100
+++ b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c	Mon Sep 19 14:20:24 2016 +0000
@@ -304,11 +304,11 @@
 #    define CCLKCFG_Val           0x00000003
 #    define USBCLKCFG_Val         0x00000000
 #else
-#    define PLL0CFG_Val           0x0000000B
+#    define PLL0CFG_Val           0x00050077
 #    define PLL1_SETUP            0
 #    define PLL1CFG_Val           0x00000000
-#    define CCLKCFG_Val           0x00000002
-#    define USBCLKCFG_Val         0x00000005
+#    define CCLKCFG_Val           0x00000003
+#    define USBCLKCFG_Val         0x00000009
 #endif
 
 #define PCLKSEL0_Val          0x00000000
@@ -330,7 +330,7 @@
 // </e>
 */
 #define FLASH_SETUP           1
-#define FLASHCFG_Val          0x0000303A
+#define FLASHCFG_Val          0x00004000
 
 /*
 //-------- <<< end of configuration section >>> ------------------------------
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h	Fri Sep 16 16:24:25 2016 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h	Mon Sep 19 14:20:24 2016 +0000
@@ -73,10 +73,14 @@
     LED3 = P1_31,
     LED4 = P2_2,
 #else
-    LED1 = P1_18,
-    LED2 = P1_20,
-    LED3 = P1_21,
-    LED4 = P1_23,
+    LED1 = P0_22,
+    LED2 = P3_25,
+    LED3 = P3_26,
+    LED4 = LED1,
+    LED_RED = P0_22,
+    LED_GREEN = P3_25,
+    LED_BLUE = P3_26,
+    SW2 = P2_10,
 #endif
     USBTX = P0_2,
     USBRX = P0_3,