Board support library for C027

Dependents:   IoTWorkshopLCD IoTWorkshopBuzzer IoTWorkshopSensors C027_USSDTest ... more

Fork of C027 by u-blox

/media/uploads/ublox/c027_pinout_new.png

Revision:
16:3ce62caf4518
Parent:
14:e30f90b5447e
Child:
18:06d5a702779c
--- a/C027.h	Tue Dec 17 16:25:47 2013 +0000
+++ b/C027.h	Tue Apr 08 12:15:07 2014 +0000
@@ -7,13 +7,19 @@
 #pragma once
 
 #include "mbed.h"
-#include "C027_PinNames.h"
 
-// Override the weak mbed die function that flashes the leds. 
-// We do not have fancy leds that can be flashed on the C027.
-void mbed_die(void);
+#ifdef TARGET_UBLOX_C027
+  // on the native platform the pins are already defined 
+#elif defined(TARGET_LPC1768)
+  // if not native we are using the pin definition file from this library
+  #include "C027_PinNames.h"
+  // we also need to override the mbed_die function
+  void mbed_die(void);
+#else
+  #error "this library is indended to be used only with the C027 board"
+#endif
 
-//#define C027_REVA // remove this define for the revision B boards
+//#define C027_REVA // select this define if you use revision A boards. 
 
 class C027
 {