From: Michael Traxler Date: Sat, 18 Sep 2021 00:52:25 +0000 (+0200) Subject: added dirich5s, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=cbecb0cd9114eae60934982fbc59c9f31d8b33c6;p=trbnettools.git added dirich5s, mt --- diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 3dfa4ee..110a36a 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -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;