Dual CANbus monitor and instrumentation cluster

Dependencies:   SPI_TFTx2 TFT_fonts TOUCH_TFTx2 beep mbed

Fork of CANary by Tick Tock

Revision:
91:33ab084a184f
Parent:
89:2263d349b484
Child:
92:935adef49ea4
--- a/utility.cpp	Sat Apr 20 19:37:40 2013 +0000
+++ b/utility.cpp	Mon Apr 22 02:22:04 2013 +0000
@@ -17,7 +17,7 @@
     LPC_RTC->ILR=0x00; // set up the RTC interrupts
     LPC_RTC->CIIR=0x01; // interrupts each second
     LPC_RTC->CCR = 0x01;  // Clock enable
-    //NVIC_SetPriority( RTC_IRQn, 10 );
+    NVIC_SetPriority( RTC_IRQn, 1 );
     NVIC_EnableIRQ( RTC_IRQn );
 }
 
@@ -48,10 +48,8 @@
     static unsigned short nLost = 0; // gg - overrun
  
     char sTemp[40];    
-    unsigned char changed;
-    unsigned short i; // was unsigned char
-    signed short packV;
-    signed short packA;
+    unsigned char changed, i;
+    signed short packV, packA;
     signed long imWs_x4;
     unsigned short ts;