From 244a7c007a45a5609ef4a53dce9f97e49d080a54 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 18 Mar 2020 18:40:04 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13453 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/ext/ST/STM32L5xx/stm32l552xx.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/os/common/ext/ST/STM32L5xx/stm32l552xx.h b/os/common/ext/ST/STM32L5xx/stm32l552xx.h index 4179c2f1b..88b2f147a 100644 --- a/os/common/ext/ST/STM32L5xx/stm32l552xx.h +++ b/os/common/ext/ST/STM32L5xx/stm32l552xx.h @@ -207,7 +207,9 @@ typedef enum #define __SAUREGION_PRESENT 1U /* SAU regions present */ #define __MPU_PRESENT 1U /* MPU present */ #define __VTOR_PRESENT 1U /* VTOR present */ -#define __NVIC_PRIO_BITS 3U /* Number of Bits used for Priority Levels */ +/* CHIBIOS FIX */ +//#define __NVIC_PRIO_BITS 3U /* Number of Bits used for Priority Levels */ +#define __NVIC_PRIO_BITS 4U /* Number of Bits used for Priority Levels */ #define __Vendor_SysTickConfig 0U /* Set to 1 if different SysTick Config is used */ #define __FPU_PRESENT 1U /* FPU present */ #define __DSP_PRESENT 1U /* DSP extension present */ @@ -1298,7 +1300,9 @@ typedef struct #pragma pop #elif defined (__ICCARM__) /* leave anonymous unions enabled */ -#elif (__ARMCC_VERSION >= 6010050) +/* CHIBIOS FIX */ +//#elif (__ARMCC_VERSION >= 6010050) +#elif defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050) #pragma clang diagnostic pop #elif defined (__GNUC__) /* anonymous unions are enabled by default */