avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] About context saving in Vectors


From: Daniel O'Connor
Subject: Re: [avr-gcc-list] About context saving in Vectors
Date: Thu, 15 Jan 2009 12:02:28 +1030
User-agent: KMail/1.9.10

On Thursday 15 January 2009 11:57:37 Dave Hylands wrote:
> Hi Daniel,
>
> >> And here's some code that implements such a ring buffer. As David
> >> Kelly points out, as long as the index type is uint8_t, then nothing
> >> special is required (which for this particular implementation means
> >> that buffers upto 128 entries would be supported)
> >>
> >> <http://websvn.hylands.org/filedetails.php?repname=Projects&path=%2Fcomm
> >>on% 2FCBUF.h&rev=0&sc=0>
> >>
> >> It's important that the queue be declared volatile (as myQ is in the
> >> sample).
> >
> > And I was just about to ask if someone could post some well tested code!
> > :)
>
> Yes - I use this for all of my UART stuff.

Heh, just what I had in mind for it :)
(USB to RS485 adapter)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]