dRonin
adbada4
dRonin firmware
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
pios_flashfs_logfs_priv.h
Go to the documentation of this file.
1
11
/*
12
* This program is free software; you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation; either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful, but
18
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
19
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20
* for more details.
21
*
22
* You should have received a copy of the GNU General Public License along
23
* with this program; if not, see <http://www.gnu.org/licenses/>
24
*/
25
26
#ifndef PIOS_FLASHFS_LOGFS_PRIV_H_
27
#define PIOS_FLASHFS_LOGFS_PRIV_H_
28
29
#include <stdint.h>
30
#include "
pios_flash.h
"
/* struct pios_flash_driver */
31
38
struct
flashfs_logfs_cfg
{
39
uint32_t
fs_magic
;
40
uint32_t
arena_size
;
/* Max size of one generation of the filesystem */
41
uint32_t
slot_size
;
/* Max size of a "file" within the filesystem */
42
};
43
44
int32_t
PIOS_FLASHFS_Logfs_Init
(uintptr_t * fs_id,
const
struct
flashfs_logfs_cfg
*
cfg
,
enum
pios_flash_partition_labels
partition_label);
45
46
int32_t
PIOS_FLASHFS_Logfs_Destroy
(uintptr_t fs_id);
47
48
#endif
/* PIOS_FLASHFS_LOGFS_PRIV_H_ */
PIOS_FLASHFS_Logfs_Init
int32_t PIOS_FLASHFS_Logfs_Init(uintptr_t *fs_id, const struct flashfs_logfs_cfg *cfg, enum pios_flash_partition_labels partition_label)
Initialize the flash object setting FS.
Definition:
pios_flashfs_logfs.c:485
PIOS_FLASHFS_Logfs_Destroy
int32_t PIOS_FLASHFS_Logfs_Destroy(uintptr_t fs_id)
Definition:
pios_flashfs_logfs.c:571
flashfs_logfs_cfg
Definition:
pios_flashfs_logfs_priv.h:38
cfg
static struct flyingpicmd_cfg_fa cfg
Definition:
main.c:49
flashfs_logfs_cfg::fs_magic
uint32_t fs_magic
Definition:
pios_flashfs_logfs_priv.h:39
flashfs_logfs_cfg::arena_size
uint32_t arena_size
Definition:
pios_flashfs_logfs_priv.h:40
flashfs_logfs_cfg::slot_size
uint32_t slot_size
Definition:
pios_flashfs_logfs_priv.h:41
pios_flash_partition_labels
pios_flash_partition_labels
Definition:
pios_flash.h:31
pios_flash.h
flight
PiOS
inc
pios_flashfs_logfs_priv.h
Generated by
1.8.6