FreeCalypso > hg > freecalypso-sw
comparison loadtools/flmain.c @ 409:23ab8fe81764
Intel flash: unlock command implemented
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Tue, 17 Jun 2014 03:18:02 +0000 |
| parents | 431023033c86 |
| children | bf49e348576b |
comparison
equal
deleted
inserted
replaced
| 408:431023033c86 | 409:23ab8fe81764 |
|---|---|
| 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_reset(); |
| 204 extern int flashcmd_sectors(); | 204 extern int flashcmd_sectors(); |
| 205 extern int flashcmd_status(); | 205 extern int flashcmd_status(); |
| 206 extern int flashcmd_unlock(); | |
| 206 | 207 |
| 207 static struct cmdtab { | 208 static struct cmdtab { |
| 208 char *cmd; | 209 char *cmd; |
| 209 int (*func)(); | 210 int (*func)(); |
| 210 } cmdtab[] = { | 211 } cmdtab[] = { |
| 219 {"program-srec", flashcmd_program_srec}, | 220 {"program-srec", flashcmd_program_srec}, |
| 220 {"quickprog", flashcmd_quickprog}, | 221 {"quickprog", flashcmd_quickprog}, |
| 221 {"reset", flashcmd_reset}, | 222 {"reset", flashcmd_reset}, |
| 222 {"sectors", flashcmd_sectors}, | 223 {"sectors", flashcmd_sectors}, |
| 223 {"status", flashcmd_status}, | 224 {"status", flashcmd_status}, |
| 225 {"unlock", flashcmd_unlock}, | |
| 224 {0, 0} | 226 {0, 0} |
| 225 }; | 227 }; |
| 226 | 228 |
| 227 cmd_flash(argc, argv) | 229 cmd_flash(argc, argv) |
| 228 char **argv; | 230 char **argv; |
