From 5c711f27a8db050da476e3d06e7839e2a0f20fa1 Mon Sep 17 00:00:00 2001 From: cfif Date: Thu, 5 Feb 2026 10:59:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- StorageOnFlash.c | 9 ++++++++- StorageOnFlash.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/StorageOnFlash.c b/StorageOnFlash.c index eba0e54..1ee0cc1 100644 --- a/StorageOnFlash.c +++ b/StorageOnFlash.c @@ -3,15 +3,22 @@ // #include "StorageOnFlash.h" +#define LOG_SIGN "INIT" +#define LOGGER logger + tStorageOnFlash NVM_STORAGE; -void StorageOnFlash_Init() { +void StorageOnFlash_Init(tLoggerInterface *logger) { tStorageOnFlash *env = &NVM_STORAGE; vStorageOnFlashFlagchip_Init(&env->nf_storage_calib, nf_storage_calib_mainFlashPageAddress,nf_storage_calib_recoveryFlashPageAddress); env->interface_calib = xStorageOnFlashFlagchip_GetInterface(&env->nf_storage_calib); + LoggerFormatInfo(LOGGER, LOG_SIGN, "Initialization calibrations STORE, Main adr: 0x%08X Recovery adr: 0x%08X", env->nf_storage_calib.mainFlashPageAddress, env->nf_storage_calib.recoveryFlashPageAddress) + vStorageOnFlashFlagchip_Init(&env->nf_storage_param, nf_storage_param_mainFlashPageAddress,nf_storage_param_recoveryFlashPageAddress); env->interface_param = xStorageOnFlashFlagchip_GetInterface(&env->nf_storage_param); + LoggerFormatInfo(LOGGER, LOG_SIGN, "Initialization parameters STORE, Main adr: 0x%08X Recovery adr: 0x%08X", env->nf_storage_param.mainFlashPageAddress, env->nf_storage_param.recoveryFlashPageAddress) + } \ No newline at end of file diff --git a/StorageOnFlash.h b/StorageOnFlash.h index 352198b..ca993de 100644 --- a/StorageOnFlash.h +++ b/StorageOnFlash.h @@ -26,6 +26,6 @@ typedef struct { extern tStorageOnFlash NVM_STORAGE; -void StorageOnFlash_Init(); +void StorageOnFlash_Init(tLoggerInterface *logger); #endif //HVAC_STORAGEONFLASH_H