]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
added dirich5s, mt
authorMichael Traxler <M.Traxler@gsi.de>
Sat, 18 Sep 2021 00:52:25 +0000 (02:52 +0200)
committerMichael Traxler <M.Traxler@gsi.de>
Sat, 18 Sep 2021 00:52:25 +0000 (02:52 +0200)
libtrbnet/trbflash.c

index 3dfa4eec0f6d3e5bc6fad0c7197f00f39f9f100c..110a36a33276887d34838e5f2a400c0e7b86ccae 100644 (file)
@@ -99,7 +99,8 @@ typedef enum
     
     FLASH_MDCOEP = 25,
     FLASH_MDCTDC = 26,
-    FLASH_FARICH = 27
+    FLASH_FARICH = 27,
+    FLASH_DIRICH5S = 28
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -131,6 +132,7 @@ static const char FlashTypeStr[][32] = {
   "MDC OEP",
   "MDC TDC",
   "Farich"
+  "Dirich5s"
 };
 
 typedef struct {
@@ -377,13 +379,20 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     flashParam->numPages = 32768;
     break;    
 
-  case 0x9b00:
+  case 0x9a00:
+    flashParam->flashType = FLASH_DIRICH5S;
+    flashParam->manId = 0x1728c2;
+    strcpy(flashParam->allowedStringId[0], "dirich5s");
+    flashParam->numPages = 32768;
+    break;    
+
+   case 0x9b00:
     flashParam->flashType = FLASH_FARICH;
     flashParam->manId = 0x1728c2;
     strcpy(flashParam->allowedStringId[0], "farich");
     flashParam->numPages = 32768;
     break;    
-  
+
   case 0xa500:
     flashParam->flashType = FLASH_TRB5SC;
     flashParam->manId = 0x1720c2;