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();我加了以后,程序干脆罢工了,向各位前辈求助,感激不禁!
有奖活动 | |
---|---|
【有奖活动——B站互动赢积分】活动开启啦! | |
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |