summaryrefslogtreecommitdiff
path: root/final_project/serial.h
diff options
context:
space:
mode:
authorbrett <brett@bretts-windows-laptop>2024-04-23 20:51:02 -0500
committerbrett <brett@bretts-windows-laptop>2024-04-23 20:51:02 -0500
commit2bd45f076ea7eb429bfee54fe1de240ff4b284e6 (patch)
treef37034113ad3aec380062d0998e1cf94b65424f5 /final_project/serial.h
should be finished, backing up
Diffstat (limited to 'final_project/serial.h')
-rw-r--r--final_project/serial.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/final_project/serial.h b/final_project/serial.h
new file mode 100644
index 0000000..6b5d3d2
--- /dev/null
+++ b/final_project/serial.h
@@ -0,0 +1,21 @@
+/*
+ * serial.h
+ *
+ * Created: 4/3/2024 10:22:09 AM
+ * Author: bsw9xd
+ */
+#ifndef SERIAL_H
+#define SERIAL_H
+
+#include <avr/io.h>
+
+#define F_CPU 16000000UL
+#define BAUD 9600
+
+void usart_init();
+void usart_txt(char data);
+char usart_rxt();
+char usart_rxt_blocking();
+void usart_txstr(char *str);
+
+#endif \ No newline at end of file