32#define MMHAL_FLASH_ERASE_VALUE 0xFF
43#ifndef MMHAL_FLASH_ADDR_T
44#define MMHAL_FLASH_ADDR_T uint32_t
85#define MMHAL_FLASH_PARTITION_CONFIG_DEFAULT { 0, 0, false }
const struct mmhal_flash_partition_config * mmhal_get_factory_mmconfig_partition(void)
Get optional factory default MMCONFIG flash partition configuration.
int mmhal_flash_write(mmhal_flash_addr_t write_address, const uint8_t *data, size_t size)
Write a block of data to the specified Flash address.
int mmhal_flash_read(mmhal_flash_addr_t read_address, uint8_t *buf, size_t size)
Read a block of data from the specified Flash address into the buffer.
#define MMHAL_FLASH_ADDR_T
Underlying integer type for mmhal_flash_addr_t.
MMHAL_FLASH_ADDR_T mmhal_flash_addr_t
Address type used by the mmhal flash API.
uint32_t mmhal_flash_getblocksize(mmhal_flash_addr_t block_address)
Returns the size of the flash block at the specified address.
const struct lfs_config * mmhal_get_littlefs_config(void)
Get LittleFS configuration.
const struct mmhal_flash_partition_config * mmhal_get_mmconfig_partition(void)
Get MMCONFIG flash partition configuration.
int mmhal_flash_erase(mmhal_flash_addr_t block_address)
Erases a specified block of flash.
static unsigned char buf[1024]
Statically allocated buffer for MQTT.
Flash partition configuration structure.
uint32_t partition_size
The size of the partition (in bytes).
mmhal_flash_addr_t partition_start
The start address of the partition.
bool not_memory_mapped
If false, then the partition address range (partition_start to partition_start + partition_size) must...