Added info about Watchdog Timer.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user