StorageOnFlash_NATION_N32G45X/Inc/StorageOnFlashNation.h

28 lines
540 B
C

//
// Created by cfif on 07.10.22.
//
#ifndef STORAGE_ON_FLASH_NATION_H
#define STORAGE_ON_FLASH_NATION_H
#include "n32g45x.h"
#include "stddef.h"
#include "StorageIO.h"
typedef struct {
uint32_t mainFlashPageAddress;
uint32_t recoveryFlashPageAddress;
} tStorageOnFlashNation;
void vStorageOnFlashNation_Init(
tStorageOnFlashNation *env,
uint32_t mainPage,
uint32_t recoveryPage
);
tStorageInterface xStorageOnFlashNation_GetInterface(tStorageOnFlashNation *env);
#endif //STORAGE_ON_FLASH_NATION_H