Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/finsh/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ int finsh_system_init(void)
FINSH_THREAD_PRIORITY, 10);
#endif /* RT_USING_HEAP */

rt_sem_init(&(shell->rx_sem), "shrx", 0, 0);
rt_sem_init(&(shell->rx_sem), FINSH_SEM_NAME, 0, 0);
finsh_set_prompt_mode(1);

if (tid != NULL && result == RT_EOK)
Expand Down
2 changes: 2 additions & 0 deletions components/finsh/shell.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ int finsh_set_prompt(const char *prompt);
#define FINSH_THREAD_NAME "tshell"
#endif

#define FINSH_SEM_NAME "shrx"

enum input_stat
{
WAIT_NORMAL,
Expand Down