test hard_fault command

This commit is contained in:
andreika-git 2023-11-14 22:45:08 +02:00 committed by rusefillc
parent aa7265a5bf
commit 08b6c3e25a
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,7 @@
#include "eficonsole.h"
#include "console_io.h"
#include "mpu_util.h"
#include "svnversion.h"
static void testCritical() {
@ -36,6 +37,10 @@ static void myerror() {
firmwareError(ObdCode::CUSTOM_ERR_TEST_ERROR, "firmwareError: %d", getRusEfiVersion());
}
static void testHardFault() {
causeHardFault();
}
static void sayHello() {
efiPrintf(PROTOCOL_HELLO_PREFIX " rusEFI LLC (c) 2012-2023. All rights reserved.");
efiPrintf(PROTOCOL_HELLO_PREFIX " rusEFI v%d@%s", getRusEfiVersion(), VCS_VERSION);
@ -244,5 +249,6 @@ void initializeConsole() {
addConsoleAction("critical", testCritical);
addConsoleAction("error", myerror);
addConsoleAction("hard_fault", testHardFault);
addConsoleAction("threadsinfo", cmd_threads);
}