static FlashType flashType = FLASH_INVALID;
-static const char trbflash_version[] = "$Revision: 2.08 $";
+static const char trbflash_version[] = "$Revision: 2.09 $";
static uint32_t mdcFlashSelect = 1;
}
typedef enum {
- PMODE_PROGRAMM,
- PMODE_PROGRAMM_FULL,
+ PMODE_PROGRAM,
+ PMODE_PROGRAM_FULL,
PMODE_VERIFY
} PMode;
for (block = 0; (block < NUM_BLOCKS); block++) {
int error = 0;
- int writeInfoPage = (block == NUM_BLOCKS - 1) && (mode == PMODE_PROGRAMM)
+ int writeInfoPage = (block == NUM_BLOCKS - 1) && (mode == PMODE_PROGRAM)
? 1 : 0;
if (block % 16 == 0) {
fprintf(stderr, "Start programming ImageFile '%s'\n",
imageFileName);
- if (programImageBuffer(trb_address, size, PMODE_PROGRAMM) == -1) {
+ if (programImageBuffer(trb_address, size, PMODE_PROGRAM) == -1) {
exit(EXIT_FAILURE);
}
fprintf(stderr, "Start restoring ImageFile '%s'\n",
imageFileName);
- if (programImageBuffer(trb_address, size, PMODE_PROGRAMM_FULL) == -1) {
+ if (programImageBuffer(trb_address, size, PMODE_PROGRAM_FULL) == -1) {
exit(EXIT_FAILURE);
}