Rename serial->cdc for no confusion between USART.

This commit is contained in:
NIIBE Yutaka
2017-12-14 12:24:59 +09:00
parent 9b9d40c16b
commit 39e53ae747
3 changed files with 66 additions and 66 deletions

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

@@ -0,0 +1,9 @@
#define BUFSIZE 64
struct cdc;
struct cdc *cdc_open (uint8_t num);
void cdc_wait_configured (struct cdc *);
void cdc_wait_connection (struct cdc *);
int cdc_send (struct cdc *s, const char *buf, int count);
int cdc_recv (struct cdc *s, char *buf, uint32_t *timeout);