C to C++ Porting Issue The best workaround when using lamely coded C headers is to #include them like this:
extern "C"
{
#include
#include "lame2.h"
}
That way you don't have to modify the...
Thursday, 14 March 2013 - 20:21
AS6.1 breaks things!!! Right-clicking on a project in the solution explorer gives you a nice context menu for that project. That's what I use most of the time.
(I'm still using AS6)
struct pointer If you exhaust the stack, there is nothing that can save you no matter what your platform is.
It is easier to run out of stack on small systems like those run by AVRs, but you can...
Thursday, 28 February 2013 - 07:51
Strange Compiling To clarify my last post - calling cli() in an ISR has no effect. Calling sei() does. It reenables interrupts. Hence, if any interrupts are queued up, they will now be handled...
Thursday, 28 February 2013 - 04:17
Strange Compiling mckeemj wrote:in a general case, it is not "bad" to have the cli()/sei() pair, but it certainly redundant.
If the sei() is the last thing you do before returning from the ISR....
Thursday, 28 February 2013 - 04:11
Strange Compiling Yes, remove cli() and sei(), declare your shared variables volatile, and make sure you access shared multibyte variables atomically.
There are plenty of threads about this sort of...
Wednesday, 27 February 2013 - 06:28
What happened to one button downloading? It's [/Debug/Start Without Debugging]
If it doesn't work for you, check the settings in the the Tool tab in your project's properties.
Wednesday, 27 February 2013 - 06:21
Need clear examples AVR manuals are confusing I don't see why they couldn't do a better job of explaining how the timer works in the datasheet.
On an Atmega328P there are 16 different timer modes. You would think that it...
The best workaround when using lamely coded C headers is to #include them like this: extern "C" { #include #include "lame2.h" } That way you don't have to modify the...
Right-clicking on a project in the solution explorer gives you a nice context menu for that project. That's what I use most of the time. (I'm still using AS6)
And you may want to set F_CPU to a sensible value. And you should set it prior to including any files.
Just like Gerald Ford.
If you exhaust the stack, there is nothing that can save you no matter what your platform is. It is easier to run out of stack on small systems like those run by AVRs, but you can...
To clarify my last post - calling cli() in an ISR has no effect. Calling sei() does. It reenables interrupts. Hence, if any interrupts are queued up, they will now be handled...
mckeemj wrote:in a general case, it is not "bad" to have the cli()/sei() pair, but it certainly redundant. If the sei() is the last thing you do before returning from the ISR....
Yes, remove cli() and sei(), declare your shared variables volatile, and make sure you access shared multibyte variables atomically. There are plenty of threads about this sort of...
It's [/Debug/Start Without Debugging] If it doesn't work for you, check the settings in the the Tool tab in your project's properties.
I don't see why they couldn't do a better job of explaining how the timer works in the datasheet. On an Atmega328P there are 16 different timer modes. You would think that it...
mickey_at wrote: while (1); Remove the semicolon from that line, and you may see more action.
void Adc_init(); int Adc_read();
Pages