Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUART polling
Hello to everybody, I'm developing an application made by several task. I'd like to receive data from uart in asynchronous way. So I has a main loop that continuously execute some task and...
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by jaris@Mar 24 2006, 04:33 AM so i changed the end of alt_avalon_uart_read function (irq-version) to the following:
if (!block && count == 0 )
return -ewouldblock;
else
return count;
(the "fast" version of the function should just return -ewouldblock instead of zero) --- Quote End --- Thanks for posting this. This was extremely helpful, you saved me hours of frustration. Excellent workaround. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif