[En-Nut-Discussion] UART _ioctl bug ?

Zodianet zodianet at wanadoo.fr
Fri Mar 26 23:03:26 CET 2004


It works!
Thanks,
JP

-----Message d'origine-----
De : en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] De la part de Matthias Ringwald
Envoyé : vendredi 26 mars 2004 04:04
À : Ethernut User Chat (English)
Objet : Re: [En-Nut-Discussion] UART _ioctl bug ?


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

_______________________________________________
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