00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _UART_USB_LIB_H_
00014 #define _UART_USB_LIB_H_
00015
00016
00017
00018
00019
00020 #ifdef UART_USB_DEFAULT_INPUT
00021 #define uart_usb_getchar _getkey
00022 #define uart_usb_test_hit test_hit
00023 #endif
00024
00025 #ifdef UART_USB_DEFAULT_OUTPUT
00026 #define uart_usb_putchar putchar
00027 #endif
00028
00029
00030
00031
00032
00033
00034 void uart_usb_init(void);
00035 bit uart_usb_test_hit(void);
00036 char uart_usb_getchar(void);
00037 bit uart_usb_tx_ready(void);
00038 int uart_usb_putchar(int);
00039 void uart_usb_flush(void);
00040
00041 #endif