Home
last modified time | relevance | path

Searched refs:history_count (Results 1 – 2 of 2) sorted by relevance

/components/finsh/
A Dshell.c423 if (shell->history_count >= FINSH_HISTORY_LINES) in shell_push_history()
439 shell->history_count = FINSH_HISTORY_LINES; in shell_push_history()
445 …if (shell->history_count == 0 || memcmp(&shell->cmd_history[shell->history_count - 1], shell->line… in shell_push_history()
447 shell->current_history = shell->history_count; in shell_push_history()
448 rt_memset(&shell->cmd_history[shell->history_count][0], 0, FINSH_CMD_SIZE); in shell_push_history()
449 … rt_memcpy(&shell->cmd_history[shell->history_count][0], shell->line, shell->line_position); in shell_push_history()
452 shell->history_count ++; in shell_push_history()
456 shell->current_history = shell->history_count; in shell_push_history()
605 if (shell->current_history < shell->history_count - 1) in finsh_thread_entry()
610 if (shell->history_count != 0) in finsh_thread_entry()
[all …]
A Dshell.h72 rt_uint16_t history_count; member

Completed in 10 milliseconds