Skip to content

Commit

Permalink
cpu/stm32f0discovery: fixed timer irq prio macro
Browse files Browse the repository at this point in the history
  • Loading branch information
haukepetersen committed Mar 13, 2015
1 parent ba14149 commit 49491cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/stm32f0/periph/timer.c
Expand Up @@ -52,7 +52,7 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int))
/* enable timer peripheral clock */
TIMER_0_CLKEN();
/* set timer's IRQ priority */
NVIC_SetPriority(TIMER_0_IRQ_CHAN, TIMER_0_IRQ_PRIO);
NVIC_SetPriority(TIMER_0_IRQ_CHAN, TIMER_IRQ_PRIO);
/* select timer */
timer = TIMER_0_DEV;
break;
Expand All @@ -62,7 +62,7 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int))
/* enable timer peripheral clock */
TIMER_1_CLKEN();
/* set timer's IRQ priority */
NVIC_SetPriority(TIMER_1_IRQ_CHAN, TIMER_1_IRQ_PRIO);
NVIC_SetPriority(TIMER_1_IRQ_CHAN, TIMER_IRQ_PRIO);
/* select timer */
timer = TIMER_1_DEV;
break;
Expand Down

0 comments on commit 49491cf

Please sign in to comment.