串口发回来个“函数错误!”这是咋回事啊??

2019-10-14 21:40发布

最近在做一个程序,需要用串口和触摸屏,但是调用了TP_Init();触摸屏初始化函数以后串口就不能发送了,所以我在发送之前又重新初始化了一下串口,结果串口能发送了,但是还发回来一个“函数错误!”这是咋回事啊?还有那个触摸屏初始化和串口冲突怎么解决?? [mw_shl_code=c,true]void Init_All(void) { Stm32_Clock_Init(9);//?????±???è?? delay_init(72); //???±?????? uart_init(72,9600); //?®??1?????? LCD_Init(); //?????????§ DS18B20_Init(); //DS18B20?????? // LCD_Display_Dir(1); //?è???á?????? LED_Init(); //LED?????? // Adc_Init(); //AD?????? // KEY_Init(); //°??ü?????? TP_Init(); //???????????? printf("sdsada "); usmart_dev.init(72);//usmart?????? mem_init(); //???????????????? exfuns_init(); //??fatfs?à??±????ê?????? f_mount(fs[0],"0:",1); //????SD?¨ f_mount(fs[1],"1:",1); //????FLASH. POINT_COLOR=RED; while(font_init()) //?ì?é×??? { LCD_ShowString(60,50,200,16,16,"Font Error!"); delay_ms(200); LCD_Fill(60,50,240,66,WHITE);//???????? delay_ms(200); } while(RTC_Init()) //RTC?????? ?????¨???????????? { LCD_ShowString(60,130,200,16,16,"RTC ERROR! "); delay_ms(800); LCD_ShowString(60,130,200,16,16,"RTC Trying..."); } } int main(void) { u8 p; u16 mmm; Init_All(); // GUI_qidong(); // TOUCH_DISP_shiyanbianhao(); // GUI_PersonInformation(); uart_init(72,9600); //?®??1?????? printf("sdsada "); while(1) { TOUCH_DISP_MENU(); } } [/mw_shl_code]
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。