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.
This commit is contained in:
Sebastian Meiling 2019-09-11 13:44:46 +02:00
parent 1d24709674
commit cabaaebff4

View File

@ -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;
}
/*