change(sdmmc): adapt host state machine for CMD11, commit reg/struct files

This commit is contained in:
Ivan Grokhotkov
2024-10-04 18:46:49 +02:00
committed by Armando
parent 98f1dd969a
commit f5f46ab74c
4 changed files with 124 additions and 20 deletions

View File

@@ -451,6 +451,22 @@ static inline bool sdmmc_ll_is_card_write_protected(sdmmc_dev_t *hw, uint32_t sl
return is_protected;
}
/**
* @brief Switch between 3.3V and 1.8V mode
*
* @param hw hardware instance address
* @param slot slot
* @param en enable / disable 1.8V (3.3V on disable)
*/
static inline void sdmmc_ll_enable_18v_mode(sdmmc_dev_t *hw, uint32_t slot, bool en)
{
if (en) {
hw->uhs.volt |= BIT(slot);
} else {
hw->uhs.volt &= ~BIT(slot);
}
}
/**
* @brief Enable DDR mode
*