summaryrefslogtreecommitdiffstats
path: root/sw/programmer/linux/src/serial.h
diff options
context:
space:
mode:
authorleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-08-23 21:18:02 +0200
committerleleraffa97@hotmail.it <leleraffa97@hotmail.it>2017-08-23 21:18:02 +0200
commit3f92d0e29700fc2da45354a4cf3e3afe5c5245c2 (patch)
treecb6def68635ff2b4e4ab30c7e8fdbdf3e730bc05 /sw/programmer/linux/src/serial.h
parentFilesystem struct order (diff)
parentnew programmer interface for linux (diff)
downloadz80uPC-3f92d0e29700fc2da45354a4cf3e3afe5c5245c2.tar.gz
z80uPC-3f92d0e29700fc2da45354a4cf3e3afe5c5245c2.zip
Merge remote-tracking branch 'origin/naopross' into atlas
Diffstat (limited to 'sw/programmer/linux/src/serial.h')
-rw-r--r--sw/programmer/linux/src/serial.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/programmer/linux/src/serial.h b/sw/programmer/linux/src/serial.h
new file mode 100644
index 0000000..fe21524
--- /dev/null
+++ b/sw/programmer/linux/src/serial.h
@@ -0,0 +1,13 @@
+#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_open(const char *devpath, unsigned long baudrate);
+
+#endif