diff --git a/CommandLines.c b/CommandLines.c index c49472f..5724e45 100644 --- a/CommandLines.c +++ b/CommandLines.c @@ -36,9 +36,9 @@ void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSe CliCmd_InitStatic(&env->cmd, cliVirtualPortIn_Io, cliVirtualPortOut_Io, env->mem.cmdRxLine); CliRedirectionTable_InitStatic(&env->redirectTable, env->mem.commandPrefixes); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", (cliCall) CliCmd_baseCommandHelp, NULL); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", (cliCall) vTaskGetRunTime, NULL); - CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", (cliCall) CliCmd_baseCommandReboot, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "help", CliCmd_baseCommandHelp, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "mem", vTaskGetRunTime, NULL); + CliRedirectionTable_RecAddStatic(&env->redirectTable, "reboot", CliCmd_baseCommandReboot, NULL); InitThreadAtrStatic(&env->thread.attr, "CommandLine", env->thread.controlBlock, env->thread.stack, osPriorityNormal); diff --git a/CommandLines.h b/CommandLines.h index 7814d43..8993dbe 100644 --- a/CommandLines.h +++ b/CommandLines.h @@ -30,7 +30,7 @@ typedef struct { } tCommandLine; -void vTaskGetRunTime(void *env, tCliCmd *cli); +int32_t vTaskGetRunTime(void *env, tCliCmd *cli); void CommandLine_Init(tCommandLine *env, tSerialPortIO *cliVirtualPortIn_Io, tSerialPortIO *cliVirtualPortOut_Io); void CommandLine_StartThread(tCommandLine *env);