From cabaaebff45ca7905db0aa1e77775f6866f8790f Mon Sep 17 00:00:00 2001 From: Sebastian Meiling Date: Wed, 11 Sep 2019 13:44:46 +0200 Subject: [PATCH] cpu/cc2538: adapt timer to return 0 on success Adapt periph/timer implementation of cc2538 based MCUs to return 0 on success for all functions. --- cpu/cc2538/periph/timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index 703f24777a..2c41341232 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -177,7 +177,7 @@ int timer_set_absolute(tim_t tim, int channel, unsigned int value) } dev(tim)->IMR |= chn_isr_cfg[channel].flag; - return 1; + return 0; } int timer_clear(tim_t tim, int channel) @@ -190,7 +190,7 @@ int timer_clear(tim_t tim, int channel) /* clear interupt flags */ dev(tim)->IMR &= ~(chn_isr_cfg[channel].flag); - return 1; + return 0; } /*