怎么才能访问RS232啊,我试过了 char* msg="Dectected the character 't'.\n"; FILE* fp; char prompt=0; fp=fopen("/dev/uart_0","r+"); if(fp) { while(prompt!='v') { prompt=getc(fp); if(prompt=='t') { fwrite(msg,strlen(msg),1,fp); } } fprintf(fp,"Closing the UART file.\n"); fclose(fp); } 也试过用寄存器来访问 还试过在属性中将Jtag-uart修改为Uart,都不行啊我真的要崩溃了,到后来干脆连IDE都不显示了 哪位大哥救救偶啊,谢谢啦 |