Search found 13 matches

by marjonz
Mon Aug 13, 2018 10:14 pm
Forum: General Discussion
Topic: Change stdin/stdout during runtime
Replies: 9
Views: 13736

Re: Change stdin/stdout during runtime

I ended up creating a separate ring buffer inside my telnet module, and implemented my own tx_char/rx_char functions to register with UART that required the redirection. I then registered these new functions into the uart.c driver as the new tx and rx functions for the UART to use when doing the cha...
by marjonz
Sun Aug 12, 2018 9:12 pm
Forum: General Discussion
Topic: Change stdin/stdout during runtime
Replies: 9
Views: 13736

Re: Change stdin/stdout during runtime

Thanks for that, any documentation on the API funopen? This was as far a documentation as I got: FILE *_EXFUN(funopen,(const _PTR __cookie, int (*__readfn)(_PTR __cookie, char *__buf, _READ_WRITE_BUFSIZE_TYPE __n), int (*__writefn)(_PTR __cookie, const char *__buf, _READ_WRITE_BUFSIZE_TYPE __n), fpo...
by marjonz
Thu Aug 09, 2018 9:07 pm
Forum: General Discussion
Topic: Change stdin/stdout during runtime
Replies: 9
Views: 13736

Change stdin/stdout during runtime

Hi, First of all, I have tried reading the documentation: "To change the default stdin, stdout, stderr streams for new tasks, modify _GLOBAL_REENT->_stdin (_stdout, _stderr) before creating the task." but I think the information there is slightly different from what I am trying to achieve. I have tw...