We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/**
*/ void shellTask(void *param) { Shell *shell = (Shell *)param; char data; #if SHELL_TASK_WHILE == 1 while(1) { #endif if (shell->read && shell->read(&data, 1) == 1) { shellHandler(shell, data); } #if SHELL_TASK_WHILE == 1 } #endif } 你这个线程里面没有延时也没有等待吗?该线程是会把CPU吃干净哟?
The text was updated successfully, but these errors were encountered:
实现的 read 接口要做阻塞和线程调度,可以看下 demo 里面 stm32 freertos 的例程
Sorry, something went wrong.
No branches or pull requests
/**
*/
void shellTask(void *param)
{
Shell *shell = (Shell *)param;
char data;
#if SHELL_TASK_WHILE == 1
while(1)
{
#endif
if (shell->read && shell->read(&data, 1) == 1)
{
shellHandler(shell, data);
}
#if SHELL_TASK_WHILE == 1
}
#endif
}
你这个线程里面没有延时也没有等待吗?该线程是会把CPU吃干净哟?
The text was updated successfully, but these errors were encountered: