mirror of
https://github.com/micropython/micropython.git
synced 2026-01-18 09:57:18 +01:00
stm32/sdcard: Use high speed mode for SD transfers on H5/H7/N6.
This doubles the speed of SD card transfers. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
#define SDIO_HARDWARE_FLOW_CONTROL_ENABLE SDMMC_HARDWARE_FLOW_CONTROL_ENABLE
|
||||
|
||||
#if defined(STM32H5) || defined(STM32H7) || defined(STM32N6)
|
||||
#define SDIO_TRANSFER_CLK_DIV SDMMC_NSpeed_CLK_DIV
|
||||
#define SDIO_TRANSFER_CLK_DIV SDMMC_HSPEED_CLK_DIV
|
||||
#define SDIO_USE_GPDMA 0
|
||||
#else
|
||||
#define SDIO_TRANSFER_CLK_DIV SDMMC_TRANSFER_CLK_DIV
|
||||
|
||||
Reference in New Issue
Block a user