Skip to content

Commit c57f0e5

Browse files
committed
Add HAL configuration
Require stm32duino/Arduino_Core_STM32#518 Signed-off-by: Frederic Pillon <[email protected]>
1 parent 7498920 commit c57f0e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bsp_sd.h

+4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ extern "C" {
4444
#endif
4545

4646
/* Includes ------------------------------------------------------------------*/
47+
#include "stm32_def.h"
48+
#if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION <= 0x01050000)
4749
#include "variant.h"
50+
#endif
51+
4852
/* Could be redefined in variant.h or using build_opt.h */
4953
#ifndef SD_DATATIMEOUT
5054
#define SD_DATATIMEOUT 100000000U

0 commit comments

Comments
 (0)