when closing the port. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@874 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
a6777090bb
commit
07b4691c2a
|
@ -1,3 +1,8 @@
|
||||||
|
2009-11-03 Michal Ludvig <mludvig@logix.net.nz>
|
||||||
|
|
||||||
|
* arduino.c: Add on to bug #26703 / patch #6866 - clear DTR/RTS
|
||||||
|
when closing the port.
|
||||||
|
|
||||||
2009-10-22 David Hoerl <dhoerl@mac.com>
|
2009-10-22 David Hoerl <dhoerl@mac.com>
|
||||||
|
|
||||||
* usb_libusb.c: disabled usb_reset for Macs (same as FreeBSD)
|
* usb_libusb.c: disabled usb_reset for Macs (same as FreeBSD)
|
||||||
|
|
|
@ -107,6 +107,12 @@ static int arduino_open(PROGRAMMER * pgm, char * port)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void arduino_close(PROGRAMMER * pgm)
|
||||||
|
{
|
||||||
|
serial_set_dtr_rts(&pgm->fd, 0);
|
||||||
|
serial_close(&pgm->fd);
|
||||||
|
pgm->fd.ifd = -1;
|
||||||
|
}
|
||||||
|
|
||||||
void arduino_initpgm(PROGRAMMER * pgm)
|
void arduino_initpgm(PROGRAMMER * pgm)
|
||||||
{
|
{
|
||||||
|
@ -119,4 +125,5 @@ void arduino_initpgm(PROGRAMMER * pgm)
|
||||||
strcpy(pgm->type, "Arduino");
|
strcpy(pgm->type, "Arduino");
|
||||||
pgm->read_sig_bytes = arduino_read_sig_bytes;
|
pgm->read_sig_bytes = arduino_read_sig_bytes;
|
||||||
pgm->open = arduino_open;
|
pgm->open = arduino_open;
|
||||||
|
pgm->close = arduino_close;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue