ocnek1 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. > > > gets() is line oriented (EOL), getc() is char oriented (one at a time). Try "man gets" and "man getc", if you are on a linux box. On cygwin, YMMV. TomW -- Tom Walsh - WN3L - Embedded Systems Consultant http://openhardware.net, http://cyberiansoftware.com "Windows? No thanks, I have work to do..." ----------------------------------------------------
Message
Re: [lpc2000] Re: Update on Robert 's 1wire port with the LPC2138
2006-04-11 by Tom Walsh
Attachments
- No local attachments were found for this message.