sdmmc_host_set_card_clk() function
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.
Arguments
slot
slot number (SDMMC_HOST_SLOT_0 or SDMMC_HOST_SLOT_1)
freq_khz
card clock frequency, in kHz
Return value
- ESP_OK on success - other error codes may be returned in the future
Notes
This function is not thread safe
sdmmc_host_set_card_clk() is called by 1 function and calls 11 functions:
![]()
sdmmc_host_set_card_clk()
sdmmc_host_set_card_clk() reads 10 variables and writes 2 variables:
![]()
sdmmc_host_set_card_clk()
sdmmc_host_set_card_clk() is implemented by 1 functions:
![]()
sdmmc_host_set_card_clk()