code clean up!
[my-code/arm.git] / betty / uart.h
diff --git a/betty/uart.h b/betty/uart.h
new file mode 100644 (file)
index 0000000..518cd4c
--- /dev/null
@@ -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