Closed GoogleCodeExporter closed 8 years ago
Attached .ino example
Note that this will compile because of my WDTCR definition.
Compiling for attiny45 does NOT need the definition, only attiny44, attiny84
will fail
Original comment by tvijlbr...@gmail.com
on 12 Sep 2012 at 6:54
Attachments:
Three things...
1. This has nothing to do with the Tiny Core. The register / macro definitions
are provided by AVR Libc.
2. The register / macro definitions are based on the Atmel datasheets. The
register is named WDTCR for the X5 family and WDTCSR for the X4 family.
3. Libc provides processor agnostic macros (_WD_CONTROL_REG and
_WD_CHANGE_BIT). I suggest you use those. Or, use the high-level Libc
macros...
http://www.nongnu.org/avr-libc/user-manual/group__avr__watchdog.html
Original comment by arduino....@gmail.com
on 12 Sep 2012 at 7:36
Clear, thanks for the feedback!
_WD_CONTROL_REG works fine
Original comment by tvijlbr...@gmail.com
on 13 Sep 2012 at 5:00
Original issue reported on code.google.com by
tvijlbr...@gmail.com
on 12 Sep 2012 at 6:31