Forum Discussion
ONors
New Contributor
4 years agoUART block until all data is sent
I need to synchronize sending some data on a UART to some other events. I therefore need to know when the UART have completed sending all data in the SW buffer. I am using the regular UART in Quartus...
- 4 years ago
Hi,
May be you can try to access these uart core control register bits for interrupt. Can refer to this manual (page 145).
Best Regards
Sheng
p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution and give Kudos.
ShengN_altera
Super Contributor
4 years agoHi,
Have you try with UART operating in blocking mode using fcntl() command.
https://stackoverflow.com/questions/914463/how-to-make-a-file-descriptor-blocking
https://code.activestate.com/recipes/577384-setting-a-file-descriptor-to-blocking-or-non-block/
Regards,
Sheng
p/s: If any answer from community or Intel support are helpful, please feel free to mark as solution and give Kudos.