Skip to content

Commit 2fbc20f

Browse files
committed
Fix timer1 irq configuration
1 parent b17601e commit 2fbc20f

File tree

1 file changed

+2
-2
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52

1 file changed

+2
-2
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/us_ticker.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ void us_ticker_init(void)
9090

9191
NVIC_SetVector(TIMER1_IRQn, (uint32_t)us_ticker_irq_handler);
9292

93-
NRFX_IRQ_PRIORITY_SET(nrfx_get_irq_number((void const*)TIMER1_IRQn), APP_IRQ_PRIORITY_HIGH);
94-
NRFX_IRQ_ENABLE(nrfx_get_irq_number((void const*)TIMER1_IRQn));
93+
NRFX_IRQ_PRIORITY_SET(TIMER1_IRQn, APP_IRQ_PRIORITY_HIGH);
94+
NRFX_IRQ_ENABLE(TIMER1_IRQn);
9595

9696
nrf_timer_task_trigger(NRF_TIMER1, NRF_TIMER_TASK_START);
9797

0 commit comments

Comments
 (0)