FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltflash.c @ 99:b78db17bfc85
fc-loadtool: flash program-{m0,srec} implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 01 Sep 2013 18:59:48 +0000 |
parents | 57b8dbb029c2 |
children | 02cb0206aa47 |
comparison
equal
deleted
inserted
replaced
98:b3ed63722eb5 | 99:b78db17bfc85 |
---|---|
295 return tpinterf_pass_output(1); | 295 return tpinterf_pass_output(1); |
296 } | 296 } |
297 | 297 |
298 extern int flashcmd_erase(); | 298 extern int flashcmd_erase(); |
299 extern int flashcmd_progbin(); | 299 extern int flashcmd_progbin(); |
300 extern int flashcmd_program_m0(); | |
301 extern int flashcmd_program_srec(); | |
300 extern int flashcmd_sectors(); | 302 extern int flashcmd_sectors(); |
301 | 303 |
302 static struct cmdtab { | 304 static struct cmdtab { |
303 char *cmd; | 305 char *cmd; |
304 int (*func)(); | 306 int (*func)(); |
307 {"dump2bin", flashcmd_dump2file}, | 309 {"dump2bin", flashcmd_dump2file}, |
308 {"dump2srec", flashcmd_dump2file}, | 310 {"dump2srec", flashcmd_dump2file}, |
309 {"erase", flashcmd_erase}, | 311 {"erase", flashcmd_erase}, |
310 {"info", flashcmd_info}, | 312 {"info", flashcmd_info}, |
311 {"program-bin", flashcmd_progbin}, | 313 {"program-bin", flashcmd_progbin}, |
314 {"program-m0", flashcmd_program_m0}, | |
315 {"program-srec", flashcmd_program_srec}, | |
312 {"quickprog", flashcmd_quickprog}, | 316 {"quickprog", flashcmd_quickprog}, |
313 {"sectors", flashcmd_sectors}, | 317 {"sectors", flashcmd_sectors}, |
314 {0, 0} | 318 {0, 0} |
315 }; | 319 }; |
316 | 320 |