初级会员

- 积分
- 122
- 金钱
- 122
- 注册时间
- 2015-11-1
- 在线时间
- 44 小时
|
1金钱
使用UCOSIII时OSTimeTick函数在os_cpu_c.c中被OS_CPU_SysTickHandler (void)调用。在delay.c中被SysTick_Handler()调用。哪个为准,难道都在执行?代码如下
void SysTick_Handler(void)
{
if(delay_osrunning==1)
{
OSIntEnter();
OSTimeTick();
OSIntExit(); /
}
}
void OS_CPU_SysTickHandler (void)
{
CPU_SR_ALLOC();
CPU_CRITICAL_ENTER();
OSIntNestingCtr++; /* Tell uC/OS-III that we are starting an ISR */
CPU_CRITICAL_EXIT();
OSTimeTick(); /* Call uC/OS-III's OSTimeTick() */
OSIntExit(); /* Tell uC/OS-III that we are leaving the ISR */
}
|
|