Hi I'm working on watchdog but I'm bit confused It show me some errors. I'm using AVR(AVR128DB48).
Errors:
WDTO_4S' undeclared (first use in this function)
recipe for target 'main.o' failed
code:
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
int main(void)
{
wdt_enable(WDTO_4S);
while(1)
{
wdt_reset();
}
return(0);
}