Beispiel #1
0
void  UART_TxByte (CPU_CHAR c)
{
    if (c == 8) {                                                       /* If a backspace character is to be printed        */
        BSP_UART_PUTCHAR(c);                                            /* Print backspace...                               */
        BSP_UART_PUTCHAR(' ');                                          /* Print space character to clear character         */
        BSP_UART_PUTCHAR(c);                                            /* Print backspace to reposition cursor             */
    } else {    
        BSP_UART_PUTCHAR(c);                                            /* Output the character                             */
    }
}    
Beispiel #2
0
/**
* Description: This function performs all necessary initializations on the UART.
* Arguments  : baud_rate    The desired baud rate for the UART
* Returns    : None
*/  
void  UART_TxByte (CPU_CHAR c)
{
	BSP_UART_PUTCHAR(c);                                            /* Output the character                             */
}