32#define MMHAL_FLASH_ERASE_VALUE 0xFF
72#define MMHAL_FLASH_PARTITION_CONFIG_DEFAULT { 0, 0, false }
int mmhal_flash_erase(uint32_t block_address)
Erases a specified block of flash.
uint32_t mmhal_flash_getblocksize(uint32_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.
int mmhal_flash_write(uint32_t write_address, const uint8_t *data, size_t size)
Write a block of data to the specified Flash address.
const struct mmhal_flash_partition_config * mmhal_get_mmconfig_partition(void)
Get MMCONFIG flash partition configuration.
int mmhal_flash_read(uint32_t read_address, uint8_t *buf, size_t size)
Read a block of data from the specified Flash address into the buffer.
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).
bool not_memory_mapped
If false, then the partition address range (partition_start to partition_start + partition_size) must...
uint32_t partition_start
The start address of the partition.