Function esp_idf_svc::hal::sys::nvs_flash_init_partition_ptr

source ยท
pub unsafe extern "C" fn nvs_flash_init_partition_ptr(
    partition: *const esp_partition_t,
) -> i32
Expand description

@brief Initialize NVS flash storage for the partition specified by partition pointer.

@param[in] partition pointer to a partition obtained by the ESP partition API.

@return - ESP_OK if storage was successfully initialized - ESP_ERR_NVS_NO_FREE_PAGES if the NVS storage contains no empty pages (which may happen if NVS partition was truncated) - ESP_ERR_INVALID_ARG in case partition is NULL - ESP_ERR_NO_MEM in case memory could not be allocated for the internal structures - one of the error codes from the underlying flash storage driver