Skip to content

Commit

Permalink
re-increase cdc buffer for nrf52840 due to bulk out issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jun 19, 2018
1 parent 19963ca commit 3ace03c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/class/cdc/cdc_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ace03c

Please sign in to comment.