Hi, Wilson. I got it working in my Windows test implementation by not
returning unless at least one byte was read. From the source code I
interpreted that sio_read should return AT MOST the specified number of
characters. Additionally, Windows lets you specify an inter-character
timeout for the read operation, so you can keep reading if more characters
keep coming and thus reduce the processing overhead. You could implement
something alike (some UARTs implement such timeout too).

Guille


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to