sdmmc: command layer refactoring

This commit is contained in:
Ivan Grokhotkov
2018-06-20 19:59:11 +08:00
parent 383464749a
commit de42d99b1d
10 changed files with 1516 additions and 1179 deletions

View File

@@ -33,7 +33,7 @@ extern "C" {
* Uses SDMMC peripheral, with 4-bit mode enabled, and max frequency set to 20MHz
*/
#define SDMMC_HOST_DEFAULT() {\
.flags = (SDMMC_HOST_FLAG_4BIT | SDMMC_HOST_MEM_CARD), \
.flags = SDMMC_HOST_FLAG_4BIT, \
.slot = SDMMC_HOST_SLOT_1, \
.max_freq_khz = SDMMC_FREQ_DEFAULT, \
.io_voltage = 3.3f, \