#define UART0_Timer1  1
#define UART0_Timer3  2
#define UART1_Timer3  3
#define UART2         4
#define UART3         5
#define UART0         6
#define UART1         7


extern   bit UART0PRINTFG,UART1PRINTFG,uart0_receive_flag,uart1_receive_flag;
extern   unsigned char uart0_receive_data,uart1_receive_data;

void UART_Open(unsigned long u32SysClock, unsigned char u8UARTPort,unsigned long u32Baudrate);
void UART_Send_Data(unsigned char UARTPort, unsigned char c);
unsigned char UART_Receive_Data(unsigned char UARTPort);
void UART_Interrupt_Enable(unsigned char UARTPort, unsigned char u8UARTINTStatus);
void UART0_LIRC_Baudrate2400_Open(void);
void Enable_P31_UART0_VCOM_115200_printf(void);
void Enable_P31_UART0_VCOM_38400_printf(void);