[En-Nut-Discussion] UART example for AT91SAM9260-EK
Harald Kipp
harald.kipp at egnite.de
Wed Jun 18 09:25:41 CEST 2008
Lasse conrad wrote:
>
> ...
> NutRegisterDevice(&DEV_UART, 0, 0);
> uart = fopen(DEV_UART_NAME, "r+");
> _ioctl(_fileno(uart), UART_SETSPEED, &baud);
> ...
But in that case putchar() will not work unless you assign stdout to the
uart FILE handle. See page 35 of the Ethernut Software Manual.
> The events and the tcps example works fine btw. So it is not some
> compiler setup stuff.
Also make sure, that stdio functions are supplied by Nut/OS libraries
(libnutcrt), not by newlib. You can check this in the map file.
Harald
More information about the En-Nut-Discussion
mailing list