Dual CANbus monitor and instrumentation cluster supporting ILI9341 display controller
Dependencies: SPI_TFTx2_ILI9341 TOUCH_TFTx2_ILI9341 TFT_fonts mbed
Fork of CANary by
Diff: utility.h
- Branch:
- Metric
- Revision:
- 98:9f8bab96edff
- Parent:
- 95:248b3c25a7df
- Child:
- 100:63a7456fc972
--- a/utility.h Fri May 03 14:31:07 2013 +0000 +++ b/utility.h Mon Jun 10 12:00:48 2013 +0000 @@ -4,7 +4,7 @@ #include "common.h" #include "TOUCH_TFTx2.h" #include "beep.h" - +#include <cctype> extern Timer timer; extern Ticker msgReq; extern volatile unsigned short secsNoMsg; @@ -31,6 +31,7 @@ extern CANMessage lastMsg[100]; extern CAN can1,can2; +extern unsigned int fwCount; extern DigitalOut can1SleepMode,can2SleepMode; //extern bool pollCP; extern bool tick; @@ -54,6 +55,7 @@ extern Beep spkr; extern unsigned char reqMsgCnt; extern unsigned char battTemp_x4; +extern bool metric; extern "C" { void mbed_reset(); @@ -79,6 +81,7 @@ void readConfig(); void upDate(unsigned char field, bool updownbar); void logPackVoltages(); // Turbo3 + void updateFirmware(); // LM - Update firmware off USB } //LEAF OBD