wdt.h and ATmega169

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The _wdt_write(value) macro in wdt.h doesn't work with the ATmega169. The problem appears to be that Atmel moved the WDTCR register to location 0x60, which is outside the range of an OUT instruction.

Should this be a bug report?

Arthur

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

adebeun2 wrote:

Should this be a bug report?

Yes, please. So far, it's quite known that the ATmega169 has several
IO registers that do not match the remainder of the AVRs, but it has
only been documented by now that the EEPROM library won't work there.

At least, the documentation should mention this detail. Of course, if
you could provide a patch that modifies wdt.h to use MMIO on the
ATmega169, that would be most welcome.

Jörg Wunsch

Please don't send me PMs, use email if you want to approach me personally.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

adebeun2 wrote:
Should this be a bug report?Arthur

Yes, and the bug report should be submitted here:

http://savannah.nongnu.org/projects/avr-libc