Skip to content

Commit 06ee836

Browse files
committed
cmsis5\rtx5 put NVIC vector ops in mbed_boot.c
1 parent e3b2748 commit 06ee836

File tree

2 files changed

+5
-55
lines changed

2 files changed

+5
-55
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/cmsis_nvic.c

Lines changed: 0 additions & 44 deletions
This file was deleted.

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/cmsis_nvic.h

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,17 @@
2020
#ifndef MBED_CMSIS_NVIC_H
2121
#define MBED_CMSIS_NVIC_H
2222

23+
#define NVIC_RAM_VECTOR_ADDRESS (0x10000000) // Vectors positioned at start of RAM
24+
#define NVIC_ROM_VECTOR_ADDRESS (0x00000000) // Initial vector position at start of ROM
25+
2326
// CORE: 64 vectors = 64 bytes from 0x00 to 0x3F
2427
// MCU Peripherals: 85 vectors = 340 bytes from 0x40 to ...
2528
// Total: 128 vectors = 512 bytes (0x200) to be reserved in RAM
2629
#define NVIC_NUM_VECTORS 128
30+
#ifndef NVIC_USER_IRQ_OFFSET
2731
#define NVIC_USER_IRQ_OFFSET 64
28-
29-
#include "cmsis.h"
30-
31-
#ifdef __cplusplus
32-
extern "C" {
3332
#endif
3433

35-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
36-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
37-
38-
#ifdef __cplusplus
39-
}
40-
#endif
34+
#include "cmsis.h"
4135

4236
#endif

0 commit comments

Comments
 (0)