Skip to content

Commit 94a08e9

Browse files
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.
1 parent 5e69377 commit 94a08e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

rtos/source/TARGET_CORTEX/mbed_rtx_idle.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,9 @@ extern "C" {
6161
IRQn_Type irq = OsTimer::get_irq_number();
6262

6363
NVIC_SetPriority(irq, 0xFF);
64-
#ifdef NVIC_RAM_VECTOR_ADDRESS
6564
NVIC_SetVector(irq, (uint32_t)handler);
66-
#else
6765
MBED_ASSERT(handler == (IRQHandler_t)NVIC_GetVector(irq));
68-
#endif
66+
6967
if (irq >= 0) {
7068
NVIC_EnableIRQ(irq);
7169
}

0 commit comments

Comments
 (0)