X-Git-Url: https://hackdaworld.org/gitweb/?a=blobdiff_plain;f=betty%2Fuart.h;fp=betty%2Fuart.h;h=518cd4c4d29a5261bf2d28c0222ec1d34692f8cf;hb=b4ca71fc214ba3c58cec25661ba1f81cf7b1b871;hp=0000000000000000000000000000000000000000;hpb=d6814c7408b23db8a441f731b44d4b638df24c64;p=my-code%2Farm.git diff --git a/betty/uart.h b/betty/uart.h new file mode 100644 index 0000000..518cd4c --- /dev/null +++ b/betty/uart.h @@ -0,0 +1,22 @@ +/* + * uart.h - uart0/1 api header file + * + * author: hackbard@hackdaworld.org + * + */ + +#ifndef UART_H +#define UART_H + +#include "lpc2xxx.h" +#include "types.h" + +/* function prototypes */ +void uart0_init(void); +void uart0_send_string(char *txbuf); +void uart0_send_buf16(u16 *buf,int len); +void uart0_send_buf32(u32 *buf,int len); +void uart0_send_byte(u8 send); +u8 uart0_get_byte(void); + +#endif