From cc12853835e1fa6d63fec43efc938f8cf36984ab Mon Sep 17 00:00:00 2001 From: Sadik Ozer <46590392+ozersa@users.noreply.github.com> Date: Mon, 23 Sep 2024 20:43:23 +0300 Subject: [PATCH] feat(CMSIS): Add CMSIS 6.0 support to MAX32657 (#1180) Signed-off-by: Sadik Ozer --- Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h index 9c9d472e16..5b38135c1b 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h +++ b/Libraries/CMSIS/Device/Maxim/MAX32657/Include/max32657.h @@ -152,7 +152,12 @@ typedef enum { #define __Vendor_SysTickConfig 0U /**< Is 1 if different SysTick counter is used */ #include +#if (__CM_CMSIS_VERSION == 0x60000) +/* If CMSIS version 6.0 use cmsis_gcc_m.h */ +#include +#else #include +#endif #include #if defined(__GNUC__)