NetBurner 3.5.6
PDF Version
effsStdPartition.h
1#ifndef _EFFS_STD_PARTITION_H
2#define _EFFS_STD_PARTITION_H
3
4#include <effs_pt.h>
5#include <file/fsf.h>
6#include <file/flashdrv.h>
7#include <SPIFlash.h>
8#include <sim.h>
9
10
11extern void *AppFlash_ptDrvMem[];
12extern int (*AppFlash_fs_phy_fns[])( FS_FLASH *);
13
14struct treeWalker_t {
15 uint16_t depth;
16 uint16_t dirIdx[256];
17};
18
19struct FileHolder {
20 FileHolder * pParent;
21 FileHolder * pSibling;
22 FileHolder * pChild;
23 long flen;
24 unsigned long perm;
25 unsigned short ctime;
26 unsigned short cdate;
27 bool isDir;
28
29 char fname_data[];
30};
31
32
33extern PartitionTable NewTable;
34extern FileHolder * pt_files[8];
35
36#define WALKER_STATE_BUILD 1
37#define WALKER_STATE_DESCEND 2
38#define WALKER_STATE_ASCEND 3
39
40
41int BuildTree(FileHolder *tree);
42int SaveFileTree(FileHolder *tree, int drv);
43int ShowFileTree(FileHolder *tree);
44int BuildFileTrees(FileHolder ** tree);
45int UnmountAllDrives();
46void CreateSecondPartition(uint32_t fs_size);
47
48#endif // _EFFS_STD_PARTITION_H
NetBurner EFFS Partition Table structures for ARM MIMXRT10xx (SOMRT1061)
Embedded Flash File System, EFFS-STD.
Definition effs_pt.h:81