Skip to content

Commit b8bab06

Browse files
committed
Fix build for STM32L4xx series
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent c57f0e5 commit b8bab06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/bsp_sd.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ uint8_t BSP_SD_Init(void)
156156
uSdHandle.Instance = SD_INSTANCE;
157157

158158
uSdHandle.Init.ClockEdge = SD_CLK_EDGE;
159-
#ifndef STM32H7xx
159+
#if !defined(STM32L4xx) && !defined(STM32H7xx)
160160
uSdHandle.Init.ClockBypass = SD_CLK_BYPASS;
161161
#endif
162162
uSdHandle.Init.ClockPowerSave = SD_CLK_PWR_SAVE;

0 commit comments

Comments
 (0)