[Top][All Lists]

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

[avr-libc-dev] Re: ioat94k.h: interrupt vector table off-by-one

From: Adam Megacz
Subject: [avr-libc-dev] Re: ioat94k.h: interrupt vector table off-by-one
Date: Sat, 03 Sep 2005 00:28:28 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux)

Wow, sorry, I wrote that way too late at night.  I meant increment,
but that's because I didn't realize that Atmel's datasheet numbers
them starting at 1 (what a dumb idea!), while the header file goes by
the offset into the vector table.


  - a

Joerg Wunsch <address@hidden> writes:
> As Adam Megacz wrote:
>> It appears that all of the SIG_* symbols defined in ioat94k.h should
>> be decremented by 1 -- for example:
>>   #define SIG_FPGA_INTERRUPT0     _VECTOR(0)   /* FPGA_INT0  */
>>   #define SIG_INTERRUPT0          _VECTOR(1)   /* EXT_INT0   */
>>   #define SIG_FPGA_INTERRUPT1     _VECTOR(2)   /* FPGA_INT1  */
> Nope, vector 0 is the reset vector (named vector 1 in the
> datasheet).  I just verified that AT94k datasheet, it appears
> to be that way there, too.
> -- 
> cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL
> http://www.sax.de/~joerg/                        NIC: JW11-RIPE
> Never trust an operating system you don't have sources for. ;-)

PGP/GPG: 5C9F F366 C9CF 2145 E770  B1B8 EFB1 462D A146 C380

reply via email to

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