avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support device


From: Michal Ludvig
Subject: [avrdude-dev] [patch #6866] bug #26703: [Feature Request] Support device reset for 'arduino' programmer type
Date: Mon, 12 Oct 2009 08:30:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.13) Gecko/2009080200 SUSE/3.0.13-0.1.2 Firefox/3.0.13

Follow-up Comment #8, patch #6866 (project avrdude):

> there is a little typo in ser_win32.c

Fixed in SVN.

> Please add a CLEARDTR and CLEARRTS when closing the port. 

Is it safe to do it like this?

--- arduino.c   (revision 864)
+++ arduino.c   (working copy)
@@ -92,8 +92,11 @@ static int arduino_open(PROGRAMMER * pgm, char * p
   serial_set_dtr_rts(&pgm->fd, 0);
   usleep(50*1000);
   /* Set DTR and RTS high to trigger reset */
   serial_set_dtr_rts(&pgm->fd, 1);
   usleep(50*1000);
+  /* Bring DTR and RTS back low */
+  serial_set_dtr_rts(&pgm->fd, 0);
+  usleep(50*1000);

I.e. First of all CLRRTS|CLRDTR, then SETDTR|SETRTS and then back to
CLRRTS|CLRDTR, all in arduino_open()?

Michal

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6866>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]