--- In lpc2000@yahoogroups.com, "ocnek1" <markoskyj@...> wrote: > > Yes, I am using the newlib com functions. com2 to be exact. > Following through the code I now realized that I was already using the > "polled" functions and not the interrupt. Putting in some test code, > it seems to get stuck in the "gets()" function (Does not return) > > Now would / does the gets() function endlessly wait until it gets a > character or should it return if there is nothing to get. > > I would assume that it would return no matter what, and that kind of > leaves a sinking feeling that there may be something wrong with newlib. > > > j. > RTFM TRAD_SYNOPSIS #include <stdio.h> char *gets(<[buf]>) char *<[buf]>; char *_gets_r(<[reent]>, <[buf]>) struct _reent *<[reent]>; char *<[buf]>; DESCRIPTION Reads characters from standard input until a newline is found. The characters up to the newline are stored in <[buf]>. The newline is discarded, and the buffer is terminated with a 0.
Message
Re: Update on Robert 's 1wire port with the LPC2138
2006-04-11 by donhamilton2002
Attachments
- No local attachments were found for this message.