Обновление
This commit is contained in:
parent
b27a572361
commit
b506507034
|
|
@ -82,7 +82,8 @@ void DeviceStorage_InitCommon(tDeviceStorage *env, tStorageInterface *storageCal
|
||||||
sizeCalib,
|
sizeCalib,
|
||||||
sizeParam,
|
sizeParam,
|
||||||
&env->publicVariablesTable,
|
&env->publicVariablesTable,
|
||||||
VARIABLE_GROUP_FLASH
|
VARIABLE_GROUP_FLASH,
|
||||||
|
env->logger
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -94,7 +95,11 @@ SECT_SRAM_NVM uint8_t dataReservedParamStore[2 * FLASH_PAGE_SIZE];
|
||||||
extern uint32_t __caldata_start[];
|
extern uint32_t __caldata_start[];
|
||||||
|
|
||||||
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface,
|
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface,
|
||||||
tStorageInterface *storageParamInterface) {
|
tStorageInterface *storageParamInterface,
|
||||||
|
tLoggerInterface *logger) {
|
||||||
|
|
||||||
|
env->logger = logger;
|
||||||
|
|
||||||
env->dataParam = (tDeviceDataNonVolatile *) dataReservedParamStore;
|
env->dataParam = (tDeviceDataNonVolatile *) dataReservedParamStore;
|
||||||
env->dataCalib = (void *) __caldata_start;
|
env->dataCalib = (void *) __caldata_start;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,9 @@ typedef struct {
|
||||||
|
|
||||||
} tDeviceStorage;
|
} tDeviceStorage;
|
||||||
|
|
||||||
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface, tStorageInterface *storageParamInterface);
|
bool DeviceStorage_Init(tDeviceStorage *env, tStorageInterface *storageCalibInterface,
|
||||||
|
tStorageInterface *storageParamInterface,
|
||||||
|
tLoggerInterface *logger);
|
||||||
|
|
||||||
void DeviceStorage_ForceDump(tDeviceStorage *env);
|
void DeviceStorage_ForceDump(tDeviceStorage *env);
|
||||||
void DeviceStorage_DelayedDump(tDeviceStorage *env);
|
void DeviceStorage_DelayedDump(tDeviceStorage *env);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue