On Sun, 9 Mar 2008 15:52:34 +0100 Joerg Wunsch <[EMAIL PROTECTED]> wrote:
> As [EMAIL PROTECTED] 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. > Sorry, I didn't notice that. In a way it feels good to be wrong about things like this ;^) /Janne -- Tomorrow, this will be part of the unchangeable past but fortunately, it can still be changed today. _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-libc-dev