[En-Nut-Discussion] Stdin Stdout on EIR or sam7

Wiegelmann, Jörg Joerg.Wiegelmann at ces-tronics.de
Wed Jun 4 16:41:54 CEST 2008


 

Hello folks,

ist he standard IN/OUT mechanism working?

I reassigned the devices like I am used to in the good old Ethernut 1.3 but the output / input is not working

 

     NutRegisterDevice(&DEV_UART, 0, 0);

     freopen(DEV_UART_NAME, "w", stdout);

     freopen(DEV_UART_NAME, "r", stdin);

     _ioctl(_fileno(stdout), UART_SETSPEED, &baud);

     _ioctl(_fileno(stdin), UART_SETSPEED, &baud);

 

Any Idea?

Thank for the help 

Best regards Joerg

 




More information about the En-Nut-Discussion mailing list