-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to install custom stdin/stdout handlers #55
Comments
I linked #61 to here as supporting POSIX read, write, close, fcntl transparently on both LWIP & UARTs (and someday probably filesystem operations) overlaps with this work as well. Something that was added to mainline LWIP (much newer than our revision) this year is the ability to add an offset to the fds that LWIP allocates, which makes it pretty straightforward to identify whether a file descriptor belongs to newlib or LWIP: |
This is a feature I need and if no-one else has started looking into this, I would like to. Regarding the LWIP Regarding an optional replacement of |
Also, when pulling the LWIP patch, we need to decide on ranges for the various file descriptors part from stdin/out/err: LWIP, SPIFFS, ... |
The Espressif SDK includes the option for an app to install a custom "putc" function if they want stdout to go somewhere other than UART0. Currently with the newlib stuff, etc, esp-open-rtos does not actually support this, but it would be a good thing to bring back (and shouldn't be too hard).
(As a side-note, it might also be interesting to add support for registering a stderr handler as well)
The text was updated successfully, but these errors were encountered: