Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/SD_MMC/src/SD_MMC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ bool SDMMCFS::begin(const char *mountpoint, bool mode1bit, bool format_if_mount_
.width = 4,
.flags = 0,
};
#ifdef SOC_SDMMC_UHS_I_SUPPORTED
host.flags &= ~SDMMC_HOST_FLAG_DDR;
slot_config.flags = SDMMC_SLOT_FLAG_UHS1;
#endif
#else
host.slot = SDMMC_HOST_SLOT_1;
#endif
Expand Down
4 changes: 4 additions & 0 deletions libraries/SD_MMC/src/SD_MMC.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@
// you can define BOARD_MAX_SDMMC_FREQ with lower value (Ex. SDMMC_FREQ_DEFAULT)
// in pins_arduino.h for your board variant.
#ifndef BOARD_MAX_SDMMC_FREQ
#ifdef SOC_SDMMC_UHS_I_SUPPORTED
#define BOARD_MAX_SDMMC_FREQ SDMMC_FREQ_SDR50
#else
#define BOARD_MAX_SDMMC_FREQ SDMMC_FREQ_HIGHSPEED
#endif
#endif

namespace fs {

Expand Down
Loading