Browse Source

alchemist: Reset using DTR as well

John 9 years ago
parent
commit
6278369ed6
1 changed files with 8 additions and 0 deletions
  1. 8 0
      driver-alchemist.c

+ 8 - 0
driver-alchemist.c

@@ -124,11 +124,19 @@ void alchemist_reset_board(const char * const devpath, struct alchemist_chip * c
 			applog(LOG_DEBUG, "IOCTL RTS RESET FAILED");
 		}
 		
+		if (set_serial_dtr(fd, BGV_HIGH) == BGV_ERROR) {
+			applog(LOG_DEBUG, "IOCTL DTR RESET FAILED");
+		}
+		
 		cgsleep_ms(100);
 		
 		if (set_serial_rts(fd, BGV_LOW) == BGV_ERROR) {
 			applog(LOG_DEBUG, "IOCTL RTS RESET FAILED");
 		}
+		
+		if (set_serial_dtr(fd, BGV_LOW) == BGV_ERROR) {
+			applog(LOG_DEBUG, "IOCTL DTR RESET FAILED");
+		}
 	}
 }