TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Joshua Marshall
from: Paul Edwards
date: 1996-12-11 07:51:40
subject: Re: Robust FIFO

JM> executing prior to interrupt.  An interrupt places information in the fifo 
JM> (or queue, or pipe...) and a slow-speed function pulls it out when it is 
JM> required.  The problem I am having is:  What happens if I get interrupted 
JM> in a place where I am adjusting the size of the fifo?  I am unable to 
JM> disable interrupts at this time as I cannot afford to miss a single 
JM> interrupt.

Disabling interrupts doesn't mean you LOSE the interrupts, it means that
they queue up waiting for interrupts to clear.  Can't you afford a split
microsecond delay?  Failing that, make your queue circular, and have
separate read + write pointers, and assume that you never overflow.  These
are just suggestions.  Besides writing a comms program, I have no real time
experience.  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.