picofuse
include
picofuse
hw
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_flash_init
hw_block_t * hw_block_flash_init(size_t size_bytes)
Initialize a flash-backed block region.
block.h
Generic block device interface.
hw_block_flash_get_capacity
size_t hw_block_flash_get_capacity(void)
Return the maximum currently available flash block size.