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();我加了以后,程序干脆罢工了,向各位前辈求助,感激不禁!
有奖活动 | |
---|---|
【有奖活动】智能可穿戴设备AR/VR如何引领科技新潮流! | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
【有奖活动】震撼来袭!这场直播将直击工程师的心灵! | |
“我想要一部加热台”活动,不花钱赢取开发好工具!活动开始了哦 | |
【有奖活动】伙伴们:您的“需求”解决了吗? |
打赏帖 | |
---|---|
如何实现基于NXPiMX.RT1021的BH1730采集被打赏50分 | |
【换取手持数字示波器】AHT10温度检测分享被打赏40分 | |
【换取手持数字示波器】ACM32F070开发板点亮LCD屏和触控按键,串口,ADC被打赏40分 | |
【换取手持数字示波器】ACM32F070LCD屏和触控按键功驱动蜂鸣器分享被打赏40分 | |
【换取手持数字示波器】国民技术PWM功能知识分享被打赏40分 | |
【换取手持数字示波器】放大器运放知识分享被打赏40分 | |
【分享评测,赢取加热台】+开关电源AC输入知识分享被打赏30分 | |
【换取手持数字示波器】N32G430点亮数码管与串口打印、ADC被打赏40分 | |
老胖子聊电路--分析一个反馈电路被打赏50分 | |
【换取手持数字示波器】+点亮WS2812RGB灯被打赏50分 |