Skip to content

Commit 27179a5

Browse files
johnkjellbergcarlescufi
authored andcommitted
drivers/disk: sdmmc: Fix build for STM32F4
Closes #46734 Signed-off-by: John Kjellberg <[email protected]>
1 parent 7f1b4f8 commit 27179a5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/disk/sdmmc_stm32.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ LOG_MODULE_REGISTER(stm32_sdmmc, CONFIG_SDMMC_LOG_LEVEL);
2222
#define MMC_TypeDef SDMMC_TypeDef
2323
#endif
2424

25+
#ifndef SDMMC_BUS_WIDE_1B
26+
#define SDMMC_BUS_WIDE_1B SDIO_BUS_WIDE_1B
27+
#endif
28+
29+
#ifndef SDMMC_BUS_WIDE_4B
30+
#define SDMMC_BUS_WIDE_4B SDIO_BUS_WIDE_4B
31+
#endif
32+
33+
#ifndef SDMMC_BUS_WIDE_8B
34+
#define SDMMC_BUS_WIDE_8B SDIO_BUS_WIDE_8B
35+
#endif
36+
2537
typedef void (*irq_config_func_t)(const struct device *dev);
2638

2739
struct stm32_sdmmc_priv {

0 commit comments

Comments
 (0)