[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-libc-dev] RE: [bug #22276] wdt_reset fails with devices with large
From: |
Weddington, Eric |
Subject: |
[avr-libc-dev] RE: [bug #22276] wdt_reset fails with devices with large WDTCSR addresses |
Date: |
Wed, 19 Mar 2008 23:31:25 -0600 |
> -----Original Message-----
> From: CurtVM [mailto:address@hidden
> Sent: Wednesday, March 19, 2008 7:56 PM
> To: Weddington, Eric; Dean Camera; CurtVM; address@hidden
> Subject: [bug #22276] wdt_reset fails with devices with large
> WDTCSR addresses
>
>
> Follow-up Comment #4, bug #22276 (project avr-libc):
>
> The changes you made will not work unless you get
> '_WDT_CONTROL_REG' into
> something you can test in this line-
>
> #if (_WDT_CONTROL_REG > 0x5F)
Duh. Of course. Thanks for pointing this out.
> which is why I surrounded that with temporarily redefining
> _MMIO_BYTE, so
> that test could be made.
>
> Maybe there is a better way to end up with a number that can
> be tested, I
> don't know.
See attached wdt.h. Would this work?