From 67321ce9bc393820ec5661fedc103601fc8728d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= Date: Sun, 4 Oct 2015 00:21:57 +0200 Subject: [PATCH] cpu/msp430fxyz: Update to match timer_init API change --- cpu/msp430fxyz/periph/timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpu/msp430fxyz/periph/timer.c b/cpu/msp430fxyz/periph/timer.c index 3044494240..dbd4608a67 100644 --- a/cpu/msp430fxyz/periph/timer.c +++ b/cpu/msp430fxyz/periph/timer.c @@ -35,14 +35,14 @@ static void (*isr_cb)(int chan); -int timer_init(tim_t dev, unsigned int us_per_tick, void (*callback)(int)) +int timer_init(tim_t dev, unsigned long freq, void (*callback)(int)) { /* using fixed TIMER_BASE for now */ if (dev != 0) { return -1; } - /* TODO: configure time-base depending on us_per_tick value */ - if (us_per_tick != 1) { + /* TODO: configure time-base depending on freq value */ + if (freq != 1000000ul) { return -1; }