fix systick irq handler setup

Remove checking that vectors were copied to RAM as not all targets
have NVIC_RAM_VECTOR_ADDRESS defined as public. Instead always
call NVIC_SetVector unconditionally as old implementation does.
pull/11479/head
Maciej Bocianski 2019-09-13 10:22:14 +02:00
parent 5e693778f4
commit 94a08e9aea
1 changed files with 1 additions and 3 deletions

View File

@ -61,11 +61,9 @@ extern "C" {
IRQn_Type irq = OsTimer::get_irq_number();
NVIC_SetPriority(irq, 0xFF);
#ifdef NVIC_RAM_VECTOR_ADDRESS
NVIC_SetVector(irq, (uint32_t)handler);
#else
MBED_ASSERT(handler == (IRQHandler_t)NVIC_GetVector(irq));
#endif
if (irq >= 0) {
NVIC_EnableIRQ(irq);
}