Skip to content
Commit cdd4460a authored by Shan Pen's avatar Shan Pen Committed by Benjamin Cabé
Browse files

drivers: disk: sdmmc_stm32: Add compatibility macros for STM32F4 SDIO



Add compatibility macros to map SDMMC constants to SDIO equivalents
for STM32F4 series MCUs. STM32F4 uses SDIO peripheral with SDIO_*
constants while newer STM32F7/H7 series use SDMMC peripheral with
SDMMC_* constants.

This fixes compilation errors on STM32F4 platforms where SDMMC_*
constants are undefined:
- SDMMC_CLOCK_EDGE_RISING
- SDMMC_CLOCK_BYPASS_ENABLE/DISABLE
- SDMMC_CLOCK_POWER_SAVE_ENABLE/DISABLE
- SDMMC_HARDWARE_FLOW_CONTROL_DISABLE

Fixes zephyrproject-rtos/zephyr#94896

Signed-off-by: default avatarShan Pen <bricle031@gmail.com>
parent 6524cc4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment