diff options
| author | hathach <[email protected]> | 2018-03-07 15:30:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-07 15:30:32 +0700 |
| commit | 7092db264f9284c23d777562947111369baf7f68 (patch) | |
| tree | bbbb70ec1b8caf7f90d0574193916c13258672c4 /examples/obsolete/device/src | |
| parent | 889169d4d06266e1f827e79259a1ac1aac1bbcb3 (diff) | |
update
Diffstat (limited to 'examples/obsolete/device/src')
| -rw-r--r-- | examples/obsolete/device/src/cdc_device_app.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/obsolete/device/src/cdc_device_app.c b/examples/obsolete/device/src/cdc_device_app.c index cbc4f4ffe..6ef6e753f 100644 --- a/examples/obsolete/device/src/cdc_device_app.c +++ b/examples/obsolete/device/src/cdc_device_app.c @@ -76,6 +76,13 @@ void cdc_serial_app_umount(uint8_t coreid) } +void tud_cdc_rx_cb(uint8_t coreid, uint32_t xferred_bytes) +{ + fifo_write_n(&fifo_serial, serial_rx_buffer, xferred_bytes); + osal_semaphore_post(sem_hdl); // notify main task +} + + void tud_cdc_xfer_cb(uint8_t coreid, tusb_event_t event, cdc_pipeid_t pipe_id, uint32_t xferred_bytes) { switch ( pipe_id ) |
