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 agoHi:
At this very moment we are still using NIOS-II with Quartus II-4.2. When looking at the UART HAL driver source code we see that a check for the flag bit O_NONBLOCK is made, so the question is how could I set this flag on. For opening the device I use fopen(). It seems to be around a unix style open() function with parameters for mode and flags. But it didnt work for me. Thanks,