From 385eb3edc9bf1fe358f86a58623a7040f17ddd8c Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Wed, 3 Jun 2026 14:25:14 +0200 Subject: [PATCH] feat: ensure ArduinoCore-API support Signed-off-by: Frederic Pillon --- src/bsp_sd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bsp_sd.h b/src/bsp_sd.h index d75c2b9..26578d3 100644 --- a/src/bsp_sd.h +++ b/src/bsp_sd.h @@ -47,7 +47,11 @@ extern "C" { #include "PinNames.h" #include "stm32_def.h" #include "variant.h" +#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION <= 0x020C0000) #include "wiring_constants.h" +#else +#include "Common.h" +#endif #if !defined(STM32_CORE_VERSION) || (STM32_CORE_VERSION <= 0x01060100) #error "This library version required a STM32 core version > 1.6.1.\ Please update the core or install previous library version."