1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

cpu/stm32f4: fixed typo in prescaler for timer1

This commit is contained in:
Hauke Petersen 2015-09-08 16:22:24 +02:00
parent bad1a74b65
commit a4d393eea3

View File

@ -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: