comparison loadtools/ltmain.c @ 23:aca1948e9713

loadtool: initial version compiles and links
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 04:52:05 +0000
parents e658a84b37df
children ae6294b8a015
comparison
equal deleted inserted replaced
22:e658a84b37df 23:aca1948e9713
49 iramimage.filename = default_loadagent_image; 49 iramimage.filename = default_loadagent_image;
50 50
51 open_target_serial(); 51 open_target_serial();
52 perform_romload(); 52 perform_romload();
53 putchar('\n'); 53 putchar('\n');
54 if (tpinterf_pass_output() < 0) { 54 if (tpinterf_pass_output(1) < 0)
55 fprintf(stderr,
56 "loadtool error: no '=' prompt received from target\n");
57 exit(1); 55 exit(1);
58 }
59 for (;;) { 56 for (;;) {
60 if (isatty(0)) { 57 if (isatty(0)) {
61 fputs("loadtool> ", stdout); 58 fputs("loadtool> ", stdout);
62 fflush(stdout); 59 fflush(stdout);
63 } 60 }