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.cpp
- 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;