Skip to content

Commit 69b45b7

Browse files
committed
Rename NVIC_Set/GetVector for K64F
This allows FEATURE_UVISOR to virtualize the NVIC calls.
1 parent 665a0d5 commit 69b45b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232

3333
extern void InstallIRQHandler(IRQn_Type irq, uint32_t irqHandler);
3434

35-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
35+
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
3636
InstallIRQHandler(IRQn, vector);
3737
}
3838

39-
uint32_t NVIC_GetVector(IRQn_Type IRQn) {
39+
uint32_t __NVIC_GetVector(IRQn_Type IRQn) {
4040
uint32_t *vectors = (uint32_t*)SCB->VTOR;
4141
return vectors[IRQn + 16];
4242
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
extern "C" {
4242
#endif
4343

44-
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
45-
uint32_t NVIC_GetVector(IRQn_Type IRQn);
44+
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
45+
uint32_t __NVIC_GetVector(IRQn_Type IRQn);
4646

4747
#ifdef __cplusplus
4848
}

0 commit comments

Comments
 (0)