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

stm32l1/timer: fix callback argument initialization

This commit is contained in:
lakshbhatia 2016-03-04 18:25:03 +01:00
parent f98b80f75f
commit 773453e187

View File

@ -56,7 +56,7 @@ int timer_init(tim_t dev, unsigned long freq, timer_cb_t cb, void *arg)
tim = _tim(dev);
/* save callback */
isr_ctx[dev].cb = cb;
isr_ctx[dev].cb = arg;
isr_ctx[dev].arg = arg;
/* enable peripheral clock */
RCC->APB1ENR |= (1 << timer_config[dev].rcc);
/* reset timer and configure to up-counting mode */