TLE8888 watchdog #917

still no luck. responses 0x85c and 0xa5c
This commit is contained in:
rusEfi 2020-02-11 00:54:15 -05:00
parent 41f274b73c
commit 0c2d00b455
2 changed files with 3 additions and 2 deletions

View File

@ -413,7 +413,8 @@ void watchdogLogic(struct tle8888_priv *chip) {
* next SPI transmission (for not existing addresses or wrong access mode
* the data is always '0' */
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);
lastFunctionWatchdogTimeNt = nowNt;
}

View File

@ -20,7 +20,7 @@
#define TLE8888_DIRECT_OUTPUTS (4 + 4 + TLE8888_DIRECT_MISC)
// 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
#define Window_watchdog_close_window_time_ms 100.8