bdk: clock: streamline sdmmc func naming

Additionally, restored the pclock variable because of _clock_sdmmc_config_clock_host store order.
This commit is contained in:
CTCaer
2025-11-26 14:37:14 +02:00
parent a2ea3fb08e
commit 9c028cd94a
3 changed files with 23 additions and 21 deletions

View File

@@ -1372,7 +1372,7 @@ int sdmmc_init(sdmmc_t *sdmmc, u32 id, u32 power, u32 bus_width, u32 type)
}
// Disable clock if enabled.
if (clock_sdmmc_is_not_reset_and_enabled(id))
if (clock_sdmmc_is_active(id))
{
_sdmmc_card_clock_disable(sdmmc);
_sdmmc_commit_changes(sdmmc);