diff loadtools/bpmain.c @ 683:ecea01f65146

loadtools: implemented -t option for boot ROM wait timeout
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 10 Mar 2020 07:05:32 +0000
parents cef70d53fc5e
children 464a531122ab
line wrap: on
line diff
--- a/loadtools/bpmain.c	Tue Mar 10 04:10:05 2020 +0000
+++ b/loadtools/bpmain.c	Tue Mar 10 07:05:32 2020 +0000
@@ -27,7 +27,7 @@
 	int c;
 	char command[512];
 
-	while ((c = getopt(argc, argv, "a:b:c:C:h:H:i:P:r:")) != EOF)
+	while ((c = getopt(argc, argv, "a:b:c:C:h:H:i:P:r:t:")) != EOF)
 		switch (c) {
 		case 'a':
 			iramimage.filename = optarg;
@@ -59,6 +59,9 @@
 			if (!reattach)
 				exit(1);	/* error msg already printed */
 			continue;
+		case 't':
+			set_romload_timeout(optarg);
+			continue;
 		case '?':
 		default:
 usage:			fprintf(stderr,