// // Created by CFIF on 05.04.24. // #ifndef HVAC_STORAGEONFLASH_H #define HVAC_STORAGEONFLASH_H #include "StorageOnFlashFlagchip.h" #define nf_storage_calib_size (8 * FLASH_PAGE_SIZE) #define nf_storage_calib_mainFlashPageAddress 0x04000000 #define nf_storage_calib_recoveryFlashPageAddress 0x04004000 #define nf_storage_param_size (2 * FLASH_PAGE_SIZE) #define nf_storage_param_mainFlashPageAddress 0x04005000 #define nf_storage_param_recoveryFlashPageAddress 0x04006000 typedef struct { tStorageOnFlashFlagchip nf_storage_calib; tStorageInterface interface_calib; tStorageOnFlashFlagchip nf_storage_param; tStorageInterface interface_param; } tStorageOnFlash; extern tStorageOnFlash NVM_STORAGE; void StorageOnFlash_Init(); #endif //HVAC_STORAGEONFLASH_H