1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/mips32r2: adapt timer to return 0 on success

Adapt periph/timer implementation of mips32r2 based MCUs
to return 0 on success for all functions.
This commit is contained in:
Sebastian Meiling 2019-09-11 13:48:12 +02:00
parent ddcbfce391
commit 22f4ec81b0

View File

@ -135,7 +135,7 @@ int timer_set(tim_t dev, int channel, unsigned int timeout)
compares[channel] = counter + timeout;
irq_restore(status);
return 1;
return 0;
}
int timer_set_absolute(tim_t dev, int channel, unsigned int value)
@ -152,7 +152,7 @@ int timer_set_absolute(tim_t dev, int channel, unsigned int value)
compares[channel] = value;
irq_restore(status);
return 1;
return 0;
}
int timer_clear(tim_t dev, int channel)
@ -166,7 +166,7 @@ int timer_clear(tim_t dev, int channel)
compares[channel] = 0;
irq_restore(status);
return 1;
return 0;
}
unsigned int timer_read(tim_t dev)