diff options
| author | hathach <[email protected]> | 2018-06-19 15:16:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-06-19 15:16:26 +0700 |
| commit | 3ace03cbc7dc98943f6b43cff3e6397302eae23a (patch) | |
| tree | 14f0187ff8c98b41ea56082c91d1fec40380b730 /src/class/cdc/cdc_device.c | |
| parent | 19963ca61158fda4210ec79faf4d081b387cac7f (diff) | |
re-increase cdc buffer for nrf52840 due to bulk out issue
Diffstat (limited to 'src/class/cdc/cdc_device.c')
| -rw-r--r-- | src/class/cdc/cdc_device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.c b/src/class/cdc/cdc_device.c index 90e1924b4..ccb15205b 100644 --- a/src/class/cdc/cdc_device.c +++ b/src/class/cdc/cdc_device.c @@ -66,7 +66,14 @@ typedef struct { }cdcd_interface_t;
// TODO multiple rhport
+
+#if CFG_TUSB_MCU == OPT_MCU_NRF5X
+// FIXME nrf52 OUT: Controller ACK data even we didn't prepare transfer
+CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN uint8_t _tmp_rx_buf[600];
+#else
CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN uint8_t _tmp_rx_buf[64];
+#endif
+
CFG_TUSB_ATTR_USBRAM CFG_TUSB_MEM_ALIGN uint8_t _tmp_tx_buf[64];
FIFO_DEF(_rx_ff, CFG_TUD_CDC_BUFSIZE, uint8_t, true);
|
