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__)