Function esp_idf_svc::sys::sdspi_host_set_card_clk
source ยท pub unsafe extern "C" fn sdspi_host_set_card_clk(
host: i32,
freq_khz: u32,
) -> i32
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 host Handle of the sdspi device @param freq_khz card clock frequency, in kHz @return - ESP_OK on success - other error codes may be returned in the future