comparison loadtools/ltflash.c @ 65:a7da6648a7f8

fc-loadtool: flash program-bin command implemented, compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 28 Jun 2013 21:12:22 +0000
parents a481d648278a
children 57b8dbb029c2
comparison
equal deleted inserted replaced
64:a481d648278a 65:a7da6648a7f8
280 return(-1); 280 return(-1);
281 return tpinterf_pass_output(1); 281 return tpinterf_pass_output(1);
282 } 282 }
283 283
284 extern int flashcmd_erase(); 284 extern int flashcmd_erase();
285 extern int flashcmd_progbin();
285 extern int flashcmd_sectors(); 286 extern int flashcmd_sectors();
286 287
287 static struct cmdtab { 288 static struct cmdtab {
288 char *cmd; 289 char *cmd;
289 int (*func)(); 290 int (*func)();
291 {"blankchk", flashcmd_blankchk}, 292 {"blankchk", flashcmd_blankchk},
292 {"dump2bin", flashcmd_dump2file}, 293 {"dump2bin", flashcmd_dump2file},
293 {"dump2srec", flashcmd_dump2file}, 294 {"dump2srec", flashcmd_dump2file},
294 {"erase", flashcmd_erase}, 295 {"erase", flashcmd_erase},
295 {"info", flashcmd_info}, 296 {"info", flashcmd_info},
297 {"program-bin", flashcmd_progbin},
296 {"quickprog", flashcmd_quickprog}, 298 {"quickprog", flashcmd_quickprog},
297 {"sectors", flashcmd_sectors}, 299 {"sectors", flashcmd_sectors},
298 {0, 0} 300 {0, 0}
299 }; 301 };
300 302