This commit is contained in:
cfif 2025-05-26 14:41:45 +03:00
commit cb305cf9f1
3 changed files with 56 additions and 0 deletions

19
Inc/StorageOnFlash.h Normal file
View File

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

13
Src/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;
vStorageOnFlashArtery_Init(&env->nf_storage, 0x083C0000, 0x083D0000);
env->interface = xStorageOnFlashArtery_GetInterface(&env->nf_storage);
}

24
modular.json Normal file
View File

@ -0,0 +1,24 @@
{
"dep": [
{
"type": "git",
"provider": "GONEC_NEW",
"repo": "StorageInterface"
},
{
"type": "git",
"provider": "GONEC_NEW",
"repo": "InternalFlashPage_ARTERY_AT32"
}
],
"cmake": {
"inc_dirs": [
"Inc"
],
"srcs": [
"Src/**.c"
]
}
}