[En-Nut-Discussion] Storing Uservalues

Harald Kipp harald.kipp at egnite.de
Tue Sep 28 17:00:03 CEST 2004


>>
>>but where is wdt_reset and wdt_enable defined? which headers/libs do I
>>need?
>
>That's part of avr-libc and requires
>   #include <avr/wdt.h>

With ICCAVR use

void WdtEnable(void)
{
     WDTCR = 0x0F;
     asm("wdr");
}

void WdtDisable(void)
{
     WDTCR = 0x1F;
     WDTCR = 0x00;
}

Harald




More information about the En-Nut-Discussion mailing list