usart read variable string

Joel Sherrill joel at rtems.org
Wed Mar 20 11:48:45 UTC 2019


On Wed, Mar 20, 2019, 4:48 AM 787562067 <googcheng at qq.com> wrote:

> Hi all
> I want to read usart variable string, but only find an API  int
> usart_read_polled(int minor)
> <https://github.com/RTEMS/rtems/blob/4af18b34f4193eb1ffa0415d50f952aa781ef2da/bsps/arm/stm32f4/console/usart.c>
> is there a simple method to do this like using the idle interrupt
>

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.

Under the hood, the implementation will either be interrupt driven or
polled at each clock tick.

> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190320/6710fd5f/attachment-0002.html>


More information about the users mailing list