来自中国的硬件平台

Dependents:   mbed_in_china_blink_led

Fork of mbed-src by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Mar 10 13:45:07 2014 +0000
Parent:
113:65a335a675de
Child:
115:4f0cb9cdc478
Commit message:
Synchronized with git revision f34be808744ffa690544bdc2c4354133a5565ffc

Full URL: https://github.com/mbedmicro/mbed/commit/f34be808744ffa690544bdc2c4354133a5565ffc/

Changed in this revision

targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_501/PinNames.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h Show annotated file Show diff for this revision Revisions of this file
targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/platform_init.c Show annotated file Show diff for this revision Revisions of this file
--- a/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_501/PinNames.h	Mon Mar 10 11:30:07 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_501/PinNames.h	Mon Mar 10 13:45:07 2014 +0000
@@ -165,7 +165,8 @@
     PullDown = 1,
     PullNone = 0,
     Repeater = 3,
-    OpenDrain = 4
+    OpenDrain = 4,
+    PullDefault = PullDown
 } PinMode;
 
 #ifdef __cplusplus
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h	Mon Mar 10 11:30:07 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h	Mon Mar 10 13:45:07 2014 +0000
@@ -163,7 +163,8 @@
     PullUp = 0,
     PullDown = 3,
     PullNone = 2,
-    OpenDrain = 4
+    OpenDrain = 4,
+    PullDefault = PullDown
 } PinMode;
 
 // version of PINCON_TypeDef using register arrays
--- a/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/platform_init.c	Mon Mar 10 11:30:07 2014 +0000
+++ b/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/platform_init.c	Mon Mar 10 13:45:07 2014 +0000
@@ -9,18 +9,18 @@
     gpio_t gpsEn, gpsRst, led, modemRts;
     
     // start with modem disabled 
-    gpio_init_out_ex(&modemEn,     MDMEN,     PullNone, 0);
-    gpio_init_out_ex(&modemRst,    MDMRST,    PullNone, 1);
-    gpio_init_out_ex(&modemPwrOn,  MDMPWRON,  PullNone, 1);
-    gpio_init_out_ex(&modemLvlOe,  MDMLVLOE,  PullNone, 1);
-    gpio_init_out_ex(&modemILvlOe, MDMILVLOE, PullNone, 0);
-    gpio_init_out_ex(&modemUsbDet, MDMUSBDET, PullNone, 0);
-    gpio_init_out_ex(&modemRts,    MDMRTS,    PullNone, 0);
+    gpio_init_out_ex(&modemEn,     MDMEN,     0);
+    gpio_init_out_ex(&modemRst,    MDMRST,    1);
+    gpio_init_out_ex(&modemPwrOn,  MDMPWRON,  1);
+    gpio_init_out_ex(&modemLvlOe,  MDMLVLOE,  1);
+    gpio_init_out_ex(&modemILvlOe, MDMILVLOE, 0);
+    gpio_init_out_ex(&modemUsbDet, MDMUSBDET, 0);
+    gpio_init_out_ex(&modemRts,    MDMRTS,    0);
     // start with gps disabled 
-    gpio_init_out_ex(&gpsEn,       GPSEN,     PullNone, 0);
-    gpio_init_out_ex(&gpsRst,      GPSRST,    PullNone, 1);
+    gpio_init_out_ex(&gpsEn,       GPSEN,     0);
+    gpio_init_out_ex(&gpsRst,      GPSRST,    1);
     // led should be off
-    gpio_init_out_ex(&led,         LED,       PullNone, 0);
+    gpio_init_out_ex(&led,         LED,       0);
     
     wait_ms(50); // when USB cable is inserted the interface chip issues 
     // multiple resets to the target CPU We wait here for a short period to