2012-12-14 06:25:02 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct pios_flash_ut_cfg {
|
2013-05-19 16:37:30 +02:00
|
|
|
uint32_t size_of_flash;
|
|
|
|
uint32_t size_of_sector;
|
2012-12-14 06:25:02 +01:00
|
|
|
};
|
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
int32_t PIOS_Flash_UT_Init(uintptr_t *flash_id, const struct pios_flash_ut_cfg *cfg);
|
2012-12-14 06:25:02 +01:00
|
|
|
|
2013-05-16 01:18:02 +02:00
|
|
|
int32_t PIOS_Flash_UT_Destroy(uintptr_t flash_id);
|
2012-12-14 06:25:02 +01:00
|
|
|
extern const struct pios_flash_driver pios_ut_flash_driver;
|
2013-02-24 03:24:25 +01:00
|
|
|
|
|
|
|
#if !defined(FLASH_IMAGE_FILE)
|
|
|
|
#define FLASH_IMAGE_FILE "theflash.bin"
|
|
|
|
#endif
|