add tusbd_cdc_is_busy

enhance cdc serial device demo
refractor fifo.c
This commit is contained in:
hathach
2013-11-08 14:46:48 +07:00
parent 15d3a418bd
commit 7ff0dbb64c
7 changed files with 146 additions and 149 deletions

View File

@@ -92,7 +92,7 @@ void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_
break;
case TUSB_EVENT_XFER_ERROR:
xferred_bytes = 0; // ignore
received_bytes = 0; // ignore
break;
case TUSB_EVENT_XFER_STALLED: