USB host init : bsp_usb_io_init - Why there is a set up of CTS0 as output and RTS0 as input ?

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

USB host init : bsp_usb_io_init - Why there is a set up of CTS0 as output and RTS0 as input ?

2,114 Views
admin
Specialist II

Hi,

in my product I'm utilizing MQX 3.5.1 with USB Host + MFS. My uart0 is used as bus 485 and the port 2 of UA register is setted as output but when there is the usb init this port is setted from MQX as input ... there is a reason? Can I try again to set this port as output or I cause the bad functioning of USB stack?

 

 

Thanks,

Labels (1)
Tags (1)
0 Kudos
5 Replies

454 Views
JuroV
NXP Employee
NXP Employee

what board do you use?

0 Kudos

454 Views
admin
Specialist II

m52259demo board

0 Kudos

454 Views
JuroV
NXP Employee
NXP Employee

USB_VBUSD is muxed with RTS0 (detects whether VBUS is on or off when configured as a device).

0 Kudos

454 Views
admin
Specialist II

Thanks for the reply,

so if I understand well when I try to set this port as output  I don't  cause the bad functioning of USB stack because I'm using only the USB Host mode.

0 Kudos

454 Views
JuroV
NXP Employee
NXP Employee

Yes, you can set it as output if you are concerned only to USB device. Note, that there is still CTS0, that can be driven by UART or by USB module. In the host mode, this must be driven by USB, so it is not possible to drive CTS0 when USB is in host mode.

0 Kudos