From: Jan Michel Date: Tue, 2 Jun 2015 16:09:06 +0000 (+0200) Subject: adding new hardware id for TRB3sc X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=2474077c761e13f67b129db240895996ba492b74;p=trbnettools.git adding new hardware id for TRB3sc --- diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 4cdb356..6e92393 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -91,7 +91,9 @@ typedef enum FLASH_TRB3_FPGA_4 = 18, CBM_RICH_1 = 19, - CBM_TOF_1 = 20 + CBM_TOF_1 = 20, + FLASH_TRB3SC = 21 + } FlashType; static const char FlashTypeStr[][32] = { @@ -115,7 +117,8 @@ static const char FlashTypeStr[][32] = { "TRB3 FPGA 3", "TRB3 FPGA 4", "CBM RICH V1", - "CBM TOF V1" + "CBM TOF V1", + "TRB3sc" }; typedef struct { @@ -338,6 +341,13 @@ static int setFlashParam(FlashParam* flashParam, uint16_t hardwareId) strcpy(flashParam->allowedStringId[0], "cbmtof"); flashParam->numPages = 32768; break; + + case 0x9500: + flashParam->flashType = FLASH_TRB3SC; + flashParam->manId = 0x1720c2; + strcpy(flashParam->allowedStringId[0], "trb3sc"); + flashParam->numPages = 32768; + break; default: return -1;