1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight/tests/logfs/unittest_init.c

27 lines
735 B
C
Raw Normal View History

/*
* These need to be defined in a .c file so that we can use
* designated initializer syntax which c++ doesn't support (yet).
*/
#include "pios_flash_ut_priv.h"
const struct pios_flash_ut_cfg flash_config = {
.size_of_flash = 0x00200000,
.size_of_sector = 0x00010000,
};
#include "pios_flashfs_logfs_priv.h"
const struct flashfs_logfs_cfg flashfs_config = {
.fs_magic = 0x89abceef,
.total_fs_size = 0x00200000, /* 2M bytes (32 sectors = entire chip) */
.arena_size = 0x00010000, /* 256 * slot size */
.slot_size = 0x00000100, /* 256 bytes */
.start_offset = 0, /* start at the beginning of the chip */
.sector_size = 0x00010000, /* 64K bytes */
.page_size = 0x00000100, /* 256 bytes */
};