Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Update on Robert 's 1wire port with the LPC2138

2006-04-11 by donhamilton2002

--- 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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.