2011-06-15 04:52:53     Does BF518 support 2 stop bit serial?

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-15 04:52:53     Does BF518 support 2 stop bit serial?

lin cheng (CHINA)

Message: 101282   

 

I want to config the serial port 1 to :

 

word length:8 bit

 

stop bits :2bit

 

parity enable: diable

 

so ,I add some codes in the kernel,in bfin_serial_set_termios() , in linux-2.6.x/drivers/serial/bfin_5xx.c

 

 

     lcr |= 0x3;

    UART_PUT_LCR(uart, lcr);

    printk("lcr =0x%x\n",UART_GET_LCR(uart));

 

 

 

In users applications ,when I config serial port 1,console print messages as following:

 

lcr =0x1b

 

Still its 1 stop bit config.

 

Does BF518 support 2 stop bits ?

TranslateQuoteReplyEditDelete

 

 

2011-06-15 05:51:00     Re: Does BF518 support 2 stop bit serial?

Sonic Zhang (CHINA)

Message: 101283   

 

Don't change the serial driver.

 

Set UART flag by "stty cstopb".

Attachments

    Outcomes