summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/storage.h
blob: ae6c832281eaed8b895e71be891f8c759d7f8805 (plain) (blame)
1
2
3
4
5
6
7
8
9
#define FLASH_BLOCK_SIZE (512)

void storage_init(void);
uint32_t storage_get_block_size(void);
uint32_t storage_get_block_count(void);
void storage_irq_handler(void);
void storage_flush(void);
bool storage_read_block(uint8_t *dest, uint32_t block);
bool storage_write_block(const uint8_t *src, uint32_t block);