complete CDC serial demo (in a quick hacking way)

This commit is contained in:
hathach 2013-07-03 11:39:09 +07:00
parent 1667ef5041
commit 294ddd0acc
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ void tusbh_cdc_xfer_isr(uint8_t dev_addr, tusb_event_t event, cdc_pipeid_t pipe_
switch(event)
{
case TUSB_EVENT_XFER_COMPLETE:
// osal_queue_send(queue_hdl, &usb_keyboard_report);
for(uint32_t i=0; i<xferred_bytes; i++)
{
osal_queue_send(queue_hdl, buffer_in+i);
}
tusbh_cdc_receive(dev_addr, buffer_in, sizeof(buffer_in), true);
break;