mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-06 21:54:15 +01:00
7f53aa422a
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
11 lines
251 B
C
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;
|