summaryrefslogtreecommitdiffstats
path: root/sw-avr/rom-loader/usart.h
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-10-30 12:07:58 +0100
committerNao Pross <naopross@thearcway.org>2018-10-30 12:34:37 +0100
commitcda16639cbf19d6eb5c11f05f1045e54b3fdaba9 (patch)
tree25227b76ae6dd50d5eddc30e4806af2003e70f54 /sw-avr/rom-loader/usart.h
parentUpdate gitignore (diff)
downloadz80uPC-cda16639cbf19d6eb5c11f05f1045e54b3fdaba9.tar.gz
z80uPC-cda16639cbf19d6eb5c11f05f1045e54b3fdaba9.zip
[avr] Add test program for IO and basic usart
Diffstat (limited to '')
-rw-r--r--sw-avr/rom-loader/usart.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw-avr/rom-loader/usart.h b/sw-avr/rom-loader/usart.h
new file mode 100644
index 0000000..f7d8806
--- /dev/null
+++ b/sw-avr/rom-loader/usart.h
@@ -0,0 +1,10 @@
+#ifndef USART_H
+#define USART_H
+
+#include <stdint.h>
+
+void usart_init(void);
+void usart_send(uint8_t c);
+uint8_t usart_recv(void);
+
+#endif