diff options
Diffstat (limited to 'sw/programmer/linux/src/serial.h')
-rw-r--r-- | sw/programmer/linux/src/serial.h | 17 |
1 files changed, 17 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..6123e42 --- /dev/null +++ b/sw/programmer/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 |