shao ziyang / mbed-src-kl05

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Revision:
283:bf0f62a62bf4
Parent:
256:76fd9a263045
Child:
285:31249416b6f9
--- a/targets/hal/TARGET_NXP/TARGET_LPC43XX/i2c_api.c	Tue Aug 12 10:30:08 2014 +0100
+++ b/targets/hal/TARGET_NXP/TARGET_LPC43XX/i2c_api.c	Wed Aug 13 09:00:06 2014 +0100
@@ -20,17 +20,20 @@
 #include "pinmap.h"
 #include "error.h"
 
+// SCU mode for I2C SCL/SDA pins
+#define SCU_PINIO_I2C       SCU_PINIO_PULLNONE
+
 static const PinMap PinMap_I2C_SDA[] = {
     {P_DED, I2C_0, 0},
-    {P2_3,  I2C_1, 1},
-    {PE_13, I2C_1, 2},
+    {P2_3,  I2C_1, (SCU_PINIO_I2C | 1)},
+    {PE_13, I2C_1, (SCU_PINIO_I2C | 2)},
     {NC,    NC,    0}
 };
 
 static const PinMap PinMap_I2C_SCL[] = {
     {P_DED, I2C_0, 0},
-    {P2_4,  I2C_1, 1},
-    {PE_14, I2C_1, 2},
+    {P2_4,  I2C_1, (SCU_PINIO_I2C | 1)},
+    {PE_14, I2C_1, (SCU_PINIO_I2C | 2)},
     {NC,    NC,    0}
 };