summaryrefslogtreecommitdiff
path: root/firmware/uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/uart.h')
-rw-r--r--firmware/uart.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/firmware/uart.h b/firmware/uart.h
new file mode 100644
index 0000000..fc89a0a
--- /dev/null
+++ b/firmware/uart.h
@@ -0,0 +1,19 @@
+void uart_parser(char *);
+char uart_init(char);
+void uart_init_usb(char);
+char uart_deinit(char);
+void uart_deinit_usb(char);
+char uart_baudrate(char uartport, char, char, char, char);
+void uart_baudrate_usb(char uartport, char, char, char, char);
+char uart_stopbits(char, char);
+void uart_stopbits_usb(char, char);
+char uart_databits(char, char);
+void uart_databits_usb(char, char);
+char uart_parity(char, char);
+void uart_parity_usb(char, char);
+char uart_putchar(char, char);
+char uart_getchar(char uartport);
+char uart_send(char uartport, unsigned int length, char *buf);
+void uart_send_usb(char uartport, char length, char *buf);
+void uart_recv_usb(char uartport, int length);
+char uart_recv(char uartport, char * buf, int length);