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:
parent
ddcbfce391
commit
22f4ec81b0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user