Skip to content
Snippets Groups Projects
Commit 3127d1dc authored by Cristian Maglie's avatar Cristian Maglie
Browse files

USB-CDC: Increased buffer size to 256 bytes

This change improves read performance when massive data is sent
via USB by exploiting the hardware capability to handle multi-packet
transfers autonomously.
parent 5265e121
No related branches found
No related tags found
No related merge requests found
......@@ -427,7 +427,7 @@ void USBDeviceClass::initEP(uint32_t ep, uint32_t config)
}
else if (config == (USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_OUT(0)))
{
epHandlers[ep] = new DoubleBufferedEPOutHandler(usbd, ep, 64);
epHandlers[ep] = new DoubleBufferedEPOutHandler(usbd, ep, 256);
}
else if (config == (USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0)))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment