Forum Discussion
Altera_Forum
Honored Contributor
20 years agoProblem detecting data no Serial Port
Hello, I´ve built the folowing code: while (1) { fprintf(fp, "%c", B_PACK); for (j = 0; j < 10000000; j++) { //testadado = (testadado | tembyte()); ...
Altera_Forum
Honored Contributor
20 years agoI got that.
And is there a way to detect if there is data on serial using High level functions? Because if I use getc to read a data the program stops until the data comes. So I would like to be sure that there is data, and then use the getc(). Thank you for replying! =]