From cbecb0cd9114eae60934982fbc59c9f31d8b33c6 Mon Sep 17 00:00:00 2001 From: Michael Traxler Date: Sat, 18 Sep 2021 02:52:25 +0200 Subject: [PATCH] added dirich5s, mt --- libtrbnet/trbflash.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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; -- 2.43.0