test hard_fault command
This commit is contained in:
parent
aa7265a5bf
commit
08b6c3e25a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue