This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001024] STM32 USB driver and proposed USB API change


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]