AW: [En-Nut-Discussion] serial UART outpuit / printf
Ing. Joachim Skale
joachim.skale at tele2.at
Wed Oct 5 10:52:12 CEST 2005
and in the sample code, this work.
:-(
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Ing. Joachim
Skale
Gesendet: Mittwoch, 05. Oktober 2005 10:17
An: Ethernut User Chat (English)
Betreff: AW: [En-Nut-Discussion] serial UART outpuit / printf
thanks for the info.
i've seen the 'baud' variable in the http-project is declared as u_long (unsigned long).
-----Ursprüngliche Nachricht-----
Von: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Jean Pierre
Gauthier
Gesendet: Mittwoch, 05. Oktober 2005 10:08
An: 'Ethernut User Chat (English)'
Betreff: RE: [En-Nut-Discussion] serial UART outpuit / printf
1)verify that 'baud" variable is declared "long int"...
2) The third variable of _ioctl must be a "long int" pointer.
JP
-----Message d'origine-----
De : en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] De la part de Ing. Joachim
Skale
Envoyé : mercredi 5 octobre 2005 08:27
À : En-Nut Discussion
Objet : [En-Nut-Discussion] serial UART outpuit / printf
hi,
i have tried to use the UART as a Debug Device, but i cant see anything with
my terminal program hints whats wrong ?
NutRegisterDevice(&devUart0, 0, 0);
NutRegisterDevice(&devEth0, 0, 0);
rs232 = fopen("uart0", "w");
_ioctl(_fileno(rs232), UART_SETSPEED, &baud);
_ioctl(_fileno(rs232), UART_SETSTOPBITS, 1);
_ioctl(_fileno(rs232), UART_SETDATABITS, 8);
_ioctl(_fileno(rs232), UART_SETPARITY, 0);
fprintf(rs232,"\nUART open:\n");
_______________________________________________
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
_______________________________________________
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