From: Michael Traxler Date: Thu, 30 Nov 2023 01:32:14 +0000 (+0100) Subject: added dirich5d, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2f3023fef4d38a4f97f76659f0a01199a94e38c5;p=trbnettools.git added dirich5d, mt --- diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 94a585b..cdef3f4 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -95,14 +95,14 @@ typedef enum FLASH_TRB3SC = 21, FLASH_DIRICH = 22, FLASH_DIRICH_CONCENTRATOR = 23, - FLASH_TRB5SC = 24, - - FLASH_MDCOEP = 25, - FLASH_MDCTDC = 26, - FLASH_FARICH = 27, - FLASH_DIRICH5S = 28, - FLASH_TOMCAT = 29, - FLASH_FARICH_CONCENTRATOR = 30 + FLASH_FARICH_CONCENTRATOR = 24, + FLASH_TRB5SC = 25, + FLASH_MDCOEP = 26, + FLASH_MDCTDC = 27, + FLASH_FARICH = 28, + FLASH_DIRICH5S = 29, + FLASH_TOMCAT = 30, + FLASH_DIRICH5D = 31, } FlashType; static const char FlashTypeStr[][32] = { @@ -137,6 +137,7 @@ static const char FlashTypeStr[][32] = { "Farich", "Dirich5s", "TOMcat" + "Dirich5d", }; typedef struct { @@ -391,6 +392,13 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId) flashParam->numPages = 32768; break; + case 0x9a80: + flashParam->flashType = FLASH_DIRICH5D; + flashParam->manId = 0x1728c2; + strcpy(flashParam->allowedStringId[0], "dirich5d"); + flashParam->numPages = 32768; + break; + case 0x9b00: flashParam->flashType = FLASH_FARICH; flashParam->manId = 0x1728c2;