cpu/msp430fxyz: Update to match timer_init API change
This commit is contained in:
parent
1b0e0c62ac
commit
67321ce9bc
@ -35,14 +35,14 @@
|
|||||||
static void (*isr_cb)(int chan);
|
static void (*isr_cb)(int chan);
|
||||||
|
|
||||||
|
|
||||||
int timer_init(tim_t dev, unsigned int us_per_tick, void (*callback)(int))
|
int timer_init(tim_t dev, unsigned long freq, void (*callback)(int))
|
||||||
{
|
{
|
||||||
/* using fixed TIMER_BASE for now */
|
/* using fixed TIMER_BASE for now */
|
||||||
if (dev != 0) {
|
if (dev != 0) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
/* TODO: configure time-base depending on us_per_tick value */
|
/* TODO: configure time-base depending on freq value */
|
||||||
if (us_per_tick != 1) {
|
if (freq != 1000000ul) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user