Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by panger123+apr 4 2006, 05:14 am--><div class='quotetop'>quote (panger123 @ apr 4 2006, 05:14 am)</div>
--- quote start ---
<!--quotebegin-pszemol@Apr 4 2006, 02:53 AM i understand you do not like the blocking nature of read() calls.
i am sure there should be some non-blocking call to check uart buffer if there is any character ready to be received. i am still a beginner in niosii and uc/os-ii so i cannot tell what is its name, but i believe it is...
also, when i was checking uart registers in nios ii i have noticed and eop (end of packet) register where you put your character ending communication protocol packet (etx?) this way your task could be awaken only after the complete packet has been collected in the uart buffer.
i am not sure if i am interpreting this correctly, maybe somebody with more experience will chime in...
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=13994)
--- quote end ---
--- Quote End --- 可以打中文的吗? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13995)</div> [/b] --- Quote End --- Sure! I am a Chinese 可以用中文的, 我有事要请教你!