From dbd32f94e5d2e2414b1a828f489c118b7b95ed0a Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Tue, 25 Oct 2016 09:51:25 -0700 Subject: [PATCH] NVIC virtualization was not committed for CM0 This is a workaround to fix the breaking build until someone adds NVIC virtualization to the CM0plus CMSIS header --- targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h index bf82fba558..e2fc226fdc 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h @@ -12,6 +12,11 @@ #define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals #define NVIC_USER_IRQ_OFFSET 16 +#if __CORTEX_M == 0 +#define __NVIC_SetVector NVIC_SetVector +#define __NVIC_GetVector NVIC_GetVector +#endif + #ifdef __cplusplus extern "C" { #endif