changeset 432:15e69d31c96f

tfc139: allow -B option just like rvtdump and rvinterf
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 21 Jun 2014 23:50:25 +0000
parents 5c75d84ffa81
children 2d8ab1b0df8d
files rvinterf/lowlevel/tfc139.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/lowlevel/tfc139.c	Sat Jun 21 23:36:13 2014 +0000
+++ b/rvinterf/lowlevel/tfc139.c	Sat Jun 21 23:50:25 2014 +0000
@@ -85,11 +85,15 @@
 	int c;
 	fd_set fds;
 
-	while ((c = getopt(argc, argv, "a:l:s:w:")) != EOF)
+	baudrate_name = "57600";	/* what C139 firmware uses */
+	while ((c = getopt(argc, argv, "a:B:l:s:w:")) != EOF)
 		switch (c) {
 		case 'a':
 			iram_load_addr = strtoul(optarg, 0, 16);
 			continue;
+		case 'B':
+			baudrate_name = optarg;
+			continue;
 		case 'l':
 			logfname = optarg;
 			continue;
@@ -107,7 +111,6 @@
 		}
 	if (argc - optind != 1)
 		goto usage;
-	baudrate_name = "57600";	/* what Compal phones use */
 	open_target_serial(argv[optind]);
 	target_tty_port = argv[optind];