[En-Nut-Discussion] getch for Ethernut

Marc Wetzel mwse at gmx.de
Tue May 18 11:02:34 CEST 2004

Hmm. Strange.. Exactly that's what I'm doing and it is working great.
Maybe you should post some snippet of your uart-initialization code, so we
can spot a possible bug?

-----Original Message-----
From: en-nut-discussion-bounces at egnite.de
[mailto:en-nut-discussion-bounces at egnite.de] On Behalf Of
Joerg.Lamprecht at kendro.spx.com
Sent: Tuesday, May 18, 2004 10:28 AM
To: en-nut-discussion at egnite.de
Subject: [En-Nut-Discussion] getch for Ethernut


I looking for an euquivalent for the C std. func. getch. 
So I need that because fgetc and all the other i/o get hung when waiting for
a char. 
Is there any possibiltiy to set a timeout for fgetc. I tried the UART I/O
Control Function _ioctl with the Command 
Code UART_SETREADTIMEOUT to 100 ms, but my Thread doesnt interrupt. 

Greetings from Jörg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.egnite.de/pipermail/en-nut-discussion/attachments/20040518/b18da0c1/attachment.html>

More information about the En-Nut-Discussion mailing list