watchdog stuff
This commit is contained in:
10
reset.cpp
10
reset.cpp
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user