diff options
| author | hathach <[email protected]> | 2018-12-07 18:49:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-07 18:49:26 +0700 |
| commit | 2aa21a14e6f44256d5debe263e4b858ed3342dac (patch) | |
| tree | 99b14eb0fcbd9309aa453e04475c11a6bb0eb308 /examples/host/cdc_msc_hid/src | |
| parent | e6e367913664140729fa88605da7f1dc52439e16 (diff) | |
lpc17 ohci failed to execute control transfer !!
Diffstat (limited to 'examples/host/cdc_msc_hid/src')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/main.c | 4 | ||||
| -rw-r--r-- | examples/host/cdc_msc_hid/src/tusb_config.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c index 7f8b9d6e2..4d197a16a 100644 --- a/examples/host/cdc_msc_hid/src/main.c +++ b/examples/host/cdc_msc_hid/src/main.c @@ -101,6 +101,10 @@ void tuh_cdc_unmounted_cb(uint8_t dev_addr) // 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)); diff --git a/examples/host/cdc_msc_hid/src/tusb_config.h b/examples/host/cdc_msc_hid/src/tusb_config.h index ea411d3f4..be584b181 100644 --- a/examples/host/cdc_msc_hid/src/tusb_config.h +++ b/examples/host/cdc_msc_hid/src/tusb_config.h @@ -55,7 +55,7 @@ #if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX #define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | OPT_MODE_HIGH_SPEED) #else -#define CFG_TUSB_RHPORT0_MODE OPT_MODE_DEVICE +#define CFG_TUSB_RHPORT0_MODE OPT_MODE_HOST #endif #define CFG_TUSB_DEBUG 2 |
