1
This commit is contained in:
parent
33fec01526
commit
ee4ceec3d9
@ -254,9 +254,12 @@ namespace a8
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a8::XParams& XTimer::GetTimerXParams(xtimer_list* timer)
|
a8::XParams* XTimer::MutableParams(xtimer_list* timer)
|
||||||
{
|
{
|
||||||
return timer->param;
|
if (!timer) {
|
||||||
|
abort();
|
||||||
|
}
|
||||||
|
return &timer->param;
|
||||||
}
|
}
|
||||||
|
|
||||||
xtimer_list* XTimer::GetRunningTimer()
|
xtimer_list* XTimer::GetRunningTimer()
|
||||||
|
@ -40,7 +40,7 @@ namespace a8
|
|||||||
void DeleteTimer(xtimer_list* timer);
|
void DeleteTimer(xtimer_list* timer);
|
||||||
//通过关联的list_head获取定时器对象
|
//通过关联的list_head获取定时器对象
|
||||||
xtimer_list* GetTimerByAttach(list_head* attach_entry);
|
xtimer_list* GetTimerByAttach(list_head* attach_entry);
|
||||||
a8::XParams& GetTimerXParams(xtimer_list* timer);
|
a8::XParams* MutableParams(xtimer_list* timer);
|
||||||
xtimer_list* GetRunningTimer();
|
xtimer_list* GetRunningTimer();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user