Simulator watchdog stub

This commit is contained in:
andreika-git 2023-11-25 01:38:17 +02:00 committed by rusefillc
parent 87e25187ee
commit 955ff6cea6
3 changed files with 6 additions and 2 deletions

View File

@ -89,6 +89,7 @@
#if ! EFI_UNIT_TEST
#include "init.h"
#include "mpu_util.h"
#endif /* EFI_UNIT_TEST */
#if EFI_PROD_CODE

View File

@ -138,8 +138,8 @@ void baseMCUInit(void) {
BOR_Set(BOR_Level_1); // one step above default value
// 200 ms is our default period for runMainLoop
setWatchdogResetPeriod(200);
// 100 ms is our empiric choice based on 2 * SLOW_CALLBACK_PERIOD_MS
setWatchdogResetPeriod(100);
startWatchdog();
}

View File

@ -8,3 +8,6 @@ static bool isValidCanRxPin(brain_pin_e) { return true; }
static bool allowFlashWhileRunning() { return true; }
static void causeHardFault() { }
static void startWatchdog(int = 300) { }
static void setWatchdogResetPeriod(int) { }
static void tryResetWatchdog() { }