Skip to content

Commit 7e76ec9

Browse files
committed
chore: ensure stm32 core version is higher than 2.12.0
Signed-off-by: Aymane Bahssain <aymane.bahssain@st.com>
1 parent 7e3ca68 commit 7e76ec9

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/NMEA_parser.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ extern "C" {
5353
/* Includes ------------------------------------------------------------------*/
5454
#include <stdint.h>
5555

56+
/* Core compatibility --------------------------------------------------------*/
57+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
58+
#error "This library is not compatible with core version used. Please update the core."
59+
#endif
5660

5761
/* Exported defines ----------------------------------------------------------*/
5862

src/teseo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ extern "C" {
5454
/* Includes ------------------------------------------------------------------*/
5555
#include <stdint.h>
5656

57+
/* Core compatibility --------------------------------------------------------*/
58+
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION < 0x020C0000)
59+
#error "This library is not compatible with core version used. Please update the core."
60+
#endif
5761

5862
/* Exported defines ----------------------------------------------------------*/
5963
/**

0 commit comments

Comments
 (0)