mirror of https://github.com/rusefi/rusefi.git
Reset_Cause_t for simulator
This commit is contained in:
parent
bdbebeef55
commit
026c9b34d9
|
@ -10,6 +10,20 @@ static void canHwInfo(CANDriver*) { return; }
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue