more fix for chopstx_poll

This commit is contained in:
NIIBE Yutaka
2016-05-17 17:51:41 +09:00
parent 3651aa64b4
commit dce6c70ffc
6 changed files with 366 additions and 288 deletions

7
example-cdc/tty.h Normal file
View File

@@ -0,0 +1,7 @@
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, uint8_t *buf, int count);
int tty_recv (struct tty *tty, uint8_t *buf, uint32_t *timeout);