Index: firmware/App/Services/Interrupts.c =================================================================== diff -u -r54f45c387430e440ab4607451fc84dea61f273f1 -r35306e8557a9a119b18e860156ff5f5a25d87a49 --- firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision 54f45c387430e440ab4607451fc84dea61f273f1) +++ firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision 35306e8557a9a119b18e860156ff5f5a25d87a49) @@ -49,16 +49,14 @@ static U32 sci1FrameErrorCnt = 0; static U32 sci1OverrunErrorCnt = 0; #endif -static U32 sci2FrameErrorCnt = 0; ///< SCI2 frame error count. -static U32 sci2OverrunErrorCnt = 0; ///< SCI2 overrun error count. +static U32 sci2FrameErrorCnt; ///< SCI2 frame error count. +static U32 sci2OverrunErrorCnt; ///< SCI2 overrun error count. -static U32 can1PassiveCnt = 0; ///< CAN1 passive count. -static U32 can1WarningCnt = 0; ///< CAN1 warning count. -static U32 can1BusOffCnt = 0; ///< CAN1 bus offline count. -static U32 can1ParityCnt = 0; ///< CAN1 parity count. +static U32 can1PassiveCnt; ///< CAN1 passive count. +static U32 can1WarningCnt; ///< CAN1 warning count. +static U32 can1BusOffCnt; ///< CAN1 bus offline count. +static U32 can1ParityCnt; ///< CAN1 parity count. -// ********** private function prototypes ********** - /*********************************************************************//** * @brief * The initInterrupts function initializes the Interrupts module. @@ -69,6 +67,13 @@ *************************************************************************/ void initInterrupts( void ) { + sci2FrameErrorCnt = 0; + sci2OverrunErrorCnt = 0; + can1PassiveCnt = 0; + can1WarningCnt = 0; + can1BusOffCnt = 0; + can1ParityCnt = 0; + // initialize various time windowed counts for monitoring CAN & UART errors and warnings initTimeWindowedCount( TIME_WINDOWED_COUNT_CAN_PASSIVE, MAX_COMM_ERRORS, COMM_ERROR_TIME_WINDOW_MS ); initTimeWindowedCount( TIME_WINDOWED_COUNT_CAN_OFF, MAX_COMM_ERRORS, COMM_ERROR_TIME_WINDOW_MS );