Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHow to modify safely component library functions?
I have realized I need a special behaviour of my UART read/write functions. What I need is to modify uart access in blocking mode to add a timeout for the blocking 'read'. I do not min...
Altera_Forum
Honored Contributor
20 years agoI have found a simple way to modify library: copy altera_avalon_uart.c module from the original folder to my project folder, rename it to mycorp_avalon_uart.c. Now I can modify the receiver ISR in my local module to wake up the task AFTER checking the parity/frame error and job would be done. My code is linking this way, that functions from my local module overwrite library functions.
The problem is that I still have read() returning zero in my readuartwithtimeout sometimes when called just after receiving OS flag set notification. Cannot fully understand the reason behind this behaviour when inspecting the code... Any ideas?