Skip to content

Commit 9424eff

Browse files
no-systick targets: fix systick irq handler setup
1 parent 5e69377 commit 9424eff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/source/TARGET_CORTEX/mbed_rtx_idle.cpp

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

6363
NVIC_SetPriority(irq, 0xFF);
64-
#ifdef NVIC_RAM_VECTOR_ADDRESS
64+
#if defined(NVIC_RAM_VECTOR_ADDRESS) || defined(NO_SYSTICK)
6565
NVIC_SetVector(irq, (uint32_t)handler);
6666
#else
6767
MBED_ASSERT(handler == (IRQHandler_t)NVIC_GetVector(irq));

0 commit comments

Comments
 (0)