UART Issue

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

UART Issue

跳至解决方案
1,369 次查看
deepanrajanbara
Contributor IV

Hi,

I wanted to configure UART3 at 4Mbps.But When Configured the Speed is set for all the UART .Can anyone help me to configur UART3 alone.

File Path

/linux/drivers/tty/serial/serial_core.c

line number 2284

normal->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL;

normal->init_termios.c_ispeed = normal->init_termios.c_ospeed = 9600;

This option configures all the UART at 4Mbps.But wanted is UART3 only.

Thank you,

Deepanraj.A

1 解答
1,043 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Deepanraj

had you tried Linux shell:

  # stty -F /dev/ttymxc1 19200

serial port - How to set a custom baud rate on Linux? - Stack Overflow

Best regards

igor

在原帖中查看解决方案

1 回复
1,044 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Deepanraj

had you tried Linux shell:

  # stty -F /dev/ttymxc1 19200

serial port - How to set a custom baud rate on Linux? - Stack Overflow

Best regards

igor