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:
160:24337c83dd1d
Parent:
159:329e3271c87e
Child:
166:8e63cd2c003a
--- a/ErrorHandler.h	Mon Jun 30 22:17:32 2014 +0000
+++ b/ErrorHandler.h	Tue Jul 01 17:12:18 2014 +0000
@@ -41,18 +41,22 @@
     #define LCDCLASS      C12832_LCD   
 #endif
 
+#ifdef EH_USE_MUTEXES
 // Mutex support
 #include "rtos.h"
+#endif
 
 class ErrorHandler {
     private:
         Serial      *m_pc;
         LCDCLASS    *m_lcd;
         char         m_message[MAX_LOG_MESSAGE+1];
+#ifdef EH_USE_MUTEXES
         Mutex       *m_mutex;
         Mutex       *m_close_mutex;
         Mutex       *m_led_mutex;
         Mutex       *m_rgb_mutex;
+#endif
         void        *m_endpoint;
         bool         m_status_lcd;
         
@@ -78,9 +82,11 @@
        
        void blinkTransportTxLED();
        void blinkTransportRxLED();
-       
+
+#ifdef EH_USE_MUTEXES       
        void releaseMutexes();
-              
+#endif
+
        void led2On();
        void led2Off();
        void led3On();