From 72587f85ec0f85719c163905933e31a946f54bdf Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Mon, 4 Jan 2016 03:05:15 +0000 Subject: serprog: allow to omit specifying a baud rate On USB-based serial connections (VCP) the requested baud rate usually does not matter (much). Remove the arbitrary restriction and use whatever default values the OS/hardware provides. Corresponding to flashrom svn r1907. Signed-off-by: Stefan Tauner Acked-by: Urja Rannikko --- programmer.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'programmer.h') diff --git a/programmer.h b/programmer.h index 3bf292d..97f0ffa 100644 --- a/programmer.h +++ b/programmer.h @@ -719,10 +719,8 @@ typedef int fdtype; #endif void sp_flush_incoming(void); -fdtype sp_openserport(char *dev, unsigned int baud); -int serialport_config(fdtype fd, unsigned int baud); +fdtype sp_openserport(char *dev, int baud); extern fdtype sp_fd; -/* expose serialport_shutdown as it's currently used by buspirate */ int serialport_shutdown(void *data); int serialport_write(const unsigned char *buf, unsigned int writecnt); int serialport_write_nonblock(const unsigned char *buf, unsigned int writecnt, unsigned int timeout, unsigned int *really_wrote); -- cgit v1.1