Function esp_idf_sys::sdmmc_host_set_card_clk
source ยท pub unsafe extern "C" fn sdmmc_host_set_card_clk(
slot: c_int,
freq_khz: u32,
) -> esp_err_t
Expand description
@brief Set card clock frequency
Currently only integer fractions of 40MHz clock can be used. For High Speed cards, 40MHz can be used. For Default Speed cards, 20MHz can be used.
@note This function is not thread safe
@param slot slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1) @param freq_khz card clock frequency, in kHz @return - ESP_OK on success - other error codes may be returned in the future