Subversion Repositories NaviCtrl

Rev

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

Rev 585 Rev 664
Line 374... Line 374...
374
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
374
        if((UART0_tx_buffer.Locked == TRUE) && (UART_GetFlagStatus(UART0, UART_FLAG_TxFIFOFull) == RESET))
375
        {
375
        {
376
                tmp_tx = UART0_tx_buffer.pData[UART0_tx_buffer.Position++]; // read next byte from txd buffer
376
                tmp_tx = UART0_tx_buffer.pData[UART0_tx_buffer.Position++]; // read next byte from txd buffer
377
                UART_SendData(UART0, tmp_tx); // put character to txd fifo
377
                UART_SendData(UART0, tmp_tx); // put character to txd fifo
378
                // if terminating character or end of txd buffer reached
378
                // if terminating character or end of txd buffer reached
379
                if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
379
//              if((tmp_tx == '\r') || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
-
 
380
                if((UART0_tx_buffer.Position == UART0_tx_buffer.DataBytes) || (UART0_tx_buffer.Position == UART0_tx_buffer.Size))
380
                {
381
                {
381
                        Buffer_Clear(&UART0_tx_buffer);
382
                        Buffer_Clear(&UART0_tx_buffer);
382
                }
383
                }
383
        }
384
        }
384
 
-
 
385
}
385
}
Line 386... Line 386...
386
 
386
 
387
 
387