Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: ErrorHandler.h
- Revision:
- 130:630d05daed77
- Parent:
- 114:bd38ad417d6a
- Child:
- 131:c1ecc5fcf3c6
--- a/ErrorHandler.h Wed Mar 26 20:29:09 2014 +0000 +++ b/ErrorHandler.h Wed Mar 26 21:24:19 2014 +0000 @@ -26,15 +26,28 @@ #include <stdarg.h> // LCD Support -#include "C12832_lcd.h" +#ifdef _ENDPOINT_UBLOX_PLATFORM + #include "C12832.h" + #define LCDCLASS C12832 +#endif + +#ifdef _ENDPOINT_NXP_PLATFORM + #include "C12832_lcd.h" + #define LCDCLASS C12832_LCD +#endif + +#ifdef _ENDPOINT_FREEDOM_PLATFORM + #include "C12832_lcd.h" + #define LCDCLASS C12832_LCD +#endif // Mutex support #include "rtos.h" class ErrorHandler { private: - Serial *m_pc; - C12832_LCD *m_lcd; + Serial *m_pc; + LCDCLASS *m_lcd; char m_message[MAX_LOG_MESSAGE+1]; Mutex *m_mutex; Mutex *m_close_mutex; @@ -44,7 +57,7 @@ bool m_status_lcd; public: - ErrorHandler(Serial *pc,C12832_LCD *lcd); + ErrorHandler(Serial *pc,LCDCLASS *lcd); ~ErrorHandler(); void lcdStatusOnly(bool status_lcd);