Skip to content

Commit a9fe108

Browse files
committed
[EFM32] 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
1 parent 220363b commit a9fe108

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/common/cmsis_nvic.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals
1313
#define NVIC_USER_IRQ_OFFSET 16
1414

15+
#if __CORTEX_M == 0
16+
#define __NVIC_SetVector NVIC_SetVector
17+
#define __NVIC_GetVector NVIC_GetVector
18+
#endif
19+
1520
#ifdef __cplusplus
1621
extern "C" {
1722
#endif

0 commit comments

Comments
 (0)