diff --git a/cpu/stm32f4/periph/timer.c b/cpu/stm32f4/periph/timer.c index 81fe98425984c87c38ab2d5c27f24ceb7e98ab04..893e04bc5c512a82594ab76af5f17be6a7d9d285 100644 --- a/cpu/stm32f4/periph/timer.c +++ b/cpu/stm32f4/periph/timer.c @@ -63,7 +63,7 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int)) NVIC_SetPriority(TIMER_1_IRQ_CHAN, TIMER_IRQ_PRIO); /* select timer */ timer = TIMER_1_DEV; - timer->PSC = TIMER_0_PRESCALER * ticks_per_us; + timer->PSC = TIMER_1_PRESCALER * ticks_per_us; break; #endif case TIMER_UNDEFINED: