comparison loadtools/compalram.c @ 250:8c011177adb9

loadtools reworked to use factored-out libserial
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 21 Sep 2017 23:07:01 +0000
parents e7502631a0f9
children
comparison
equal deleted inserted replaced
249:d0a4c05d98dc 250:8c011177adb9
5 */ 5 */
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 extern char *target_ttydev; 10 char *target_ttydev;
11 11
12 main(argc, argv) 12 main(argc, argv)
13 char **argv; 13 char **argv;
14 { 14 {
15 if (argc != 3) { 15 if (argc != 3) {
17 exit(1); 17 exit(1);
18 } 18 }
19 target_ttydev = argv[1]; 19 target_ttydev = argv[1];
20 set_compalstage_fullpath(argv[2]); 20 set_compalstage_fullpath(argv[2]);
21 21
22 open_target_serial(); 22 open_serial_port(target_ttydev);
23 perform_compal_stage(0); 23 perform_compal_stage();
24 tty_passthru(); 24 tty_passthru();
25 exit(0); 25 exit(0);
26 } 26 }