接上篇
KEIL 添加 FinSH 源码


添加自己的函数实现rt_hw_console_getchar

修改为:

#include "C:\ti\mspm0_sdk_2_01_00_03\examples\nortos\LP_MSPM0G3507\driverlib\G3507_RTT\ti_msp_dl_config.h"//ti_msp_dl_config.h的绝对地址
RT_WEAK char rt_hw_console_getchar(void)
{
/* Note: the initial value of ch must < 0 */
int ch = -1;
if (DL_UART_getPendingInterrupt(UART_0_INST) == DL_UART_IIDX_RX)
ch = DL_UART_Main_receiveData(UART_0_INST);
return ch;
}
删除串口中断服务函数的内容

需要注意的是,串口中断服务函数的内容可以删除,但是函数一定要留着,要不然msh会出问题!!
实验现象

本篇文章到此结束
参考文章:
Nano 移植控制台/FinSH (rt-thread.org)

















![[数据集][目标检测]违规撑伞检测数据集VOC+YOLO格式341张2类别](https://i-blog.csdnimg.cn/direct/ba98364853404db4a8c2e042f9dbd3b4.png)

