Forum Discussion
Altera_Forum
Honored Contributor
20 years agoFIFOed Avalon Uart
I have posted the FIFOed avalon UART in the Hardware Projects area. It is the standard UART that comes with Nios but it has additional features such as FIFOs and hardware CTS fifoed avalon uar...
Altera_Forum
Honored Contributor
14 years agoMy thoughts on this is that writing a driver for the UART isn't that difficult, so you might as well write one with the interfaces you need, and remove all the extra layers of abstraction between the driver itself and the stdio functions.
If your software 'scheduler' just calls every task in turn (adequate for a small embedded system), it may be appropriate to have a read_uart() function that is called where you now have fread() that directly recovers data from the fifo itself.