slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
Return value
- ESP_OK on success - ESP_ERR_INVALID_STATE if SDMMC host has not been initialized - ESP_ERR_INVALID_ARG if invalid slot number is used
Notes
If there are more than 1 active slots, this function will just decrease the reference count and won't actually disable the host until the last slot is disabled This function is not thread safe
Examples
sdmmc_host_deinit_slot() is referenced by 7 libraries and example projects: