From a4d393eea3987061da73b5e4c18294761524a3b0 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Tue, 8 Sep 2015 16:22:24 +0200 Subject: [PATCH] cpu/stm32f4: fixed typo in prescaler for timer1 --- cpu/stm32f4/periph/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32f4/periph/timer.c b/cpu/stm32f4/periph/timer.c index 81fe984259..893e04bc5c 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: