/* Set the card to max transfer speed in non-high speed mode.  */
static void MMC_SetMaxFrequency(mmc_card_t *card)
/* Set the card to max transfer speed in non-high speed mode.  */
static void MMC_SetMaxFrequency(mmc_card_t *card)
{
    assert(card);
    uint32_t frequencyUnit;
    uint32_t multiplierFactor;
    uint32_t maxBusClock_Hz;
    frequencyUnit = g_transerSpeedFrequencyUnit[READ_MMC_TRANSFER_SPEED_FREQUENCY_UNIT(card->csd)];
    multiplierFactor = g_transerSpeedMultiplierFactor[READ_MMC_TRANSFER_SPEED_MULTIPLIER(card->csd)];
    maxBusClock_Hz = (frequencyUnit * multiplierFactor) / DIVIDER_IN_TRANSFER_SPEED;
    card->busClock_Hz = SDHC_SetSdClock(card->host.base, card->host.sourceClock_Hz, maxBusClock_Hz);
}