I've inherited some code which, to initialise some hardware, writes a few bytes and then waits for a return. To do this it calls the _write
function from io.h
. From my testing, it looks like it's locking up at that point. So my questions are as follows:
- Is that function a blocking function?
- Is there a way of setting a timeout?
- Is there an alternative non-blocking function I could use instead?