Stub out functions to perform host-side I/O
This commit is contained in:
parent
ef198866a7
commit
ff398ec275
1 changed files with 16 additions and 0 deletions
16
include/tabby/serial.h
Normal file
16
include/tabby/serial.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#ifndef _TABBY_SERIAL_H
|
||||
#define _TABBY_SERIAL_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#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 */
|
Loading…
Add table
Reference in a new issue