Index: firmware/App/Services/Interrupts.c =================================================================== diff -u -r88ee6f3dce69a3dadb012bb8a39c3fd167ba0afd -rd3b7ae356aae29c99cb039713a2e120fdbce5a9c --- firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision 88ee6f3dce69a3dadb012bb8a39c3fd167ba0afd) +++ firmware/App/Services/Interrupts.c (.../Interrupts.c) (revision d3b7ae356aae29c99cb039713a2e120fdbce5a9c) @@ -244,11 +244,6 @@ *************************************************************************/ void sciNotification(sciBASE_t *sci, uint32 flags) { -#ifdef DEBUG_ENABLED - // TODO - temporary debug code - remove later - char debugStr[ 256 ]; -#endif - if ( sci == scilinREG ) { if ( ( flags & SCI_FE_INT ) != 0 ) @@ -260,10 +255,6 @@ { SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_SOFTWARE_FAULT, SW_FAULT_ID_FPGA_UART_FRAME_ERROR ) } -#else - sprintf( debugStr, "FPGA UART FR err:%5d \n", sci2FrameErrorCnt ); - sendDebugData( (U08*)debugStr, strlen(debugStr) ); - sendDebugDataToUI( (U08*)debugStr ); #endif } if ( ( flags & SCI_OE_INT ) != 0 ) @@ -275,34 +266,9 @@ { SET_ALARM_WITH_1_U32_DATA( ALARM_ID_HD_SOFTWARE_FAULT, SW_FAULT_ID_FPGA_UART_OVERRUN_ERROR ) } -#else - sprintf( debugStr, "FPGA UART OR err:%5d \n", sci2OverrunErrorCnt ); - sendDebugData( (U08*)debugStr, strlen(debugStr) ); - sendDebugDataToUI( (U08*)debugStr ); #endif } } -#ifdef DEBUG_ENABLED - if ( sci == sciREG ) - { - if ( ( flags & SCI_FE_INT ) != 0 ) - { - sci1FrameErrorCnt++; - clearSCI1CommErrors(); - sprintf( debugStr, "Debug UART FR err:%5d\n", sci1FrameErrorCnt ); - sendDebugData( (U08*)debugStr, strlen(debugStr) ); - sendDebugDataToUI( (U08*)debugStr ); - } - if ( ( flags & SCI_OE_INT ) != 0 ) - { - sci1OverrunErrorCnt++; - clearSCI1CommErrors(); - sprintf( debugStr, "Debug UART OR err:%5d\n", sci1OverrunErrorCnt ); - sendDebugData( (U08*)debugStr, strlen(debugStr) ); - sendDebugDataToUI( (U08*)debugStr ); - } - } -#endif } /*********************************************************************//** @@ -345,7 +311,7 @@ break; #endif default: - // TODO - ignore? + // TODO - s/w fault break; } }