Subversion Repositories NaviCtrl

Rev

Rev 378 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 378 Rev 380
Line 278... Line 278...
278
void UART1_IRQHandler(void)
278
void UART1_IRQHandler(void)
279
{
279
{
280
        static u8 abortState = 0;
280
        static u8 abortState = 0;
281
        u8 c;
281
        u8 c;
Line 282... Line -...
282
 
-
 
283
        IENABLE;
-
 
284
 
282
 
285
        if((UART_GetITStatus(UART1, UART_IT_Receive) != RESET) || (UART_GetITStatus(UART1, UART_IT_ReceiveTimeOut) != RESET) )
283
        if((UART_GetITStatus(UART1, UART_IT_Receive) != RESET) || (UART_GetITStatus(UART1, UART_IT_ReceiveTimeOut) != RESET) )
286
        {
284
        {
287
                // clear the pending bits!
285
                // clear the pending bits!
288
                UART_ClearITPendingBit(UART1, UART_IT_Receive);
286
                UART_ClearITPendingBit(UART1, UART_IT_Receive);
Line 350... Line 348...
350
                                }
348
                                }
351
                        } // EOF while some byes in the hardware fifo
349
                        } // EOF while some byes in the hardware fifo
352
                } // eof DebugUart = UART1
350
                } // eof DebugUart = UART1
353
        }
351
        }
Line -... Line 352...
-
 
352
 
354
 
353
 
355
        IDISABLE;
354
 
356
        VIC1->VAR = 0xFF; // write any value to VIC1 Vector address register
355
        VIC1->VAR = 0xFF; // write any value to VIC1 Vector address register
Line 357... Line 356...
357
}
356
}
358
 
357
 
359
/**************************************************************/
358
/**************************************************************/
360
/* Process incomming data from debug uart                     */
359
/* Process incomming data from debug uart                     */
361
/**************************************************************/
360
/**************************************************************/
362
void UART1_ProcessRxData(void)
361
void UART1_ProcessRxData(void)
363
{
-
 
364
        // return on forwarding uart  or unlocked rx buffer
362
{
-
 
363
        // return on forwarding uart  or unlocked rx buffer
365
        if(DebugUART != UART1) return;
364
        u8 c;
366
        u8 c;
365
        if(DebugUART != UART1) return;
367
        // if rx buffer is not locked
366
        // if rx buffer is not locked
368
        if(UART1_rx_buffer.Locked == FALSE)
367
        if(UART1_rx_buffer.Locked == FALSE)
369
        {
368
        {