Example of stdin retargeting
Asked by
Jonathan Farmer
I'm having trouble with retargeting stdin to a UART. The stdout retargeting is working properly, I have an implementation of _write() the pushes all bytes to the UART, however I cannot seem to get _read() to function properly.
Is there a working example of a _read() implementation somewhere? What are the details of the _read() interface? What length value must be returned? Is it required to terminate with newline? Carriage return? Null terminator?
Thanks,
JF
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jonathan Farmer for more information if necessary.
To post a message you must log in.