1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-06 21:54:15 +01:00
LibrePilot/flight/tests/logfs/pios_flash_ut_priv.h
Stacey Sheldon 7f53aa422a ut: add basic unit test for logfs
Build it with:
  make ut_logfs

Create a raw flash file like this:
  dd if=/dev/zero bs=1 count=2MiB | tr '\000' '\377' > theflash.bin

Run it with:
  ./build/unit_tests/logfs/logfs.elf && echo 'all good'

Conflicts:
	Makefile
2013-03-03 14:33:02 +01:00

11 lines
251 B
C

#include <stdint.h>
struct pios_flash_ut_cfg {
uint32_t size_of_flash;
uint32_t size_of_sector;
};
int32_t PIOS_Flash_UT_Init(uint32_t * flash_id, const struct pios_flash_ut_cfg * cfg);
extern const struct pios_flash_driver pios_ut_flash_driver;