[En-Nut-Discussion] UART _ioctl bug ?

Zodianet zodianet at wanadoo.fr
Fri Mar 26 06:38:22 CET 2004


 
 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());





More information about the En-Nut-Discussion mailing list