URL: <http://savannah.nongnu.org/bugs/?37103>
Summary: ATtiny5/9/10/20/40 watchdog can't be enabled Project: AVR C Runtime Library Submitted by: jro_at_team Submitted on: Wed 15 Aug 2012 09:25:18 GMT Category: Library Severity: 3 - Normal Priority: 5 - Normal Item Group: libc code Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.8.0 Fixed Release: None _______________________________________________________ Details: The macro expansion for wdt_enable() used for the ATtiny5/9/10/20/40 family refers to the WDCE bit, which doesn't exist. Any invocation of wdt_enable() will show this, I don't believe it merits an example file. Watchdog change enable is accomplished by writing 0xD8 to the CCP register in these devices. I'm not sufficiently familiar with inline assembly in GCC to make a good job of fixing it myself - sorry! The obvious workaround is to write the correct values directly to the relevant registers. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?37103> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev