This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1001024] STM32 USB driver and proposed USB API change
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sat, 16 Oct 2010 08:41:19 +0100
- Subject: [Bug 1001024] STM32 USB driver and proposed USB API change
- Auto-submitted: auto-generated
- References: <bug-1001024-104@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024
--- Comment #16 from Ilija Stanislevik <ilijas@siva.com.mk> 2010-10-16 08:41:11 BST ---
(In reply to comment #14)
>
> I was using a blocking call to read a single char:
>
> char rxbuf[1];
> while (1) {
> usbs_serial_rx(&usbs_ser0, rxbuf, 1);
> diag_printf("RX char: %c\n", rxbuf[0]);
> }
>
> I have now determined that usbs_serial_rx() returns to caller on receipt of
> every char but the buffer is modified only when even numbered chars are
> received. Perhaps you were using a non-blocking read?
Yes, I was using the non-bloking read function usbs_start_rx_buffer().
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.