FreeCalypso > hg > freecalypso-sw
comparison loadtools/ltflash.c @ 62:6fb41cfa773d
fc-loadtool: flash erase implemented, compiles
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Thu, 27 Jun 2013 04:56:17 +0000 |
| parents | a10491da8c3a |
| children | a481d648278a |
comparison
equal
deleted
inserted
replaced
| 61:a10491da8c3a | 62:6fb41cfa773d |
|---|---|
| 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_erase(); | |
| 250 extern int flashcmd_sectors(); | 251 extern int flashcmd_sectors(); |
| 251 | 252 |
| 252 static struct cmdtab { | 253 static struct cmdtab { |
| 253 char *cmd; | 254 char *cmd; |
| 254 int (*func)(); | 255 int (*func)(); |
| 255 } cmdtab[] = { | 256 } cmdtab[] = { |
| 256 {"blankchk", flashcmd_blankchk}, | 257 {"blankchk", flashcmd_blankchk}, |
| 257 {"dump2bin", flashcmd_dump2file}, | 258 {"dump2bin", flashcmd_dump2file}, |
| 258 {"dump2srec", flashcmd_dump2file}, | 259 {"dump2srec", flashcmd_dump2file}, |
| 260 {"erase", flashcmd_erase}, | |
| 259 {"info", flashcmd_info}, | 261 {"info", flashcmd_info}, |
| 260 {"sectors", flashcmd_sectors}, | 262 {"sectors", flashcmd_sectors}, |
| 261 {0, 0} | 263 {0, 0} |
| 262 }; | 264 }; |
| 263 | 265 |
