diff --git a/APP_Framework/Applications/main.c b/APP_Framework/Applications/main.c index b9d1a8d62..6cd956945 100644 --- a/APP_Framework/Applications/main.c +++ b/APP_Framework/Applications/main.c @@ -17,10 +17,11 @@ extern int FrameworkInit(); extern void ApplicationOtaTaskInit(void); -extern void Ch4As830(void); +extern void ShowMemory(void); +extern long ShowTask(void); int main(void) { - printf("Hello, world!\n"); + printf("Hello, world! Running on gapuino board.\n"); FrameworkInit(); #ifdef APPLICATION_OTA ApplicationOtaTaskInit(); diff --git a/Ubiquitous/XiUOS/board/gapuino/board.c b/Ubiquitous/XiUOS/board/gapuino/board.c index d484bd3da..7b16b53c6 100755 --- a/Ubiquitous/XiUOS/board/gapuino/board.c +++ b/Ubiquitous/XiUOS/board/gapuino/board.c @@ -68,7 +68,8 @@ void InitBoardHardware(void) timer_initialize(); KPrintf("memory address range: [0x%08x - 0x%08x], size: %d\n", (x_ubase) MEMORY_START_ADDRESS, (x_ubase) MEMORY_END_ADDRESS, GAP8_SRAM_SIZE); /* initialize memory system */ - KPrintf("gap8 cluster id: [0x%x], _procid: [0x%x]\n", _clusterid(),_procid()); + KPrintf("gap8 cluster id: [0x%x], _procid: [0x%x]\n", _clusterid(),_procid()); + KPrintf("board init done.\n"); KPrintf("start kernel...\n"); return; diff --git a/Ubiquitous/XiUOS/tool/shell/letter-shell/shell.c b/Ubiquitous/XiUOS/tool/shell/letter-shell/shell.c index dd14df382..564d8325e 100644 --- a/Ubiquitous/XiUOS/tool/shell/letter-shell/shell.c +++ b/Ubiquitous/XiUOS/tool/shell/letter-shell/shell.c @@ -155,6 +155,7 @@ ShellCommand* shellSeekCommand(Shell *shell, */ void shellInit(Shell *shell, char *buffer, unsigned short size) { + shell->parser.length = 0; shell->parser.cursor = 0; shell->history.offset = 0; @@ -187,6 +188,7 @@ void shellInit(Shell *shell, char *buffer, unsigned short size) SHELL_DEFAULT_USER, shell->commandList.base, 0)); + shellWriteCommandLine(shell, 1); } @@ -863,7 +865,7 @@ ShellCommand* shellSeekCommand(Shell *shell, name = shellGetCommandName(&base[i]); if (!compareLength) { - if (strcmp(cmd, name) == 0) + if (strncmp(cmd, name, strlen(cmd)) == 0) { return &base[i]; }