Added info about Watchdog Timer.

This commit is contained in:
skarg
2009-08-19 20:45:09 +00:00
parent 2417a843d2
commit e513ffa412
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -58,6 +58,6 @@ void init(
DDRD = 0; DDRD = 0;
PORTD = 0; PORTD = 0;
/* Configure the watchdog timer - Disabled for testing */ /* Configure the watchdog timer - Disabled for testing */
BIT_CLEAR(MCUSR, WDRF); /* wdt_enable(WDTO_2S); */
WDTCSR = 0; wdt_disable();
} }
+1
View File
@@ -231,6 +231,7 @@ int main(
/* Enable global interrupts */ /* Enable global interrupts */
__enable_interrupt(); __enable_interrupt();
for (;;) { for (;;) {
wdt_reset();
input_task(); input_task();
bacnet_task(); bacnet_task();
led_task(); led_task();