C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Files at this revision

API Documentation at this revision

Comitter:
mazgch
Date:
Thu Jun 12 09:05:25 2014 +0000
Parent:
5:41b123533b79
Commit message:
using latest library

Changed in this revision

C027.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 41b123533b79 -r 7fe1cbb784a4 C027.lib
--- a/C027.lib	Fri Dec 06 09:58:29 2013 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/teams/ublox/code/C027/#e30f90b5447e
diff -r 41b123533b79 -r 7fe1cbb784a4 main.cpp
--- a/main.cpp	Fri Dec 06 09:58:29 2013 +0000
+++ b/main.cpp	Thu Jun 12 09:05:25 2014 +0000
@@ -1,10 +1,8 @@
 #include "mbed.h"
-#include "C027.h"
-
-#ifdef C027_REVA
- // on rev A we reasign the signal to A0
- #undef  LED
- #define LED A0
+#ifdef TARGET_UBLOX_C027
+ #include "C027_api.h"
+#else
+ #error "This example is targeted for the C027 platform"
 #endif
 
 DigitalOut myled(LED); 
@@ -13,5 +11,5 @@
     while(1) {
         myled = !myled;
         wait(0.2);
-    }
+    }    
 }
diff -r 41b123533b79 -r 7fe1cbb784a4 mbed.bld
--- a/mbed.bld	Fri Dec 06 09:58:29 2013 +0000
+++ b/mbed.bld	Thu Jun 12 09:05:25 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/024bf7f99721
\ No newline at end of file