how to set baud rate 250000 for uart on linux?

misterdon
I'm using C++ Qt to programming send data by serial port,i want to set baud
rate 250000 but i can't do it beacause don't have B250000 in terminos.h
file..
How to set baud rate 250000...help me,please...!

Juergen Beisert
Take a look into the "setserial" tool, keyword is "spd_cust" and "divisor"

misterdon
How to build setserial source for arm?

julio menezes
misterdon,

under GNU/Linux you could run stty. ( rc.local )

take a look: 

man stty

or

http://www.gnu.org/software/coreutils/manual/html_node/stty-invocation.h...

[]s
julio