From 0629d076eb40c5410e9d5b342af2a4c3b01d806d Mon Sep 17 00:00:00 2001 From: Sebastian Meiling Date: Wed, 11 Sep 2019 13:53:04 +0200 Subject: [PATCH] cpu/sam3: adapt timer to return 0 on success Adapt periph/timer implementation of sam3 based MCUs to return 0 on success for all functions. --- cpu/sam3/periph/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/sam3/periph/timer.c b/cpu/sam3/periph/timer.c index 1500e4c25c..93cdcd43d8 100644 --- a/cpu/sam3/periph/timer.c +++ b/cpu/sam3/periph/timer.c @@ -141,7 +141,7 @@ int timer_clear(tim_t tim, int channel) dev(tim)->TC_CHANNEL[0].TC_IDR = (TC_IDR_CPAS << channel); - return 1; + return 0; } unsigned int timer_read(tim_t tim)