mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
change(sdmmc): simplify cmd11 enable code
This commit is contained in:
@@ -1003,11 +1003,7 @@ void sdmmc_host_enable_clk_cmd11(int slot, bool enable)
|
|||||||
{
|
{
|
||||||
sdmmc_ll_enable_card_clock(s_host_ctx.hal.dev, slot, enable);
|
sdmmc_ll_enable_card_clock(s_host_ctx.hal.dev, slot, enable);
|
||||||
sdmmc_host_clock_update_command(slot, true);
|
sdmmc_host_clock_update_command(slot, true);
|
||||||
if (enable) {
|
sdmmc_ll_enable_1v8_mode(s_host_ctx.hal.dev, slot, enable);
|
||||||
sdmmc_ll_enable_1v8_mode(s_host_ctx.hal.dev, slot, true);
|
|
||||||
} else {
|
|
||||||
sdmmc_ll_enable_1v8_mode(s_host_ctx.hal.dev, slot, false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void sdmmc_host_dma_stop(void)
|
void sdmmc_host_dma_stop(void)
|
||||||
|
Reference in New Issue
Block a user