Compare commits
2 Commits
3df0631ffc
...
77c88c69cd
Author | SHA1 | Date | |
---|---|---|---|
77c88c69cd | |||
e85a85d9c3 |
@@ -64,8 +64,8 @@ startup.
|
|||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
Entry Byte 1 (LSB) Byte 2 Byte 3 Byte 4 (MSB)
|
Entry Byte 1 (LSB) Byte 2 Byte 3 Byte 4 (MSB)
|
||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
Weight override ``0xA2`` ``Weight`` ``Flag Number`` (LSB) ``Flag number`` (MSB) (always ``0``)
|
Weight override ``0xA2`` ``Weight`` ``Flag Number`` reserved don't care (written as 0xAA)
|
||||||
Persistance override ``0x8E`` ``Persistance`` ``Flag Number`` (LSB) ``Flag number`` (MSB) (always ``0``)
|
Persistance override ``0x8E`` ``Persistance`` ``Flag Number`` reserved don't care (written as 0xBB)
|
||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
|
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ It is replaced with a valid entry. If the error memory contains a word, that is
|
|||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
Entry Byte 1 (LSB) Byte 2 Byte 3 Byte 4 (MSB)
|
Entry Byte 1 (LSB) Byte 2 Byte 3 Byte 4 (MSB)
|
||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
Error Flag ``0x51`` ``0x00`` ``Flag Number`` (LSB) ``Flag number`` (MSB) (always ``0``)
|
Error Flag ``0x51`` ``Flag Number`` ``COUNTER 7:0`` ``COUNTER 15:8``
|
||||||
NOP Entry ``0x22`` ``0x12`` ``0xAA`` ``0xC1``
|
NOP Entry ``0x22`` ``0x12`` ``0xAA`` ``0xC1``
|
||||||
======================= ============ ================= ===================== =====================================
|
======================= ============ ================= ===================== =====================================
|
||||||
|
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
#include <reflow-controller/safety/safety-controller.h>
|
#include <reflow-controller/safety/safety-controller.h>
|
||||||
#include <reflow-controller/settings/settings.h>
|
#include <reflow-controller/settings/settings.h>
|
||||||
#include <reflow-controller/button.h>
|
#include <reflow-controller/button.h>
|
||||||
|
#include <reflow-controller/safety/fault.h>
|
||||||
|
|
||||||
#ifndef GIT_VER
|
#ifndef GIT_VER
|
||||||
#define GIT_VER "VERSION NOT SET"
|
#define GIT_VER "VERSION NOT SET"
|
||||||
@@ -501,6 +502,19 @@ static shellmatta_retCode_t shell_cmd_ui_emulation(const shellmatta_handle_t han
|
|||||||
return SHELLMATTA_CONTINUE;
|
return SHELLMATTA_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static shellmatta_retCode_t shell_cmd_panic(const shellmatta_handle_t handle, const char *arguments,
|
||||||
|
uint32_t length)
|
||||||
|
|
||||||
|
{
|
||||||
|
(void)handle;
|
||||||
|
(void)arguments;
|
||||||
|
(void)length;
|
||||||
|
|
||||||
|
panic_mode();
|
||||||
|
|
||||||
|
return SHELLMATTA_OK;
|
||||||
|
}
|
||||||
|
|
||||||
//typedef struct shellmatta_cmd
|
//typedef struct shellmatta_cmd
|
||||||
//{
|
//{
|
||||||
// char *cmd; /**< command name */
|
// char *cmd; /**< command name */
|
||||||
@@ -510,7 +524,7 @@ static shellmatta_retCode_t shell_cmd_ui_emulation(const shellmatta_handle_t han
|
|||||||
// shellmatta_cmdFct_t cmdFct; /**< pointer to the cmd callack function */
|
// shellmatta_cmdFct_t cmdFct; /**< pointer to the cmd callack function */
|
||||||
// struct shellmatta_cmd *next; /**< pointer to next command or NULL */
|
// struct shellmatta_cmd *next; /**< pointer to next command or NULL */
|
||||||
//} shellmatta_cmd_t;
|
//} shellmatta_cmd_t;
|
||||||
static shellmatta_cmd_t cmd[16] = {
|
static shellmatta_cmd_t cmd[17] = {
|
||||||
{
|
{
|
||||||
.cmd = "version",
|
.cmd = "version",
|
||||||
.cmdAlias = "ver",
|
.cmdAlias = "ver",
|
||||||
@@ -637,6 +651,14 @@ static shellmatta_cmd_t cmd[16] = {
|
|||||||
.helpText = "",
|
.helpText = "",
|
||||||
.usageText = "",
|
.usageText = "",
|
||||||
.cmdFct = shell_cmd_ui_emulation,
|
.cmdFct = shell_cmd_ui_emulation,
|
||||||
|
.next = &cmd[16],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.cmd = "panic",
|
||||||
|
.cmdAlias = NULL,
|
||||||
|
.helpText = "Panic Mode!",
|
||||||
|
.usageText = "",
|
||||||
|
.cmdFct = shell_cmd_panic,
|
||||||
.next = NULL,
|
.next = NULL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user