Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
130:630d05daed77
Parent:
114:bd38ad417d6a
Child:
149:7fde829ed672
--- a/ErrorHandler.cpp	Wed Mar 26 20:29:09 2014 +0000
+++ b/ErrorHandler.cpp	Wed Mar 26 21:24:19 2014 +0000
@@ -19,16 +19,44 @@
  #include "ErrorHandler.h"
  #include "MBEDEndpoint.h"
  
-// Annunciations
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
-DigitalOut led3(LED3);
-DigitalOut led4(LED4);
+#ifdef _ENDPOINT_UBLOX_PLATFORM
+    // Annunciations
+    DigitalOut led1(P3_25);
+    DigitalOut led2(P3_25);
+    DigitalOut led3(P3_25);
+    DigitalOut led4(P3_25);
+    
+    // Multi-color LED support
+    PwmOut r(D5);
+    PwmOut g(D9);
+    PwmOut b(D8);  
+#endif
 
-// Multi-color LED support
-PwmOut r(p23);
-PwmOut g(p24);
-PwmOut b(p25);
+#ifdef _ENDPOINT_NXP_PLATFORM
+   // Annunciations
+    DigitalOut led1(LED1);
+    DigitalOut led2(LED2);
+    DigitalOut led3(LED3);
+    DigitalOut led4(LED4);  
+    
+    // Multi-color LED support
+    PwmOut r(p23);
+    PwmOut g(p24);
+    PwmOut b(p25);  
+#endif
+
+#ifdef _ENDPOINT_FREEDOM_PLATFORM   
+    // Annunciations
+    DigitalOut led1(LED1);
+    DigitalOut led2(LED2);
+    DigitalOut led3(LED3);
+    DigitalOut led4(LED4);
+    
+    // Multi-color LED support
+    PwmOut r(p23);
+    PwmOut g(p24);
+    PwmOut b(p25);  
+#endif
 
 // Memory statistics macro
 #define ERROR_HANDLER_MEM_STATS(x) \
@@ -44,7 +72,7 @@
  extern void closedown(int code);
  
  // default constructor
- ErrorHandler::ErrorHandler(Serial *pc,C12832_LCD *lcd) {
+ ErrorHandler::ErrorHandler(Serial *pc,LCDCLASS *lcd) {
      this->m_pc = pc;
      this->m_lcd = lcd;
      this->m_status_lcd = false;