diff --git a/cpu/saml21/periph/timer.c b/cpu/saml21/periph/timer.c index c4d36d7b0f..d4f184575d 100644 --- a/cpu/saml21/periph/timer.c +++ b/cpu/saml21/periph/timer.c @@ -48,7 +48,7 @@ timer_conf_t config[TIMER_NUMOF]; /** * @brief Setup the given timer */ -int timer_init(tim_t dev, unsigned int us_per_ticks, void (*callback)(int)) +int timer_init(tim_t dev, unsigned long freq, void (*callback)(int)) { /* configure GCLK0 to feed TC0 & TC1*/; GCLK->PCHCTRL[TC0_GCLK_ID].reg |= GCLK_PCHCTRL_CHEN | GCLK_PCHCTRL_GEN_GCLK0;