Skip to content
Snippets Groups Projects
Commit 191a230a authored by Peter Kietzmann's avatar Peter Kietzmann
Browse files

Merge pull request #3799 from haukepetersen/fix_stm32f4_timer1prescaler

cpu/stm32f4: fixed typo in prescaler for timer1
parents bad1a74b a4d393ee
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ int timer_init(tim_t dev, unsigned int ticks_per_us, void (*callback)(int)) ...@@ -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); NVIC_SetPriority(TIMER_1_IRQ_CHAN, TIMER_IRQ_PRIO);
/* select timer */ /* select timer */
timer = TIMER_1_DEV; timer = TIMER_1_DEV;
timer->PSC = TIMER_0_PRESCALER * ticks_per_us; timer->PSC = TIMER_1_PRESCALER * ticks_per_us;
break; break;
#endif #endif
case TIMER_UNDEFINED: case TIMER_UNDEFINED:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment