Follow-up Comment #2, bug #29964 (project avr-libc):

Hi Joerg,

For the mega88 the following are a sampling of interrupt vector addresses:
0x000 rjmp RESET ; Reset Handler
0x001 rjmp EXT_INT0 ; IRQ0 Handler
0x002 rjmp EXT_INT1 ; IRQ1 Handler
0x003 rjmp PCINT0 ; PCINT0 Handler
0x004 rjmp PCINT1 ; PCINT1 Handler
0x005 rjmp PCINT2 ; PCINT2 Handler
0x006 rjmp WDT ; Watchdog Timer Handler
0x007 rjmp TIM2_COMPA ; Timer2 Compare A Handler
0X008 rjmp TIM2_COMPB ; Timer2 Compare B Handler

This is in line with what iomx8.h states.

I am unsure how _VECTOR() computes the addresses but they just don't seem to
line up for the mega168.

Are the addresses properly computed because of the following?
#if defined (__AVR_ATmega168__)
#  define _VECTORS_SIZE 104
#else
#  define _VECTORS_SIZE 52
#endif

#endif /* _AVR_IOM8_H_ */


Regards,
Jose



    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?29964>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
AVR-libc-dev mailing list
AVR-libc-dev@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev

Reply via email to