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.
This commit is contained in:
parent
49acf98841
commit
0629d076eb
@ -141,7 +141,7 @@ int timer_clear(tim_t tim, int channel)
|
|||||||
|
|
||||||
dev(tim)->TC_CHANNEL[0].TC_IDR = (TC_IDR_CPAS << channel);
|
dev(tim)->TC_CHANNEL[0].TC_IDR = (TC_IDR_CPAS << channel);
|
||||||
|
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int timer_read(tim_t tim)
|
unsigned int timer_read(tim_t tim)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user