sd: Oops, wire up SD_MHZ parameter
The SD_MHZ config option exists, but wasn't wired up in the SD initialisation code.
This commit is contained in:
parent
454cf94d1e
commit
99a287671f
1 changed files with 1 additions and 2 deletions
|
|
@ -50,8 +50,7 @@ static spi_t spis[] = { // One for each SPI.
|
||||||
.sck_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA,
|
.sck_gpio_drive_strength = GPIO_DRIVE_STRENGTH_8MA,
|
||||||
|
|
||||||
// One of my cards doesn't seem to work beyond 5MHz :(
|
// One of my cards doesn't seem to work beyond 5MHz :(
|
||||||
.baud_rate = 5 * 1000 * 1000,
|
.baud_rate = SD_MHZ * 1000 * 1000,
|
||||||
//.baud_rate = 25 * 1000 * 1000, // Actual frequency: 20833333.
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue