[En-Nut-Discussion] UART _ioctl bug ?
Matthias Ringwald
mringwal at inf.ethz.ch
Fri Mar 26 13:04:16 CET 2004
hi..
the ioctl call for devDebug0 is quite simple compared to the one for
devUart0
you could try that one by calling instead;
> NutRegisterDevice(&devUart0, 0, 0);
let's see if there's a difference.
matthias
On 26.03.2004, at 06:38, Zodianet wrote:
>
> Nut/OS version 3.4.2.1
> When you set "u_long baud = 38400" in the httpd example below, real
> speed
> seems to be unchanged : 115200b/s (USART_INITSPEED?)...
> Any idea?
>
>
> int main(void)
> {
> u_long baud = 115200;
> u_char i;
>
> /*
> * Initialize the uart device.
> */
> NutRegisterDevice(&devDebug0, 0, 0);
> freopen("uart0", "w", stdout);
> _ioctl(_fileno(stdout), UART_SETSPEED, &baud);
> NutSleep(200);
> printf("\n\nNut/OS %s HTTP Daemon...", NutVersionString());
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list