parent
41f274b73c
commit
0c2d00b455
|
@ -413,7 +413,8 @@ void watchdogLogic(struct tle8888_priv *chip) {
|
||||||
* next SPI transmission (for not existing addresses or wrong access mode
|
* next SPI transmission (for not existing addresses or wrong access mode
|
||||||
* the data is always '0' */
|
* the data is always '0' */
|
||||||
tle8888_spi_rw(chip, CMD_FWDStat1, &maybeFirstResponse);
|
tle8888_spi_rw(chip, CMD_FWDStat1, &maybeFirstResponse);
|
||||||
tle8888_spi_rw(chip, CMD_FWDStat1, &functionWDrx);
|
// here we get response of the 'FWDStat1' above
|
||||||
|
tle8888_spi_rw(chip, CMD_WdDiag, &functionWDrx);
|
||||||
handleFWDStat1(chip, (functionWDrx & 0xff) >> 1, (functionWDrx >> 8) & 0xff);
|
handleFWDStat1(chip, (functionWDrx & 0xff) >> 1, (functionWDrx >> 8) & 0xff);
|
||||||
lastFunctionWatchdogTimeNt = nowNt;
|
lastFunctionWatchdogTimeNt = nowNt;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#define TLE8888_DIRECT_OUTPUTS (4 + 4 + TLE8888_DIRECT_MISC)
|
#define TLE8888_DIRECT_OUTPUTS (4 + 4 + TLE8888_DIRECT_MISC)
|
||||||
|
|
||||||
// Looks like reset value is 113.6ms? 1.6ms * 0x47
|
// Looks like reset value is 113.6ms? 1.6ms * 0x47
|
||||||
#define Functional_Watchdog_PERIOD_MS 90
|
#define Functional_Watchdog_PERIOD_MS 20
|
||||||
|
|
||||||
// we can change this value on TLE8888QK but we probably do not have a reason to change
|
// we can change this value on TLE8888QK but we probably do not have a reason to change
|
||||||
#define Window_watchdog_close_window_time_ms 100.8
|
#define Window_watchdog_close_window_time_ms 100.8
|
||||||
|
|
Loading…
Reference in New Issue