Skip to content

Commit 171fe5a

Browse files
authored
Merge pull request #11479 from maciejbocianski/nrf51_systick_handler_fix
no-systick targets: fix systick irq handler setup
2 parents f51bbe0 + 94a08e9 commit 171fe5a

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)