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 */