port from 2.6.x to 3.1.x : usb-cdc flush behavior
Posted: Tue Mar 15, 2016 6:01 pm
Hello, i am in the process of porting all my stuff to ChibiOS 3.1. Most of the time, it works flawlessly.
With usb-cdc, i notice different behaviour between 2.6 and 3.1 :
2.6 : data is flushed after each chSequentialStreamWrite
3.1 : data is flushed only after the buffer of size SERIAL_USB_BUFFERS_SIZE if full
To let my application run, I have lowered SERIAL_USB_BUFFERS_SIZE, but it's not ideal,
is there any means to flush data after a chSequentialStreamWrite on usb-cdc ?
Thanks,
Alexandre
With usb-cdc, i notice different behaviour between 2.6 and 3.1 :
2.6 : data is flushed after each chSequentialStreamWrite
3.1 : data is flushed only after the buffer of size SERIAL_USB_BUFFERS_SIZE if full
To let my application run, I have lowered SERIAL_USB_BUFFERS_SIZE, but it's not ideal,
is there any means to flush data after a chSequentialStreamWrite on usb-cdc ?
Thanks,
Alexandre