From bff695ee5f0a6fac2959c2becc343f8665cfa4ee Mon Sep 17 00:00:00 2001 From: hadaq Date: Tue, 29 Sep 2009 14:06:54 +0000 Subject: [PATCH] update --- trbrich/trbflash.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/trbrich/trbflash.c b/trbrich/trbflash.c index ac3a656..9f0b8e0 100644 --- a/trbrich/trbflash.c +++ b/trbrich/trbflash.c @@ -66,7 +66,7 @@ static const char FlashTypeStr[][16] = {"INVALID", "ADCM1", "ADCM2", "MDC"}; 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; @@ -540,8 +540,8 @@ static int writePage(uint16_t trb_address, uint32_t pageNumber, } typedef enum { - PMODE_PROGRAMM, - PMODE_PROGRAMM_FULL, + PMODE_PROGRAM, + PMODE_PROGRAM_FULL, PMODE_VERIFY } PMode; @@ -615,7 +615,7 @@ static int programImageBuffer(uint16_t trb_address, unsigned int size, 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) { @@ -1130,7 +1130,7 @@ int main(int argc, char ** argv) 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); } @@ -1311,7 +1311,7 @@ int main(int argc, char ** argv) 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); } -- 2.43.0