diff options
| author | hathach <[email protected]> | 2022-12-21 00:26:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-12-21 00:26:46 +0700 |
| commit | 854e5222aea570a2be2201d8c460f54b87c9108a (patch) | |
| tree | cbf4af6c7bd630bf0ced70b1531efe1ad3199b17 /examples | |
| parent | 7004914d8c6c7d88908776eb153661b6b987e513 (diff) | |
finalizing cdc host, has a working read/write
TODO: first character seems not to get echoed. set control line state
seems to failed with LOG < 2
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/main.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c index 465e457f7..b34810252 100644 --- a/examples/host/cdc_msc_hid/src/main.c +++ b/examples/host/cdc_msc_hid/src/main.c @@ -62,24 +62,6 @@ int main(void) } //--------------------------------------------------------------------+ -// USB CDC -//--------------------------------------------------------------------+ -CFG_TUSB_MEM_SECTION static char serial_in_buffer[64] = { 0 }; - -// invoked ISR context -void tuh_cdc_xfer_isr(uint8_t dev_addr, xfer_result_t event, cdc_pipeid_t pipe_id, uint32_t xferred_bytes) -{ - (void) event; - (void) pipe_id; - (void) xferred_bytes; - - printf(serial_in_buffer); - tu_memclr(serial_in_buffer, sizeof(serial_in_buffer)); - - tuh_cdc_receive(dev_addr, serial_in_buffer, sizeof(serial_in_buffer), true); // waiting for next data -} - -//--------------------------------------------------------------------+ // TinyUSB Callbacks //--------------------------------------------------------------------+ |
