1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-04-26 06:32:34 +02:00

Initialize sp_fd and fix baud rate setting on windows

Corresponding to flashrom svn r1669.

Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
Stefan Tauner 2013-04-13 00:29:30 +00:00
parent 363fd7e827
commit e33c40eb7d

View File

@ -39,7 +39,7 @@
#include "flash.h"
#include "programmer.h"
fdtype sp_fd;
fdtype sp_fd = SER_INV_FD;
void __attribute__((noreturn)) sp_die(char *msg)
{
@ -189,7 +189,7 @@ fdtype sp_openserport(char *dev, unsigned int baud)
goto out_close;
}
const struct baudentry *entry = round_baud(baud);
dcb.BaudRate = entry->baud;
dcb.BaudRate = entry->flag;
dcb.ByteSize = 8;
dcb.Parity = NOPARITY;
dcb.StopBits = ONESTOPBIT;