Yu Hui Wee / Mbed 2 deprecated GPS_Test

Dependencies:   mbed

Fork of C027_GPSTransparentSerial by u-blox

Revision:
3:e8792e374579
Parent:
2:490b4b087576
Child:
4:dc72072eb8d0
--- a/main.cpp	Wed Nov 06 10:49:23 2013 +0000
+++ b/main.cpp	Thu Jun 12 07:29:20 2014 +0000
@@ -1,11 +1,24 @@
 #include "mbed.h"
-#include "C027.h"
+#ifdef TARGET_UBLOX_C027
+ #include "C027_api.h"
+#else
+ #error "This example is targeted for the C027 platform"
+#endif
 
+/* This example is establishing a transparent link between 
+   the mbed serial port and the serial communication interface 
+   of the GPS. 
+   
+   For a more advanced driver for the GPS or Modem(MDM) please 
+   look at the follwing library and example:
+   C027_Support Library 
+     http://mbed.org/teams/ublox/code/C027_Support/
+   C027_Support Example
+     http://mbed.org/teams/ublox/code/C027_SupportTest/
+*/
 int main() 
 {
-    C027 c027;
-    c027.gpsPower(true);
-    
+    c027_gps_powerOn();
     int baud = GPSBAUD;
     
     // open the gps serial port