nrf5/hal/timer: Update timer hal to use value provided in init to configure the irq_priority.

This commit is contained in:
Glenn Ruben Bakke 2017-06-02 18:24:59 +02:00 committed by glennrub
parent c28e94b534
commit ea95dcba4d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ void hal_timer_init(hal_timer_conf_t const * p_timer_conf) {
p_timer->SHORTS = (TIMER_SHORTS_COMPARE0_CLEAR_Enabled << TIMER_SHORTS_COMPARE0_CLEAR_Pos);
p_timer->TASKS_CLEAR = 1;
hal_irq_priority(TIMER_IRQ_NUM(p_timer_conf->id), 3);
hal_irq_priority(TIMER_IRQ_NUM(p_timer_conf->id), p_timer_conf->irq_priority);
}
void hal_timer_start(uint8_t id) {