summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-04-01 00:45:32 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2013-04-01 00:45:32 +0000
commita6d41be08f676de48e12eaefb987ee7f0e3a786f (patch)
tree242daf2a20a91eb22e1cd776d6b335ced4149bcc /cli_classic.c
parent55b0c7bbc613647003c25acc2342d71d1a320d46 (diff)
downloadflashrom-a6d41be08f676de48e12eaefb987ee7f0e3a786f.tar.gz
serial.c: round baudrates to valid ones.
MSDN says: "The baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes." But it is not specified what happens for different values, so we round down to valid ones (or to the minimum of 9600) by reusing the existing struct baudentry sp_baudtable[] and the new function round_baud(). Do similarly on non-Windows where arbitrary values are not allowed anyway. Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1660 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
0 files changed, 0 insertions, 0 deletions