Function esp_idf_svc::hal::sys::esp_vfs_fat_spiflash_format_rw_wl
source · pub unsafe extern "C" fn esp_vfs_fat_spiflash_format_rw_wl(
base_path: *const i8,
partition_label: *const i8,
) -> i32
Expand description
@brief Format FAT filesystem
@note This API can be called when the FAT is mounted / not mounted. If this API is called when the FAT isn’t mounted (by calling esp_vfs_fat_spiflash_mount_rw_wl), this API will first mount the FAT then format it, then restore back to the original state.
@param base_path Path where partition should be registered (e.g. “/spiflash”) @param partition_label Label of the partition which should be used
@return - ESP_OK - ESP_ERR_NO_MEM: if memory can not be allocated - Other errors from esp_vfs_fat_spiflash_mount_rw_wl