C027 updated to work with latest mBed libraries

Dependents:   Cellular_HelloMQTT UBLOXModemDriver UBLOXMQTTDriver

Fork of C027_Support by u-blox

Revision:
139:380bee4079a3
Parent:
137:6a7a5c4f35f6
Child:
140:20f28fa0210b
--- a/MDM.h	Thu Feb 25 13:22:34 2016 +0000
+++ b/MDM.h	Tue Jan 24 17:05:14 2017 +0000
@@ -12,12 +12,12 @@
 #else
  #define MDM_IF(onboard,shield) shield
 #endif
-
+#define MODEM_POWER_PIN PC_1
 //! include debug capabilty on more powerful targets with a dedicated debug port 
 #if defined(TARGET_LPC1768) || defined(TARGET_LPC4088) || defined(TARGET_K64F)
  #define MDM_DEBUG 
 #endif 
-
+#define MDM_DEBUG 
 /** basic modem parser class 
 */
 class MDMParser
@@ -123,7 +123,7 @@
     bool connect(const char* simpin = NULL, 
             const char* apn = NULL, const char* username = NULL, 
             const char* password = NULL, Auth auth = AUTH_DETECT,
-            PinName pn MDM_IF( = MDMPWRON, = D4));    
+            PinName pn MDM_IF( = MDMPWRON, = MODEM_POWER_PIN));    
 
     /** register (Attach) the MT to the GPRS service. 
         \param simpin a optional pin of the SIM card
@@ -131,7 +131,7 @@
         \return true if successful, false otherwise
     */
     virtual bool init(const char* simpin = NULL, DevStatus* status = NULL, 
-                PinName pn MDM_IF( = MDMPWRON, = D4));
+                PinName pn MDM_IF( = MDMPWRON, = MODEM_POWER_PIN));
 
     /** get the current device status
         \param strocture holding the device information.