FreeCalypso > hg > freecalypso-sw
comparison loadtools/flmain.c @ 406:0b8e5072abde
fc-loadtool flash: reset to read mode added where appropriate
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 17 Jun 2014 00:53:07 +0000 |
parents | a212b4968b29 |
children | 431023033c86 |
comparison
equal
deleted
inserted
replaced
405:a212b4968b29 | 406:0b8e5072abde |
---|---|
198 extern int flashcmd_erase(); | 198 extern int flashcmd_erase(); |
199 extern int flashcmd_progbin(); | 199 extern int flashcmd_progbin(); |
200 extern int flashcmd_program_m0(); | 200 extern int flashcmd_program_m0(); |
201 extern int flashcmd_program_srec(); | 201 extern int flashcmd_program_srec(); |
202 extern int flashcmd_quickprog(); | 202 extern int flashcmd_quickprog(); |
203 extern int flashcmd_reset(); | |
203 extern int flashcmd_sectors(); | 204 extern int flashcmd_sectors(); |
204 | 205 |
205 static struct cmdtab { | 206 static struct cmdtab { |
206 char *cmd; | 207 char *cmd; |
207 int (*func)(); | 208 int (*func)(); |
214 {"info", flashcmd_info}, | 215 {"info", flashcmd_info}, |
215 {"program-bin", flashcmd_progbin}, | 216 {"program-bin", flashcmd_progbin}, |
216 {"program-m0", flashcmd_program_m0}, | 217 {"program-m0", flashcmd_program_m0}, |
217 {"program-srec", flashcmd_program_srec}, | 218 {"program-srec", flashcmd_program_srec}, |
218 {"quickprog", flashcmd_quickprog}, | 219 {"quickprog", flashcmd_quickprog}, |
220 {"reset", flashcmd_reset}, | |
219 {"sectors", flashcmd_sectors}, | 221 {"sectors", flashcmd_sectors}, |
220 {0, 0} | 222 {0, 0} |
221 }; | 223 }; |
222 | 224 |
223 cmd_flash(argc, argv) | 225 cmd_flash(argc, argv) |