reset cause stub for other archs

This commit is contained in:
andreika-git 2023-12-13 00:03:50 +02:00 committed by rusefillc
parent 60a2aae2e1
commit 65b9ee94aa
4 changed files with 32 additions and 0 deletions

View File

@ -183,4 +183,12 @@ EXTERNC int getRemainingStack(thread_t *otp) {
__attribute__((weak)) void boardPrepareForStandby() {
}
Reset_Cause_t getMCUResetCause() {
return Reset_Cause_Unknown;
}
const char *getMCUResetCause(Reset_Cause_t) {
return "Unknown";
}
#endif /* EFI_PROD_CODE */

View File

@ -309,4 +309,12 @@ adcsample_t getFastAdc(FastAdcToken token) {
return 0;
}
Reset_Cause_t getMCUResetCause() {
return Reset_Cause_Unknown;
}
const char *getMCUResetCause(Reset_Cause_t) {
return "Unknown";
}
#endif /* EFI_PROD_CODE */

View File

@ -315,4 +315,12 @@ adcsample_t getFastAdc(FastAdcToken token) {
return 0;
}
Reset_Cause_t getMCUResetCause() {
return Reset_Cause_Unknown;
}
const char *getMCUResetCause(Reset_Cause_t) {
return "Unknown";
}
#endif /* EFI_PROD_CODE */

View File

@ -10,4 +10,12 @@ static void canHwInfo(CANDriver*) { return; }
static bool allowFlashWhileRunning() { return true; }
static void causeHardFault() { }
static Reset_Cause_t getMCUResetCause() {
return Reset_Cause_Unknown;
}
static const char *getMCUResetCause(Reset_Cause_t) {
return "Unknown";
}
#include "sim_watchdog.h"