I have seen tutorial code that says something like:
interrupt[BASICTIMER_VECTOR] void my_isr()
{
...
}
However, the compiler, with its current settings won't interpret it
correctly.
I have to type the more tedious statement:
#pragma vector 0x00
__interrupt void my_isr()
{
...
}
What is the setting i have to change or include to get the first
interrupt function to work?
Thanks,
Mike
I think that you are looking at two different generation of compilers.
It is the same for the AVR.
If you use EWAVR v1.xx then the first example works.
If you use EWAVR v2.xx and v3.xx, then the second example works.
--
Best Regards,
Ulf Samuelsson u...@a-t-m-e-l.com
This is a personal view which may or may not be
share by my Employer Atmel Nordic AB
> Thanks,
> Mike
Mike
"Ulf Samuelsson" <u...@atmel.nospam.com> wrote in message news:<cm54c.4450$EV2.31937@amstwist00>...