stm32/usb: Allocate 128 bytes to CDC data out EPs on non-multi-OTG MCUs.
This much buffer space is required for CDC data out endpoints to avoid any buffer overflows when the USB CDC is saturated with data. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
f694a6fa20
commit
f305c62a5f
|
@ -102,8 +102,8 @@ STATIC const uint8_t usbd_fifo_size_cdc1[USBD_PMA_NUM_FIFO] = {
|
|||
#if MICROPY_HW_USB_CDC_NUM >= 2
|
||||
STATIC const uint8_t usbd_fifo_size_cdc2[USBD_PMA_NUM_FIFO] = {
|
||||
8, 8, 16, 16, // EP0(out), EP0(in), MSC/HID(out), MSC/HID(in)
|
||||
0, 8, 12, 12, // unused, CDC_CMD(in), CDC_DATA(out), CDC_DATA(in)
|
||||
0, 8, 12, 12, // unused, CDC2_CMD(in), CDC2_DATA(out), CDC2_DATA(in)
|
||||
0, 8, 16, 8, // unused, CDC_CMD(in), CDC_DATA(out), CDC_DATA(in)
|
||||
0, 8, 16, 8, // unused, CDC2_CMD(in), CDC2_DATA(out), CDC2_DATA(in)
|
||||
0, 0, 0, 0, // 4x unused
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue