From 530ce2d2de6f454792a5ee27aebbb7086f0b836d Mon Sep 17 00:00:00 2001 From: Andy_EE Date: Sun, 18 Jul 2021 14:53:58 +0000 Subject: [PATCH] update rt-thread-version/rt-thread-nano/finsh-port/an0045-finsh-port.md. --- .../rt-thread-nano/finsh-port/an0045-finsh-port.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rt-thread-version/rt-thread-nano/finsh-port/an0045-finsh-port.md b/rt-thread-version/rt-thread-nano/finsh-port/an0045-finsh-port.md index e726be7..2295f0a 100644 --- a/rt-thread-version/rt-thread-nano/finsh-port/an0045-finsh-port.md +++ b/rt-thread-version/rt-thread-nano/finsh-port/an0045-finsh-port.md @@ -177,7 +177,7 @@ void rt_hw_console_output(const char *str) ```c /* 实现 3:finsh 获取一个字符,系统函数,函数名不可更改 */ -char rt_hw_console_getchar(void); +char rt_hw_console_getchar(void); ``` - rt_hw_console_getchar():控制台获取一个字符,即在该函数中实现 uart 获取字符,可以使用查询方式获取(注意不要死等,在未获取到字符时,需要让出 CPU),推荐使用中断方式获取。 -- Gitee