This commit is contained in:
cfif 2024-12-04 13:10:47 +03:00
commit daa1a48cce
3 changed files with 49 additions and 0 deletions

13
StorageOnFlash.c Normal file
View File

@ -0,0 +1,13 @@
//
// Created by xemon on 19.12.22.
//
#include "StorageOnFlash.h"
tStorageOnFlash NVM_STORAGE;
void StorageOnFlash_Init() {
tStorageOnFlash *env = &NVM_STORAGE;
vStorageOnFlashNation_Init(&env->nf_storage, 0x8078000, 0x807C000);
env->interface = xStorageOnFlashNation_GetInterface(&env->nf_storage);
}

19
StorageOnFlash.h Normal file
View File

@ -0,0 +1,19 @@
//
// Created by xemon on 19.12.22.
//
#ifndef UVEOS_ON_NATION_STORAGEONFLASH_H
#define UVEOS_ON_NATION_STORAGEONFLASH_H
#include "StorageOnFlashNation.h"
typedef struct {
tStorageOnFlashNation nf_storage;
tStorageInterface interface;
} tStorageOnFlash;
extern tStorageOnFlash NVM_STORAGE;
void StorageOnFlash_Init();
#endif //UVEOS_ON_NATION_STORAGEONFLASH_H

17
modular.json Normal file
View File

@ -0,0 +1,17 @@
{
"dep": [
{
"type": "git",
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
"repo": "StorageOnFlash_NATION_N32G45X"
}
],
"cmake": {
"inc_dirs": [
"./"
],
"srcs": [
"./**.c"
]
}
}