[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] [bug #37103] ATtiny5/9/10/20/40 watchdog can't be enabled
From: |
Jonathan Oakley |
Subject: |
[avr-libc-dev] [bug #37103] ATtiny5/9/10/20/40 watchdog can't be enabled |
Date: |
Wed, 15 Aug 2012 09:25:18 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.27) Gecko/20120216 Firefox/3.6.27 (.NET CLR 3.5.30729) |
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [avr-libc-dev] [bug #37103] ATtiny5/9/10/20/40 watchdog can't be enabled,
Jonathan Oakley <=