Init
This commit is contained in:
commit
daa1a48cce
|
|
@ -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);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"dep": [
|
||||
{
|
||||
"type": "git",
|
||||
"provider": "NAVIGATOR_UVEOS_NATION_TELIT",
|
||||
"repo": "StorageOnFlash_NATION_N32G45X"
|
||||
}
|
||||
],
|
||||
"cmake": {
|
||||
"inc_dirs": [
|
||||
"./"
|
||||
],
|
||||
"srcs": [
|
||||
"./**.c"
|
||||
]
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue