mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
fix(sdmmc): don't disable SDIO interrupts when switching slots
This commit is contained in:
@ -836,9 +836,6 @@ static void sdmmc_host_change_to_slot(int slot)
|
|||||||
}
|
}
|
||||||
s_host_ctx.active_slot_num = slot;
|
s_host_ctx.active_slot_num = slot;
|
||||||
|
|
||||||
// Clear interrupt status and set interrupt mask to known state
|
|
||||||
sdmmc_host_intmask_clear_disable();
|
|
||||||
|
|
||||||
// Apply the appropriate saved host settings for the new slot before starting the transaction
|
// Apply the appropriate saved host settings for the new slot before starting the transaction
|
||||||
SDMMC_CLK_SRC_ATOMIC() {
|
SDMMC_CLK_SRC_ATOMIC() {
|
||||||
sdmmc_ll_set_clock_div(s_host_ctx.hal.dev, s_host_ctx.slot_ctx[slot].slot_host_div);
|
sdmmc_ll_set_clock_div(s_host_ctx.hal.dev, s_host_ctx.slot_ctx[slot].slot_host_div);
|
||||||
@ -850,9 +847,6 @@ static void sdmmc_host_change_to_slot(int slot)
|
|||||||
|
|
||||||
// Wait for the clock to propagate
|
// Wait for the clock to propagate
|
||||||
esp_rom_delay_us(10);
|
esp_rom_delay_us(10);
|
||||||
|
|
||||||
// Enable interrupts again
|
|
||||||
sdmmc_host_intmask_set_enable();
|
|
||||||
}
|
}
|
||||||
#endif // SOC_SDMMC_NUM_SLOTS >= 2
|
#endif // SOC_SDMMC_NUM_SLOTS >= 2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user