diff options
| author | hathach <[email protected]> | 2013-07-03 11:39:09 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-07-03 11:39:09 +0700 |
| commit | 294ddd0acc0169cce3f03ba085151a3115172a1b (patch) | |
| tree | 11c2bf21ee9da1ccb0b5cae3a2753dd6c5fe9027 | |
| parent | 1667ef5041ad80d0f7b9dc76c286b8c59cedf180 (diff) | |
complete CDC serial demo (in a quick hacking way)
| -rw-r--r-- | demos/host/src/cdc_serial_app.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demos/host/src/cdc_serial_app.c b/demos/host/src/cdc_serial_app.c index cd58da74d..d8d97c473 100644 --- a/demos/host/src/cdc_serial_app.c +++ b/demos/host/src/cdc_serial_app.c @@ -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; |
