Function esp_idf_sys::sdmmc_host_init_slot

source ยท
pub unsafe extern "C" fn sdmmc_host_init_slot(
    slot: c_int,
    slot_config: *const sdmmc_slot_config_t,
) -> esp_err_t
Expand description

@brief Initialize given slot of SDMMC peripheral

On the ESP32, SDMMC peripheral has two slots:

  • Slot 0: 8-bit wide, maps to HS1_* signals in PIN MUX
  • Slot 1: 4-bit wide, maps to HS2_* signals in PIN MUX

Card detect and write protect signals can be routed to arbitrary GPIOs using GPIO matrix.

@note This function is not thread safe

@param slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1) @param slot_config additional configuration for the slot @return - ESP_OK on success - ESP_ERR_INVALID_STATE if host has not been initialized using sdmmc_host_init