rusefi/simulator/simulator/mpu_util.h

36 lines
1.0 KiB
C

#pragma once
#if HAL_USE_CAN
CANDriver* detectCanDevice(brain_pin_e pinRx, brain_pin_e pinTx);
static bool isValidCanTxPin(brain_pin_e) { return true; }
static bool isValidCanRxPin(brain_pin_e) { return true; }
static void canHwInfo(CANDriver*) { return; }
#endif // HAL_USE_CAN
static bool allowFlashWhileRunning() { return true; }
static void causeHardFault() { }
// Reset Cause
typedef enum {
Reset_Cause_Unknown = 0,
Reset_Cause_IWatchdog, // Independent hardware watchdog (we use it)
Reset_Cause_WWatchdog, // Window watchdog
Reset_Cause_Soft_Reset, // NVIC_SystemReset or by debugger
Reset_Cause_NRST_Pin, // Reset from NRST pin
Reset_Cause_Illegal_Mode, // Reset after illegal Stop, Standby or Shutdown mode entry
Reset_Cause_BOR, // BOR reset
Reset_Cause_Firewall, // Firewall reset
Reset_Cause_Option_Byte, // Option byte load reset
} Reset_Cause_t;
static Reset_Cause_t getMCUResetCause() {
return Reset_Cause_Unknown;
}
static const char *getMCUResetCause(Reset_Cause_t) {
return "Unknown";
}
#include "sim_watchdog.h"