From 99a287671ff99e8d2ae673050ed8d19ef6de750f Mon Sep 17 00:00:00 2001 From: Matt Evans Date: Tue, 27 Aug 2024 17:41:11 +0100 Subject: [PATCH] sd: Oops, wire up SD_MHZ parameter The SD_MHZ config option exists, but wasn't wired up in the SD initialisation code. --- src/sd_hw_config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sd_hw_config.c b/src/sd_hw_config.c index 7dad140..db270a2 100755 --- a/src/sd_hw_config.c +++ b/src/sd_hw_config.c @@ -50,8 +50,7 @@ static spi_t spis[] = { // One for each SPI. .sck_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA, // One of my cards doesn't seem to work beyond 5MHz :( - .baud_rate = 5 * 1000 * 1000, - //.baud_rate = 25 * 1000 * 1000, // Actual frequency: 20833333. + .baud_rate = SD_MHZ * 1000 * 1000, } };