avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] bug in wdt_disable() for ATmega324P


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] bug in wdt_disable() for ATmega324P
Date: Sun, 9 Mar 2008 15:52:34 +0100
User-agent: Mutt/1.5.11

As address@hidden wrote:

> First of all, I don't know if this is the appropriate way to report
> a bug in AVR Libc. If not, please tell me the correct procedure.

Well, for a genuine bug report, the way to submit it would be via

https://savannah.nongnu.org/bugs/?group=avr-libc

However, what you're talking here about is more like a request for
discussion, and that's fine with that mailing list.

> In ATmega324P you have to make sure the WDRF bit in MCUSR is clear
> before you try to disable the watchdog.

Well, this is something that needs to be handled at the application
level.  Depending on the application, it has to be handled very early
at startup (e.g. in situations where the application has much SRAM to
initialize, or a C++ application that runs expensive global
constructors), and it only has to be handled once.  For the latter
reason, we decided it's nothing you'd want to perform within each call
to wdt_disable() but rather documented some example code within the
prolog of the <avr/wdt.h> documentation about how an application might
want to handle that.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]