mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11479 from maciejbocianski/nrf51_systick_handler_fix
no-systick targets: fix systick irq handler setuppull/11504/head
commit
171fe5a619
|
@ -61,11 +61,9 @@ extern "C" {
|
||||||
IRQn_Type irq = OsTimer::get_irq_number();
|
IRQn_Type irq = OsTimer::get_irq_number();
|
||||||
|
|
||||||
NVIC_SetPriority(irq, 0xFF);
|
NVIC_SetPriority(irq, 0xFF);
|
||||||
#ifdef NVIC_RAM_VECTOR_ADDRESS
|
|
||||||
NVIC_SetVector(irq, (uint32_t)handler);
|
NVIC_SetVector(irq, (uint32_t)handler);
|
||||||
#else
|
|
||||||
MBED_ASSERT(handler == (IRQHandler_t)NVIC_GetVector(irq));
|
MBED_ASSERT(handler == (IRQHandler_t)NVIC_GetVector(irq));
|
||||||
#endif
|
|
||||||
if (irq >= 0) {
|
if (irq >= 0) {
|
||||||
NVIC_EnableIRQ(irq);
|
NVIC_EnableIRQ(irq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue