|
|
|
@ -54,7 +54,6 @@ |
|
|
|
#if PL_CONFIG_HAS_ACCEL |
|
|
|
#if PL_CONFIG_HAS_ACCEL |
|
|
|
#include "McuFXOS8700.h" |
|
|
|
#include "McuFXOS8700.h" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#include "McuLog.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const McuShell_ParseCommandCallback CmdParserTable[] = |
|
|
|
static const McuShell_ParseCommandCallback CmdParserTable[] = |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -112,7 +111,6 @@ static const McuShell_ParseCommandCallback CmdParserTable[] = |
|
|
|
#if PL_CONFIG_HAS_ACCEL |
|
|
|
#if PL_CONFIG_HAS_ACCEL |
|
|
|
McuFXOS8700_ParseCommand, |
|
|
|
McuFXOS8700_ParseCommand, |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
McuLog_ParseCommand, |
|
|
|
|
|
|
|
NULL /* Sentinel */ |
|
|
|
NULL /* Sentinel */ |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -195,7 +193,7 @@ static void ShellTask(void *pv) { |
|
|
|
unsigned int i; |
|
|
|
unsigned int i; |
|
|
|
|
|
|
|
|
|
|
|
(void)pv; /* not used */ |
|
|
|
(void)pv; /* not used */ |
|
|
|
McuLog_info("Shell task started.\r\n"); |
|
|
|
McuShell_SendStr((uint8_t*)"Shell task started.\r\n", McuShell_GetStdio()->stdOut); |
|
|
|
for(i=0;i<sizeof(ios)/sizeof(ios[0]);i++) { |
|
|
|
for(i=0;i<sizeof(ios)/sizeof(ios[0]);i++) { |
|
|
|
ios[i].buf[0] = '\0'; |
|
|
|
ios[i].buf[0] = '\0'; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -224,16 +222,6 @@ void SHELL_Init(void) { |
|
|
|
#if PL_CONFIG_USE_ESP32 |
|
|
|
#if PL_CONFIG_USE_ESP32 |
|
|
|
McuESP32_SetRxFromESPStdio(&ESP_ToShellStdio); /* copy ESP UART to shell console */ |
|
|
|
McuESP32_SetRxFromESPStdio(&ESP_ToShellStdio); /* copy ESP UART to shell console */ |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
#if McuLog_CONFIG_IS_ENABLED |
|
|
|
|
|
|
|
#if PL_CONFIG_USE_RTT && PL_CONFIG_USE_UART_SHELL && McuLog_CONFIG_NOF_CONSOLE_LOGGER==2 /* both */ |
|
|
|
|
|
|
|
McuLog_set_console(McuRTT_GetStdio(), 0); |
|
|
|
|
|
|
|
McuLog_set_console(&McuShellUart_stdio, 1); |
|
|
|
|
|
|
|
#elif PL_CONFIG_USE_RTT /* only RTT */ |
|
|
|
|
|
|
|
McuLog_set_console(McuRTT_GetStdio(), 0); |
|
|
|
|
|
|
|
#elif PL_CONFIG_USE_UART_SHELL /* only UART */ |
|
|
|
|
|
|
|
McuLog_set_console(&McuShellUart_stdio, 0); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void SHELL_Deinit(void) {} |
|
|
|
void SHELL_Deinit(void) {} |
|
|
|
|