sdmmc_host_deinit_slot() function
Disable SDMMC host and release allocated resources gracefully
Arguments
slot
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
sdmmc_host_deinit_slot() calls 5 functions:
![]()
sdmmc_host_deinit_slot()
sdmmc_host_deinit_slot() reads 8 variables:
![]()
sdmmc_host_deinit_slot()