How to manipulate a receiving buffer - Page 3

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Re: How to manipulate a receiving buffer
Quoted text here. Click to load it
... snip ...
Quoted text here. Click to load it

So don't use pointers, use indices, which can be single bytes, and
reading or writing must be atomic.

--
 <http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt
 <http://www.securityfocus.com/columnists/423
We've slightly trimmed the long signature. Click to see the full one.
Re: How to manipulate a receiving buffer
Quoted text here. Click to load it

Yes, I know. I already said that.  

Then ULF said that it didn't matter that pointer accesses
weren't atomic on the AVR because you could use a "producer
consumer pattern".

--
Grant Edwards                   grante             Yow!  ANN JILLIAN'S HAIR
                                  at               makes LONI ANDERSON'S
We've slightly trimmed the long signature. Click to see the full one.
Re: How to manipulate a receiving buffer

Quoted text here. Click to load it

Consider adding a write index and a read index. The ISR increments the
write index while the reading routine increments the read index.

--
EventStudio 4.0 - http://www.EventHelix.com/EventStudio
Model in Plain Text; Generate Sequence Diagrams in PDF/Word


Site Timeline