1
This commit is contained in:
parent
c02fdb4a92
commit
fdce7c9025
@ -292,6 +292,14 @@ namespace a8
|
||||
return &timer->param;
|
||||
}
|
||||
|
||||
a8::XParams* XTimer::MutableParams(std::weak_ptr<XTimerPtr>& ptr)
|
||||
{
|
||||
if (ptr.expired()) {
|
||||
abort();
|
||||
}
|
||||
return MutableParams(ptr.lock()->timer);
|
||||
}
|
||||
|
||||
long long XTimer::GetRemainTime(xtimer_list* timer)
|
||||
{
|
||||
if (!timer) {
|
||||
|
@ -46,6 +46,7 @@ namespace a8
|
||||
xtimer_list* GetTimerByAttach(list_head* attach_entry);
|
||||
//获取定时器关联参数
|
||||
a8::XParams* MutableParams(xtimer_list* timer);
|
||||
a8::XParams* MutableParams(std::weak_ptr<XTimerPtr>& ptr);
|
||||
//获取定时器剩余时间
|
||||
long long GetRemainTime(xtimer_list* timer);
|
||||
//获取当前正在运行的定时器
|
||||
|
Loading…
x
Reference in New Issue
Block a user