From ff398ec275029c818520e1dd8b2d3f5d4afbec70 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 25 May 2016 20:27:38 -0500 Subject: [PATCH] Stub out functions to perform host-side I/O --- include/tabby/serial.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/tabby/serial.h diff --git a/include/tabby/serial.h b/include/tabby/serial.h new file mode 100644 index 0000000..ffa07d4 --- /dev/null +++ b/include/tabby/serial.h @@ -0,0 +1,16 @@ +#ifndef _TABBY_SERIAL_H +#define _TABBY_SERIAL_H + +#include + +#define TABBY_SERIAL_BAUD 115200 + +int tabby_serial_open(const char *dev); + +void tabby_serial_close(int fd); + +int tabby_serial_send(int fd, char *buf, size_t len); + +ssize_t tabby_serial_recv(int fd, char *buf, size_t len); + +#endif /* _TABBY_SERIAL_H */