/******************************************************************************************** * File: serial.h * Version: 1.0.0 * Copyright: 2013 (c) Guo Wenxue * Description: The UART on board drivers/functions. * ChangeLog: 1, Release initial version on "Mon Feb 25 22:58:49 CST 2013" * *******************************************************************************************/ #ifndef __SERIAL_H__ #define __SERIAL_H__ int serial_init(int baudrate); int serial_getc(void); void serial_putc(const char ch); void serial_puts(const char *str); int serial_tstc(void); long xmodem_recv(char *buf); #endif /* end of __SERIAL_H__ */