add GetTimerXParams

This commit is contained in:
aozhiwei 2019-05-13 11:26:03 +08:00
parent dcbdf747c4
commit 12fc959d9c
2 changed files with 6 additions and 0 deletions

View File

@ -251,6 +251,11 @@ namespace a8
}
}
a8::XParams& GetTimerXParams(xtimer_list* timer)
{
return timer->param;
}
void XTimer::UpdateTimer()
{
struct xtvec_base *base = base_;

View File

@ -40,6 +40,7 @@ namespace a8
void DeleteTimer(xtimer_list* timer);
//通过关联的list_head获取定时器对象
xtimer_list* GetTimerByAttach(list_head* attach_entry);
a8::XParams& GetTimerXParams(xtimer_list* timer);
private:
void UpdateTimer();