Skip to content

Commit 3f703f1

Browse files
author
Bogdan Marinescu
committed
[LPC11C24] Make code compatible with the interrupt chaining code
1 parent 7b9081b commit 3f703f1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11CXX/cmsis_nvic.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
* Option 2 is the one to go for, as RAM is the most valuable resource
2828
*/
2929

30-
#define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals
3130
#define NVIC_RAM_VECTOR_ADDRESS (0x10000000) // Vectors positioned at start of RAM
3231

3332
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {

libraries/mbed/targets/cmsis/TARGET_NXP/TARGET_LPC11CXX/cmsis_nvic.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
#include "cmsis.h"
1111

12+
#define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals
13+
#define NVIC_USER_IRQ_OFFSET 16
14+
1215
#ifdef __cplusplus
1316
extern "C" {
1417
#endif

0 commit comments

Comments
 (0)