Home
last modified time | relevance | path

Searched refs:card_div (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.5.0/components/driver/
Dsdmmc_host.c186 int card_div = 0; /* 1/2 of card clock divider (SDMMC.clkdiv) */ in sdmmc_host_set_card_clk() local
191 card_div = 0; in sdmmc_host_set_card_clk()
194 card_div = 0; in sdmmc_host_set_card_clk()
197 card_div = 20; in sdmmc_host_set_card_clk()
200 card_div = (clk40m + freq_khz * 2 - 1) / (freq_khz * 2); // round up in sdmmc_host_set_card_clk()
204 slot, host_div, card_div, in sdmmc_host_set_card_clk()
205 2 * APB_CLK_FREQ / host_div / ((card_div == 0) ? 1 : card_div * 2) / 1000); in sdmmc_host_set_card_clk()
211 SDMMC.clkdiv.div0 = card_div; in sdmmc_host_set_card_clk()
215 SDMMC.clkdiv.div1 = card_div; in sdmmc_host_set_card_clk()