]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
adding new hardware id for TRB3sc
authorJan Michel <j.michel@gsi.de>
Tue, 2 Jun 2015 16:09:06 +0000 (18:09 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 2 Jun 2015 16:09:06 +0000 (18:09 +0200)
libtrbnet/trbflash.c

index 4cdb35643d8ccf58494e5949f716797bf4e1682d..6e9239397e0f8f111c111716ca0f45b240062756 100644 (file)
@@ -91,7 +91,9 @@ typedef enum
     FLASH_TRB3_FPGA_4 = 18,
     
     CBM_RICH_1 = 19,
-    CBM_TOF_1 = 20
+    CBM_TOF_1 = 20,
+    FLASH_TRB3SC = 21
+    
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -115,7 +117,8 @@ static const char FlashTypeStr[][32] = {
   "TRB3 FPGA 3",
   "TRB3 FPGA 4",
   "CBM RICH V1",
-  "CBM TOF V1"
+  "CBM TOF V1",
+  "TRB3sc"
 };
 
 typedef struct {
@@ -338,6 +341,13 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     strcpy(flashParam->allowedStringId[0], "cbmtof");
     flashParam->numPages = 32768;
     break;    
+
+  case 0x9500:
+    flashParam->flashType = FLASH_TRB3SC;
+    flashParam->manId = 0x1720c2;
+    strcpy(flashParam->allowedStringId[0], "trb3sc");
+    flashParam->numPages = 32768;
+    break;    
     
   default:
     return -1;