Change STDIO Port

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Change STDIO Port

1,676 次查看
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 项奖励
回复
2 回复数

1,524 次查看
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

1,524 次查看
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 项奖励
回复