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();我加了以后,程序干脆罢工了,向各位前辈求助,感激不禁!
有奖活动 | |
---|---|
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
vscode+cmake搭建雅特力AT32L021开发环境被打赏30分 | |
【换取逻辑分析仪】自制底板并驱动ArduinoNanoRP2040ConnectLCD扩展板被打赏47分 | |
【分享评测,赢取加热台】RISC-V GCC 内嵌汇编使用被打赏38分 | |
【换取逻辑分析仪】-基于ADI单片机MAX78000的简易MP3音乐播放器被打赏48分 | |
我想要一部加热台+树莓派PICO驱动AHT10被打赏38分 | |
【换取逻辑分析仪】-硬件SPI驱动OLED屏幕被打赏36分 | |
换逻辑分析仪+上下拉与多路选择器被打赏29分 | |
Let'sdo第3期任务合集被打赏50分 | |
换逻辑分析仪+Verilog三态门被打赏27分 | |
换逻辑分析仪+Verilog多输出门被打赏24分 |