Logging facility for endpoints
Fork of ErrorHandler by
Diff: ErrorHandler.cpp
- Revision:
- 2:e771ffdf5c1b
- Parent:
- 1:8d42444464d3
- Child:
- 3:8bafb7682222
--- a/ErrorHandler.cpp Fri Aug 29 03:39:04 2014 +0000 +++ b/ErrorHandler.cpp Fri Aug 29 19:23:45 2014 +0000 @@ -44,6 +44,19 @@ PwmOut b(p25); #endif +#if _K64F_PLATFORM + // Annunciations + DigitalOut led1(LED1); + DigitalOut led2(LED2); + DigitalOut led3(LED3); + DigitalOut led4(LED3); // shared with led3 + + // Multi-color LED support + PwmOut r(PTB22); + PwmOut g(PTE26); + PwmOut b(PTB21); +#endif + // Memory statistics macro #define ERROR_HANDLER_MEM_STATS(x) \ int s##x=0;\ @@ -83,12 +96,14 @@ this->m_pc->printf("\r\n"); } +#if _NXP_PLATFORM || _UBLOX_PLATFORM // Log to the LCD panel... if (this->m_lcd != NULL) { this->m_lcd->cls(); this->m_lcd->locate(0,0); this->m_lcd->printf(this->m_message); } +#endif } }