diff --git a/cpu/kinetis_common/timer.c b/cpu/kinetis_common/timer.c index 83e1f195cff44d3b8da7cc47f6b90cb23ef5dc25..0982615e17271abbb9ebd9f031a17f10dd2f3234 100644 --- a/cpu/kinetis_common/timer.c +++ b/cpu/kinetis_common/timer.c @@ -144,7 +144,10 @@ int timer_set(tim_t dev, int channel, unsigned int timeout) int timer_set_absolute(tim_t dev, int channel, unsigned int value) { - (void) channel; /* we only support one channel */ + /* we only support one channel */ + if (channel != 0) { + return -1; + } switch (dev) { #if TIMER_0_EN @@ -180,7 +183,10 @@ int timer_set_absolute(tim_t dev, int channel, unsigned int value) int timer_clear(tim_t dev, int channel) { - (void) channel; /* we only support one channel */ + /* we only support one channel */ + if (channel != 0) { + return -1; + } switch (dev) { #if TIMER_0_EN