uart_lib.h

Go to the documentation of this file.
00001 
00016 #ifndef _UART_LIB_H_
00017 #define _UART_LIB_H_
00018 
00019 /*_____ I N C L U D E - F I L E S ____________________________________________*/
00020 #include "uart_drv.h"
00021 
00022 
00023 /*_____ D E F I N I T I O N S ______________________________________________*/
00024 #ifndef UART_CONFIG
00025 #define UART_CONFIG     MSK_UART_8BIT
00026 #endif
00027 
00028 #ifndef BAUDRATE
00029 #error You must define BAUDRATE in config.h
00030 #define BAUDRATE        999
00031 #endif
00032 
00033 #define AUTOBAUD        0
00034 
00035 #if BAUDRATE == AUTOBAUD
00036 #define Uart_set_baudrate(bdr)  autobaud()
00037 #include "modules/autobaud/autobaud.h"
00038 #else
00039 #include "lib_mcu/uart/uart_bdr.h"
00040 #endif
00041 
00042 /*_____ D E C L A R A T I O N ______________________________________________*/
00043 
00044 /*_____ M A C R O S ________________________________________________________*/
00045 
00046 /*_____ P R O T O T Y P E S ____________________________________________________________*/
00047 
00058 bit uart_init (void);
00059 
00072 r_uart_ptchar uart_putchar (p_uart_ptchar uc_wr_byte);
00073 
00080 char uart_getchar (void);
00081 
00088 bit uart_test_hit (void);
00089 
00090 
00091 
00092 #endif /* _UART_LIB_H_ */

Generated on Fri Jun 15 14:15:32 2007 for Atmel by  doxygen 1.5.1-p1