From 0a89819e0db5de56a29fd23166f858d7f068fa87 Mon Sep 17 00:00:00 2001 From: Michael Boehmer Date: Fri, 27 May 2022 21:37:52 +0200 Subject: [PATCH] TOMcat v1 board included --- libtrbnet/trbflash.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libtrbnet/trbflash.c b/libtrbnet/trbflash.c index 110a36a..6d5ce15 100644 --- a/libtrbnet/trbflash.c +++ b/libtrbnet/trbflash.c @@ -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; } -- 2.43.0