Skip to content

Commit

Permalink
[nanokit] Increase USB CDC buffer size for higher baud rate
Browse files Browse the repository at this point in the history
Tested with cskburn:

* before: 748800 bps
* after: 1500000 bps
  • Loading branch information
xychen committed Nov 14, 2022
1 parent df7433a commit 8132bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/hic_hal/stm32/stm32f103xb/usb_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@
#define USBD_CDC_ACM_HS_BINTERVAL1 0
#define USBD_CDC_ACM_CIF_STRDESC L"mbed Serial Port"
#define USBD_CDC_ACM_DIF_STRDESC L"mbed Serial Port"
#define USBD_CDC_ACM_SENDBUF_SIZE 64
#define USBD_CDC_ACM_RECEIVEBUF_SIZE 64
#define USBD_CDC_ACM_SENDBUF_SIZE 512
#define USBD_CDC_ACM_RECEIVEBUF_SIZE 512
#if (((USBD_CDC_ACM_HS_ENABLE1) && (USBD_CDC_ACM_SENDBUF_SIZE < USBD_CDC_ACM_HS_WMAXPACKETSIZE1)) || (USBD_CDC_ACM_SENDBUF_SIZE < USBD_CDC_ACM_WMAXPACKETSIZE1))
#error "Send Buffer size must be larger or equal to Bulk In maximum packet size!"
#endif
Expand Down

0 comments on commit 8132bdb

Please sign in to comment.