Change STDIO Port

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Change STDIO Port

1,669件の閲覧回数
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,517件の閲覧回数
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,517件の閲覧回数
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 件の賞賛
返信