]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
TOMcat v1 board included
authorMichael Boehmer <mboehmer@ph.tum.de>
Fri, 27 May 2022 19:37:52 +0000 (21:37 +0200)
committerMichael Boehmer <mboehmer@ph.tum.de>
Fri, 27 May 2022 19:37:52 +0000 (21:37 +0200)
libtrbnet/trbflash.c

index 110a36a33276887d34838e5f2a400c0e7b86ccae..6d5ce151142411637c5e3b9388b64f701faafcc8 100644 (file)
@@ -100,7 +100,8 @@ typedef enum
     FLASH_MDCOEP = 25,
     FLASH_MDCTDC = 26,
     FLASH_FARICH = 27,
-    FLASH_DIRICH5S = 28
+    FLASH_DIRICH5S = 28,
+    FLASH_TOMCAT = 29
   } FlashType;
 
 static const char FlashTypeStr[][32] = {
@@ -132,7 +133,8 @@ static const char FlashTypeStr[][32] = {
   "MDC OEP",
   "MDC TDC",
   "Farich"
-  "Dirich5s"
+  "Dirich5s",
+  "TOMcat"
 };
 
 typedef struct {
@@ -414,6 +416,13 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId)
     flashParam->numPages = 16384;
     break;    
     
+  case 0xa800:
+    flashParam->flashType = FLASH_TOMCAT;
+    flashParam->manId = 0x16609d;
+    strcpy(flashParam->allowedStringId[0], "tomcat");
+    flashParam->numPages = 32768;
+    break;
+    
   default:
     return -1;
   }