C027 Example: blinking LED

Dependencies:   mbed

Fork of C027_HelloWorld by u-blox

Revision:
6:7fe1cbb784a4
Parent:
5:41b123533b79
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);
-    }
+    }    
 }