[En-Nut-Discussion] Uart 19200
Sigurd Kleppan
021243 at student.hit.no
Wed Oct 20 15:00:56 CEST 2004
I can't get characters from the keyboard in the terminal when using Uart. It works with the devDebug. Why?
To get charachter i use:
if (!(inp(USR) & BV(RXC)) == 0){ //this don't work, WHY?
ch=inp(UDR);
}
NutRegisterDevice(&devUart0, 0, 0);
freopen("uart0", "w", stdout);
_ioctl(_fileno(stdout), UART_SETSPEED, &baud);
Thanks for all help!
Sigurd
More information about the En-Nut-Discussion
mailing list