ARM菜鸟求助了~~~~
Uart_Printf("\nPlaease enter current year:\n");
ucGetYear = Uart_GetIntNum();
Uart_Printf("\nCurrent year is %d", ucGetYear+2000);
Uart_Printf("\nPlease enter current month:\n");
ucGetMonth = Uart_GetIntNum();
Uart_Printf("\nCurrent month is %d", ucGetMonth);
Uart_Printf("\nPlaease enter current day:\n");
ucGetDay = Uart_GetIntNum();
Uart_Printf("\nCurrent day is %d", ucGetDay);
Uart_Printf("\nPlaease enter current date:\n");
ucGetDay = Uart_GetIntNum();
Uart_Printf("\nCurrent date is %d", ucGetDay);
Uart_Printf("\nPlaease enter current hour:\n");
ucGetHour = Uart_GetIntNum();
Uart_Printf("\nCurrent day is %d", ucGetHour);
Uart_Printf("\nPlaease enter current minute:\n");
ucGetMin = Uart_GetIntNum();
Uart_Printf("\nCurrent day is %d", ucGetMin);
Uart_Printf("\nPlaease enter current second: \n");
ucGetSec = Uart_GetIntNum();
Uart_Printf("\nCurrent day is %d", ucGetSec);
在程序运行的时候,串口总是没有正确接受键盘输入的数字,在google搜索了一下,说是要在Main()开始的时候加__rt_lib_init();我加了以后,程序干脆罢工了,向各位前辈求助,感激不禁!
打赏帖 | |
---|---|
汽车电子中巡航控制系统的使用被打赏10分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 | |
分享电子控制安全气囊计算机知识点被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【OZONE】使用方法总结被打赏20分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K314】芯片启动流程分析被打赏40分 | |
【分享开发笔记,赚取电动螺丝刀】【S32K146】S32DS RTD 驱动环境搭建被打赏12分 | |
【分享开发笔记,赚取电动螺丝刀】【IAR】libc标注库time相关库函数使用被打赏23分 | |
LP‑MSPM0L1306开发版试用结果被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】【LP-MSPM0L1306】适配 RT-Thread Nano被打赏23分 |