Copied from example-cde (except README).

This commit is contained in:
NIIBE Yutaka
2017-12-14 09:34:16 +09:00
parent 9e527b0532
commit 2c14f21b20
7 changed files with 1319 additions and 0 deletions

9
example-usb-serial/tty.h Normal file
View File

@@ -0,0 +1,9 @@
#define LINEBUFSIZE 128
struct tty;
struct tty *tty_open (void);
void tty_wait_configured (struct tty *tty);
void tty_wait_connection (struct tty *tty);
int tty_send (struct tty *tty, const char *buf, int count);
int tty_recv (struct tty *tty, char *buf, uint32_t *timeout);