Merge pull request #4959 from shady33/fix-stm32l1-timer
Mistyped argument name
This commit is contained in:
commit
dcc58da35a
@ -56,7 +56,7 @@ int timer_init(tim_t dev, unsigned long freq, timer_cb_t cb, void *arg)
|
|||||||
tim = _tim(dev);
|
tim = _tim(dev);
|
||||||
/* save callback */
|
/* save callback */
|
||||||
isr_ctx[dev].cb = cb;
|
isr_ctx[dev].cb = cb;
|
||||||
isr_ctx[dev].cb = arg;
|
isr_ctx[dev].arg = arg;
|
||||||
/* enable peripheral clock */
|
/* enable peripheral clock */
|
||||||
RCC->APB1ENR |= (1 << timer_config[dev].rcc);
|
RCC->APB1ENR |= (1 << timer_config[dev].rcc);
|
||||||
/* reset timer and configure to up-counting mode */
|
/* reset timer and configure to up-counting mode */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user