00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef __INCLUDE_UART_H
00017 #define __INCLUDE_UART_H
00018
00019 #include <msp430x44x.h>
00020 #include <msp430/basic_clock.h>
00021 #include <msp430/system_clock.h>
00022 #include <stdarg.h>
00023 #include <stdlib.h>
00024 #include <stdio.h>
00025 #include <string.h>
00026 #include <sys/types.h>
00027
00028 #define UART_PRINTF_BUF_SIZE 256
00029
00030 void UART_init (void);
00031 void UART_putChar (char c);
00032 char UART_getCharIsReady ();
00033 char UART_getChar ();
00034 void UART_write (const char *buf, int length);
00035 void UART_printf (const char *fmt, ...);
00036
00037 #endif // __INCLUDE_UART_H