File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
uCOS-III_Wrapper/uCOS-III Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1139,18 +1139,16 @@ static void OS_TmrCallback(void *p_ara)
11391139 CPU_CRITICAL_EXIT ();
11401140 rt_timer_start (& (p_tmr -> Tmr )); /* 开启定时器 */
11411141 }
1142-
1143- if (p_tmr -> Opt == OS_OPT_TMR_ONE_SHOT )
1142+ else if (p_tmr -> Opt == OS_OPT_TMR_ONE_SHOT )
11441143 {
11451144 CPU_CRITICAL_ENTER ();
11461145 p_tmr -> State = OS_TMR_STATE_COMPLETED ;
11471146 p_tmr -> Remain = 0 ;
11481147 CPU_CRITICAL_EXIT ();
11491148 }
1150- else if (p_tmr -> Opt == OS_OPT_TMR_PERIODIC )
1149+ else if (p_tmr -> Opt == OS_OPT_TMR_PERIODIC )
11511150 {
11521151 CPU_CRITICAL_ENTER ();
1153- /*重新设定下一次定时器的参数*/
11541152 p_tmr -> Match = rt_tick_get () + p_tmr -> Tmr .init_tick ;
11551153 p_tmr -> Remain = p_tmr -> Period ;
11561154 CPU_CRITICAL_EXIT ();
You can’t perform that action at this time.
0 commit comments