mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-11-03 22:08:28 +00:00 
			
		
		
		
	feat(sdmmc): supported UHS-I SDR50 (100Mhz) and DDR50 mode
This commit is contained in:
		@@ -58,7 +58,7 @@ void sdmmc_test_sd_begin(int slot, int width, int freq_khz, int ddr, sdmmc_card_
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    config.max_freq_khz = freq_khz;
 | 
			
		||||
    bool slot_is_uhs1 = config.flags & SDMMC_HOST_FLAG_UHS1;
 | 
			
		||||
    bool slot_is_uhs1 = slot_config.flags & SDMMC_SLOT_FLAG_UHS1;
 | 
			
		||||
 | 
			
		||||
    if (width == 1) {
 | 
			
		||||
        config.flags = SDMMC_HOST_FLAG_1BIT;
 | 
			
		||||
@@ -80,7 +80,7 @@ void sdmmc_test_sd_begin(int slot, int width, int freq_khz, int ddr, sdmmc_card_
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (slot_is_uhs1) {
 | 
			
		||||
        config.flags |= SDMMC_HOST_FLAG_UHS1;
 | 
			
		||||
        slot_config.flags |= SDMMC_SLOT_FLAG_UHS1;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
#if SOC_SDMMC_IO_POWER_EXTERNAL
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user