FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltflash.c @ 61:a10491da8c3a
fc-loadtool flash support: sector table generation implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 24 Jun 2013 17:46:15 +0000 |
parents | 048329d0888e |
children | 6fb41cfa773d |
comparison
equal
deleted
inserted
replaced
60:048329d0888e | 61:a10491da8c3a |
---|---|
245 if (selected_flash_device->nbanks == 2 && !bank) | 245 if (selected_flash_device->nbanks == 2 && !bank) |
246 printf("\nFlash device has 2 banks; flash2 command available\n"); | 246 printf("\nFlash device has 2 banks; flash2 command available\n"); |
247 return(0); | 247 return(0); |
248 } | 248 } |
249 | 249 |
250 extern int flashcmd_sectors(); | |
251 | |
250 static struct cmdtab { | 252 static struct cmdtab { |
251 char *cmd; | 253 char *cmd; |
252 int (*func)(); | 254 int (*func)(); |
253 } cmdtab[] = { | 255 } cmdtab[] = { |
254 {"blankchk", flashcmd_blankchk}, | 256 {"blankchk", flashcmd_blankchk}, |
255 {"dump2bin", flashcmd_dump2file}, | 257 {"dump2bin", flashcmd_dump2file}, |
256 {"dump2srec", flashcmd_dump2file}, | 258 {"dump2srec", flashcmd_dump2file}, |
257 {"info", flashcmd_info}, | 259 {"info", flashcmd_info}, |
260 {"sectors", flashcmd_sectors}, | |
258 {0, 0} | 261 {0, 0} |
259 }; | 262 }; |
260 | 263 |
261 cmd_flash(argc, argv) | 264 cmd_flash(argc, argv) |
262 char **argv; | 265 char **argv; |