Add newest shellmatta and include missing syscalls
This commit is contained in:
@@ -28,7 +28,7 @@ endif
|
|||||||
CFILES += adc-meas.c
|
CFILES += adc-meas.c
|
||||||
|
|
||||||
# Shellmatta
|
# Shellmatta
|
||||||
CFILES += shellmatta/src/shellmatta.c shellmatta/src/shellmatta_autocomplete.c shellmatta/src/shellmatta_escape.c shellmatta/src/shellmatta_history.c shellmatta/src/shellmatta_utils.c shell.c
|
CFILES += shellmatta/src/shellmatta.c shellmatta/src/shellmatta_autocomplete.c shellmatta/src/shellmatta_escape.c shellmatta/src/shellmatta_history.c shellmatta/src/shellmatta_utils.c shellmatta/src/shellmatta_opt.c shell.c
|
||||||
INCLUDEPATH += -Ishellmatta/api
|
INCLUDEPATH += -Ishellmatta/api
|
||||||
# DEFINES += -DSHELLMATTA_STRIP_PRINTF
|
# DEFINES += -DSHELLMATTA_STRIP_PRINTF
|
||||||
|
|
||||||
|
@@ -54,8 +54,8 @@ static shellmatta_retCode_t shell_cmd_ver(const shellmatta_handle_t handle,
|
|||||||
unique_id_get(&high_id, &mid_id, &low_id);
|
unique_id_get(&high_id, &mid_id, &low_id);
|
||||||
|
|
||||||
shellmatta_printf(handle, "Reflow Oven Controller Firmware " xstr(GIT_VER) "\r\n"
|
shellmatta_printf(handle, "Reflow Oven Controller Firmware " xstr(GIT_VER) "\r\n"
|
||||||
"Compiled: " __DATE__ " at " __TIME__ "\r\n"
|
"Compiled: " __DATE__ " at " __TIME__ "\r\n"
|
||||||
"Serial: %08X-%08X-%08X", high_id, mid_id, low_id);
|
"Serial: %08X-%08X-%08X", high_id, mid_id, low_id);
|
||||||
|
|
||||||
return SHELLMATTA_OK;
|
return SHELLMATTA_OK;
|
||||||
}
|
}
|
||||||
|
Submodule stm-firmware/shellmatta updated: 2921f9791b...6c76dfc7ae
@@ -91,3 +91,14 @@ int _write(int fd, const void *buf, int count)
|
|||||||
uart_send_array_with_dma(&shell_uart, (char *)buf, count);
|
uart_send_array_with_dma(&shell_uart, (char *)buf, count);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int _getpid()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int _kill(int pid)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user