Re: alarm() - what am I doing wrong???
- From: Charles Sullivan <cwsulliv@xxxxxxxxxxxx>
- Date: Mon, 22 May 2006 17:39:35 GMT
On Mon, 22 May 2006 09:44:37 +0000, Jan Panteltje wrote:
Cannot you use alarm_isr() to increment a variable each second,
and set a flag for main if it reaches 5?
Then have main set a flag that resets the counter in alarm_isr()
before it reaches 5 if data comes in?
Then when mai nsees the flag that 5 is reached (in your main loop),
it should do something.
?
If I'm using alarm() to count seconds, then the read() would only
be able to check for incoming data every second, no? I think I'd
lose a lot of data that way.
.
- Follow-Ups:
- Re: alarm() - what am I doing wrong???
- From: Jan Panteltje
- Re: alarm() - what am I doing wrong???
- References:
- alarm() - what am I doing wrong???
- From: Charles Sullivan
- Re: alarm() - what am I doing wrong???
- From: Jan Panteltje
- alarm() - what am I doing wrong???
- Prev by Date: Re: Disk performance testing
- Next by Date: Re: alarm() - what am I doing wrong???
- Previous by thread: Re: alarm() - what am I doing wrong???
- Next by thread: Re: alarm() - what am I doing wrong???
- Index(es):
Relevant Pages
|
|