Subversion Repositories NaviCtrl

Rev

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

Rev 190 Rev 195
Line 354... Line 354...
354
/*         Transmit tx buffer via uart0                       */
354
/*         Transmit tx buffer via uart0                       */
355
/**************************************************************/
355
/**************************************************************/
356
void UART0_Transmit(void)
356
void UART0_Transmit(void)
357
{
357
{
358
        u8 tmp_tx;
358
        u8 tmp_tx;
-
 
359
 
-
 
360
        IENABLE;
-
 
361
 
359
        if(DebugUART == UART0) return; // no data output if debug uart is rederected to UART0
362
        if(DebugUART == UART0) return; // no data output if debug uart is rederected to UART0
360
        // if something has to be send and the txd fifo is not full
363
        // if something has to be send and the txd fifo is not full
361
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
364
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
362
        {
365
        {
363
                tmp_tx = UART0_tx_buffer.pData[UART0_tx_buffer.Position++]; // read next byte from txd buffer
366
                tmp_tx = UART0_tx_buffer.pData[UART0_tx_buffer.Position++]; // read next byte from txd buffer
Line 366... Line 369...
366
                if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
369
                if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
367
                {
370
                {
368
                        Buffer_Clear(&UART0_tx_buffer);
371
                        Buffer_Clear(&UART0_tx_buffer);
369
                }
372
                }
370
        }
373
        }
-
 
374
 
-
 
375
        IDISABLE;
371
}
376
}
Line 372... Line 377...
372
 
377
 
373
 
378