watchdog stuff

This commit is contained in:
hg
2015-06-10 21:07:58 +02:00
parent 659193bed2
commit b4788c257a
6 changed files with 26 additions and 48 deletions

View File

@ -19,14 +19,6 @@ void resetDevice() {
}
}
void alarmOn() {
}
void alarmOff() {
}
void watchdogReset() {
static uint32_t last = 0;
static uint16_t maxTmroutl = 0;
@ -58,7 +50,7 @@ extern "C" {
WDOG_UNLOCK = WDOG_UNLOCK_SEQ2;
// one minute
WDOG_TOVALL = 0xea60;
WDOG_TOVALL = 20000;
WDOG_TOVALH = 0;
WDOG_PRESC = 0;