diff options
| author | hathach <[email protected]> | 2019-06-10 18:50:59 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-06-10 18:50:59 +0700 |
| commit | 393492823ce037a2e46d367d61fad1235859af2e (patch) | |
| tree | 7bc829e94b0a542e6990566e71ec293a600d3553 /examples/device/cdc_msc_hid | |
| parent | 69e98215ea94bf5d6a8adc042732fe2a67df9764 (diff) | |
| parent | 7156bfb54d5e9e13c8574b2384a47bd5554798a9 (diff) | |
Merge pull request #80 from hathach/develop
added usbd_edpt_xfer/usbd_edpt_busy to replace dcd_edpt_transfer/dcd_edpt_busy()
Diffstat (limited to 'examples/device/cdc_msc_hid')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/main.c | 2 | ||||
| -rw-r--r-- | examples/device/cdc_msc_hid/src/tusb_config.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_hid/src/main.c b/examples/device/cdc_msc_hid/src/main.c index 7c0fd39d5..8ebdddd80 100644 --- a/examples/device/cdc_msc_hid/src/main.c +++ b/examples/device/cdc_msc_hid/src/main.c @@ -201,7 +201,7 @@ void hid_task(void) tud_hid_mouse_report(REPORT_ID_MOUSE, 0x00, delta, delta, 0, 0); // delay a bit before attempt to send keyboard report - board_delay(2); + board_delay(10); } } diff --git a/examples/device/cdc_msc_hid/src/tusb_config.h b/examples/device/cdc_msc_hid/src/tusb_config.h index 8981077d3..2c89a63b7 100644 --- a/examples/device/cdc_msc_hid/src/tusb_config.h +++ b/examples/device/cdc_msc_hid/src/tusb_config.h @@ -62,7 +62,7 @@ #endif #ifndef CFG_TUSB_MEM_ALIGN -#define CFG_TUSB_MEM_ALIGN ATTR_ALIGNED(4) +#define CFG_TUSB_MEM_ALIGN TU_ATTR_ALIGNED(4) #endif //-------------------------------------------------------------------- @@ -95,6 +95,9 @@ // Should be sufficient to hold ID (if any) + Data #define CFG_TUD_HID_BUFSIZE 16 +#define CFG_TUD_MIDI_RX_BUFSIZE 512 +#define CFG_TUD_MIDI_TX_BUFSIZE 512 + #ifdef __cplusplus } #endif |
