Re: STDIO DISPLAY ON BL4S200
"Tom Collins tom-lnEA/wrDJtNWk0Htik3J/[email protected] [rabbit-semi]" <[email protected]> Wed, 17 Aug 2016 14:16:02 -0700
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <[email protected]> |
If nothing's connected, it shouldn't matter that you're still sending output to STDIO. If you're using the Rabbit's built-in methods to redirect STDIO to a serial port, then I don't think there will be an easy way to conditionally send output. You'd probably have to create a wrapper for printf() that checks an I/O pin (CTS on the serial port?) before handing the parameters off to vprintf() using a va_list parameter. -Tom On Aug 17, 2016, at 10:36 AM, [email protected] [rabbit-semi] wrote: > Hello, > > > > I have a program including debug stdio screen display. I would like to have this feature, when stdio is connected, program will send some parameters to stdio, otherwise, no information is sent, do I have possibility to detect stdio (like DC10.72) connected by program? > > > > thanks >