Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUART IO
Hi: How could I open/set flags to an Altera UART device for being used in a non-blocking manner, e.g. a call to fgetc() or fread() returns inmediately if no characters are available? Thank...
Altera_Forum
Honored Contributor
20 years agoWith fcntl, I believe. It wasn't implemented in versions prior to 5.0, but it should be there now. When using it, keep in mind that your file descriptors for stdin, stdout, stderr are STDIN_FILENO, etc.
Cheers, - slacker