summaryrefslogtreecommitdiffstats
path: root/sw/linux/src/serial.h
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2017-02-14 11:48:19 +0100
committerNao Pross <naopross@thearcway.org>2017-02-14 11:48:19 +0100
commit0bb03c0a1d96c23689cc420238a37b9fd15b739c (patch)
treef2c137723355541788327ae4da6dfc789e78936c /sw/linux/src/serial.h
parenthw: created z80acpu in sch library (diff)
downloadz80uPC-0bb03c0a1d96c23689cc420238a37b9fd15b739c.tar.gz
z80uPC-0bb03c0a1d96c23689cc420238a37b9fd15b739c.zip
sw: copied flash tool source from gameboymod
Diffstat (limited to 'sw/linux/src/serial.h')
-rw-r--r--sw/linux/src/serial.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sw/linux/src/serial.h b/sw/linux/src/serial.h
new file mode 100644
index 0000000..6123e42
--- /dev/null
+++ b/sw/linux/src/serial.h
@@ -0,0 +1,17 @@
+#ifndef __Z80PROG_SERIAL_H__
+#define __Z80PROG_SERIAL_H__
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdint.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <termios.h>
+
+int serial_connect(const char *devpath, long baudrate);
+void serial_close(int fd);
+
+void serial_program(const char *rompath);
+void serial_read_rom(const char *rom);
+
+#endif