|
I am using the SAM9G45 with Linux kernel 3.0.4. For our device we will be using all four USARTs in RS-485 mode. I was planning on setting up each port to have a ½ character delay (5 bits, or about 45 us at a baud rate of 115,200) on releasing RTS at the end of each message, and I was planning on doing this by setting the delay_rts_after_send value in the serial_rs485 structure. However, after digging through the atmel_serial.c source it looks like this doesn’t do what I thought. delay_rts_after_send sets the value of the Transmitter Timeguard register (US_TTGR), which sets a delay after *each character* that is transmitted. This is not what I had in mind. From looking around, I don’t see a straight forward way to set such a small delay without modifying the driver. Has anyone else done this before? Or, have you seen the USARTs control of RTS is tight enough that no extra control has been necessary in your application?
|