mirror of https://github.com/ARMmbed/mbed-os.git
Rename NVIC_Set/GetVector for K64F
This allows FEATURE_UVISOR to virtualize the NVIC calls.pull/1936/head
parent
e4c217e21d
commit
516c7cdb80
|
|
@ -32,11 +32,11 @@
|
||||||
|
|
||||||
extern void InstallIRQHandler(IRQn_Type irq, uint32_t irqHandler);
|
extern void InstallIRQHandler(IRQn_Type irq, uint32_t irqHandler);
|
||||||
|
|
||||||
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
|
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
|
||||||
InstallIRQHandler(IRQn, vector);
|
InstallIRQHandler(IRQn, vector);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t NVIC_GetVector(IRQn_Type IRQn) {
|
uint32_t __NVIC_GetVector(IRQn_Type IRQn) {
|
||||||
uint32_t *vectors = (uint32_t*)SCB->VTOR;
|
uint32_t *vectors = (uint32_t*)SCB->VTOR;
|
||||||
return vectors[IRQn + 16];
|
return vectors[IRQn + 16];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
|
void __NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
|
||||||
uint32_t NVIC_GetVector(IRQn_Type IRQn);
|
uint32_t __NVIC_GetVector(IRQn_Type IRQn);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue