Skip to content

Commit ec81bcc

Browse files
committed
Fix support for InterruptManager on KSDK 2
Add the define NVIC_NUM_VECTORS for KSDK 2 targets so InterruptManager is supported.
1 parent 2460907 commit ec81bcc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#ifndef MBED_CMSIS_NVIC_H
3333
#define MBED_CMSIS_NVIC_H
3434

35+
#define NVIC_NUM_VECTORS (16 + 74) // CORE + MCU Peripherals
36+
#define NVIC_USER_IRQ_OFFSET 16
37+
3538
#include "cmsis.h"
3639

3740
#ifdef __cplusplus

hal/targets/cmsis/TARGET_Freescale/TARGET_K64F/cmsis_nvic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#ifndef MBED_CMSIS_NVIC_H
3333
#define MBED_CMSIS_NVIC_H
3434

35+
#define NVIC_NUM_VECTORS (16 + 86) // CORE + MCU Peripherals
36+
#define NVIC_USER_IRQ_OFFSET 16
37+
3538
#include "cmsis.h"
3639

3740
#ifdef __cplusplus

hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#ifndef MBED_CMSIS_NVIC_H
3333
#define MBED_CMSIS_NVIC_H
3434

35+
#define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals
36+
#define NVIC_USER_IRQ_OFFSET 16
37+
3538
#include "cmsis.h"
3639

3740
#ifdef __cplusplus

0 commit comments

Comments
 (0)