mirror of https://github.com/ARMmbed/mbed-os.git
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 headerpull/3144/head
parent
f9b873db0a
commit
dbd32f94e5
|
@ -12,6 +12,11 @@
|
||||||
#define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals
|
#define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals
|
||||||
#define NVIC_USER_IRQ_OFFSET 16
|
#define NVIC_USER_IRQ_OFFSET 16
|
||||||
|
|
||||||
|
#if __CORTEX_M == 0
|
||||||
|
#define __NVIC_SetVector NVIC_SetVector
|
||||||
|
#define __NVIC_GetVector NVIC_GetVector
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue