Forum Discussion
Altera_Forum
Honored Contributor
14 years agousleep() issue
Hello. In this code: fprintf(lcd_name, string1);
usleep(2000000);
fprintf(lcd_name, string2); second string should appear on LCD after 2 sec. But it appears without any delays! It's interes...
Altera_Forum
Honored Contributor
14 years agoOr use a UART with a large enough hardware tx fifo to cover normal lines of debug output and then either discard or spin inside the 'transmit character' function.
Whatever you do, at some point the decision has to be made whether to spin/sleep/discard when the tx buffer is full, having a single hardware fifo and very simple software might actually use the least resource!