[Top][All Lists]

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

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

From: Dave Hylands
Subject: Re: [avr-gcc-list] About context saving in Vectors
Date: Wed, 14 Jan 2009 17:27:37 -0800

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=%2Fcommon%
>> 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.

You can find interrupt based UART code which uses CBUF over here:

A typical Config.h (which can be different for each project) looks like this:

Dave Hylands
Shuswap, BC, Canada

reply via email to

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