]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
update
authorhadaq <hadaq>
Tue, 29 Sep 2009 14:06:54 +0000 (14:06 +0000)
committerhadaq <hadaq>
Tue, 29 Sep 2009 14:06:54 +0000 (14:06 +0000)
trbrich/trbflash.c

index ac3a656c59c159a926ccde381fe3584f5ea10542..9f0b8e08c7ece596b9fc950b731ba9dbfe19dfe9 100644 (file)
@@ -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);
     }