[Top][All Lists]

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

Re: [avr-libc-dev] Disabling the Watchdog

From: Colin O'Flynn
Subject: Re: [avr-libc-dev] Disabling the Watchdog
Date: Wed, 29 Jan 2003 06:06:16 -0800 (PST)


I too tried to get the code to make a hex file that
lacks the WDR instruction, and failed.

I tried both the SIGNAL() and INTERRUPT(), as well as
Os, O0, and O3.

In all cases the WDR instruction was present in the
interrupt routine.

As well the only writes to 0x21 (33 dec) was directly
preccedded by a WDR...

   +00000046: 95A8      WDR
   +00000047: BD81      OUT     0x21,R24
   +00000048: BE0F      OUT     0x3F,R0
   +00000049: BD21      OUT     0x21,R18


--- Joerg Wunsch <address@hidden> wrote:
> As Bill Rochat wrote:
> > The latest (and prior versions?) compiler
> generates the following
> > code to disable the watchdog --- wdt_disable()---:
> > Outside interrupt routines:
> ...
> > Inside interrupt routines:
> As i already replied to you in the AVRfreaks forum,
> i cannot reproduce
> this.  Neither can i by creating a simple test file,
> nor by examining
> the code in <avr/wdt.h> which consists of simple
> inline asm that could
> not even possibly know whether it's going to be
> compiled inside an
> interrupt routine or not.
> So please, send us something we could reproduce. 
> Right now, all we've
> got is an unverifiable assertion only, sorry.
> -- 
> J"org Wunsch                                         Unix support engineer
> address@hidden       
> http://www.interface-systems.de/~j/
> _______________________________________________
> AVR-libc-dev mailing list
> address@hidden
> http://mail.nongnu.org/mailman/listinfo/avr-libc-dev

reply via email to

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