Обновление

This commit is contained in:
cfif 2025-11-17 16:28:51 +03:00
parent b506507034
commit feb57576c9
1 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@
#include "StorageOnFlashFlagchip.h"
#include "SystemDelayInterface.h"
#include "HVAC_preDefine.h"
#include "StorageOnFlash.h"
#define LOGGER env->logger
#define LOG_SIGN "Хран."
@ -91,7 +92,7 @@ void DeviceStorage_InitCommon(tDeviceStorage *env, tStorageInterface *storageCal
}
SECT_SRAM_NVM uint8_t dataReservedParamStore[2 * FLASH_PAGE_SIZE];
SECT_SRAM_NVM uint8_t dataReservedParamStore[nf_storage_param_size];
extern uint32_t __caldata_start[];
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface,
@ -103,8 +104,8 @@ bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInte
env->dataParam = (tDeviceDataNonVolatile *) dataReservedParamStore;
env->dataCalib = (void *) __caldata_start;
DeviceStorage_InitCommon(env, storageParamInterface, sizeof(dataReservedParamStore),
storageCalibInterface, 7 * FLASH_PAGE_SIZE);
DeviceStorage_InitCommon(env, storageParamInterface, nf_storage_param_size,
storageCalibInterface, nf_storage_calib_size);
bool resultParam = DeviceStorage_LoadParam(env);
bool resultCalib = DeviceStorage_LoadCalib(env);