picofuse

flash.h
Go to the documentation of this file.
1 
24 #pragma once
25 #include "block.h"
26 #include <stdbool.h>
27 #include <stddef.h>
28 #include <stdint.h>
29 
31 // METHODS
32 
56 hw_block_t *hw_block_flash_init(size_t size_bytes);
57 
66 size_t hw_block_flash_get_capacity(void);
67 
hw_block_t * hw_block_flash_init(size_t size_bytes)
Initialize a flash-backed block region.
Generic block device interface.
size_t hw_block_flash_get_capacity(void)
Return the maximum currently available flash block size.