Change STDIO Port

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change STDIO Port

1,058 Views
Mike_d
Contributor IV

Hi,

How do I move the stdio port after initialization?  I want to move it from ttye: to iodebug:

Thanks,

-Mike

0 Kudos
Reply
2 Replies

906 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Mike:

These settings is set in user_config.h

        #define BSP_DEFAULT_IO_CHANNEL                      "iodebug:"   
        #define BSP_DEFAULT_IO_CHANNEL_DEFINED

The io demo maybe helpful, please refer to it.

Freescale_MQX_4_2\mqx\examples\io

Regards

Daniel

906 Views
Mike_d
Contributor IV

Hi Daniel,

I'm using these calls but it seems to only change stdio for the calling task.  Is there a global replace?

_io_set_handle(IO_STDIN, console_dev);
_io_set_handle(IO_STDOUT, console_dev);
_io_set_handle(IO_STDERR, console_dev); 

Regards,

-Mike

0 Kudos
Reply