Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实现了Moe_Timer_Get_Left #21

Open
zhang00956 opened this issue Aug 14, 2018 · 0 comments
Open

实现了Moe_Timer_Get_Left #21

zhang00956 opened this issue Aug 14, 2018 · 0 comments

Comments

@zhang00956
Copy link

Title

Link
image

uint32 Moe_Timer_Get_Left(T_TIMER_NODE* ptNode)
{
uint32 rtrn = 0;
uint32 u32IntSt;
Moe_Timer_Process();
ENTER_CRITICAL_ZONE(u32IntSt);
if(ptNode) {
rtrn = ptNode->tTimer.u32TmLeft - sg_u32TmDiff;
}
EXIT_CRITICAL_ZONE(u32IntSt); /* Exit the critical zone */
return rtrn;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant