36 lines
814 B
C
36 lines
814 B
C
//
|
|
// Created by cfif on 07.10.22.
|
|
//
|
|
|
|
#ifndef STORAGE_ON_FLASH_FLAGCHIP_H
|
|
#define STORAGE_ON_FLASH_FLAGCHIP_H
|
|
|
|
#include "stddef.h"
|
|
#include "StorageIO.h"
|
|
#include "LoggerInterface.h"
|
|
|
|
typedef enum {
|
|
STORAGE_TYPE_D_DATA,
|
|
STORAGE_TYPE_P_DATA
|
|
} eTypeStorageOnFlashFlagchip;
|
|
|
|
typedef struct {
|
|
uint32_t mainFlashPageAddress;
|
|
uint32_t recoveryFlashPageAddress;
|
|
eTypeStorageOnFlashFlagchip TypeStorageOnFlashFlagchip;
|
|
tLoggerInterface *logger;
|
|
} tStorageOnFlashFlagchip;
|
|
|
|
void vStorageOnFlashFlagchip_Init(
|
|
tStorageOnFlashFlagchip *env,
|
|
eTypeStorageOnFlashFlagchip TypeStorageOnFlashFlagchip,
|
|
uint32_t mainPage,
|
|
uint32_t recoveryPage
|
|
);
|
|
|
|
|
|
tStorageInterface xStorageOnFlashFlagchip_GetInterface(tStorageOnFlashFlagchip *env);
|
|
|
|
|
|
#endif //STORAGE_ON_FLASH_FLAGCHIP_H
|