/********************************************************************************\
\*UART_receive_single() -UART serial data receiving function.
\*Parameters:
\* channel: Channel NO. UART A or UART B.
\* rec_dada_add: Start Add for storing reveived data.
\*Return: 0,Finish Receiveng.
1,Data not ready.
0xFFFF,Port error.
2,Interrupt timeout.
\********************************************************************************/
Uint16 UART_receive_single(Uint32 channel)
{
Uint16 revdata;
revdata = UART_rget(channel,UART_RHR);
return(revdata&0xFF);
}
/********************************************************************************/
/********************************************************************************\
\*UART_send_single() -Send a set of data.
\*Parameters:
\* channel: Channel NO. UART A or UART B.
\* send_data: To be sent data.
\*Return: No.
\********************************************************************************/
void UART_send_single(Uint32 channel,Uint8 send_data)
{
Uint16 lsrdata;