Init
This commit is contained in:
commit
cb305cf9f1
|
|
@ -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
|
||||
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue