Change the second parameter of the ser_open method from "baud" into a

"union pinfo", so the USB parameters can be passed without hacks.



git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1276 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
joerg_wunsch
2014-02-21 13:44:11 +00:00
parent f7cc3ff662
commit 66e2a16c9c
16 changed files with 155 additions and 77 deletions

View File

@@ -253,7 +253,7 @@ static int ser_set_dtr_rts(union filedescriptor *fdp, int is_on)
return 0;
}
static int ser_open(char * port, long baud, union filedescriptor *fdp)
static int ser_open(char * port, union pinfo pinfo, union filedescriptor *fdp)
{
int rc;
int fd;
@@ -281,7 +281,7 @@ static int ser_open(char * port, long baud, union filedescriptor *fdp)
/*
* set serial line attributes
*/
rc = ser_setspeed(fdp, baud);
rc = ser_setspeed(fdp, pinfo.baud);
if (rc) {
fprintf(stderr,
"%s: ser_open(): can't set attributes for device \"%s\": %s\n",