<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019, 4:48 AM 787562067 <<a href="mailto:googcheng@qq.com">googcheng@qq.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all</div><div>I want to read usart variable string, but only find an API  <a href="https://github.com/RTEMS/rtems/blob/4af18b34f4193eb1ffa0415d50f952aa781ef2da/bsps/arm/stm32f4/console/usart.c" target="_blank" rel="noreferrer">int usart_read_polled(int minor)</a><br></div><div>is there a simple method to do this like using the idle interrupt</div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Normally applications do not use device specific methods. They use either the normal POSIX methods like read() with termios for settings or the printk() family of methods. </div><div dir="auto"><br></div><div dir="auto">Under the hood, the implementation will either be interrupt driven or polled at each clock tick.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>