00001 #ifndef LPC2103UART 00002 #define LPC2103UART 00003 00004 #include "type.h" 00005 00006 extern UINT8 g_uartInit; 00007 00008 void InitUART(UINT8 dll, UINT8 dlm, UINT8 fdr); 00009 void DisableUART(void); 00010 00011 int UART_SendChar(char ch, ULONG ud); 00012 void UART_SendData(void*buf,UINT32 len); 00013 void UART_SendString(const char*str); 00014 void UART_printf(const char*str, ...); 00015 void UARTPrintString(const char *str); 00016 00017 typedef UINT8 (*pIdle)(); 00018 typedef void (*pCharRecv)(UINT8 byte, UINT32 pos); 00019 00020 void UARTInit(); 00021 00022 #endif