Skip to content

Commit e3e6eac

Browse files
authored
Merge pull request #2 from desmond-blue/fix-timerirq
Fix timer1 irq configuration
2 parents 3b21b71 + e5615c9 commit e3e6eac

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)