fix(stm32): Optimize SDMMC timeout handling and clock divider#11251
fix(stm32): Optimize SDMMC timeout handling and clock divider#11251wdfk-prog wants to merge 1 commit intoRT-Thread:masterfrom
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: bsp_stm32Reviewers: @Liang1795 @hamburger-os @wdfk-prog Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-03-14 10:34 CST)
📝 Review Instructions
|
为什么提交这份PR (why to submit this PR)
STM32 SDMMC driver still has several issues in data transfer and clock configuration:
clk_getis not provided.This PR improves the SDMMC driver behavior and makes the logic more robust and maintainable.
你的解决方案是什么 (what is your solution)
This PR mainly includes the following changes:
stm32_sdio_clk_get) and use it when board-specificclk_getis not provided.stm32_sdmmc_calc_timeout) based on transfer size, improving timeout robustness.rthw_sdio_iocfg()and avoid unnecessary reconfiguration when the controller should remain stopped.请提供验证的bsp和config (provide the config and bsp)
BSP:
.config:
action: