UART driver: read function
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Mar 20 09:02:05 UTC 2015
Hello Daniel,
On 20/03/15 09:42, Daniel Krüger wrote:
> Hello Sebastian,
>
> Am 06.03.2015 um 11:20 schrieb Sebastian Huber:
>> Hello Daniel,
>>
>> I would not use the C stdio for this and instead directly use the POSIX
>> read/write. You have to set up the right Termios settings. In case you
>> use RTEMS 4.11 I would use the new Termios device interface (see
>> rtems_termios_device_install()).
>
> The code is intended to be platform independent, so I don't want to
> change it if not really necessary.
will this work on non-POSIX targets at all?
>
> The interesting thing is, that newlib/libc/stdio/refill.c contains
> some "#ifndef __CYGWIN__" which seem to fix the problem under Cygwin.
This Cygwin approach seems to be quite a hack. The current FreeBSD
variant of refill.c uses the default. How does this work on Linux?
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list