楼主好~ 囧~ 6 X, _* U/ a9 I, O
( s" n' J( @' |0 z; ?! z
我做这种同步线一般的想法是用watchdog
: d i$ V6 X+ y+ q/ D! Q5 R定义一个全局变量 x7 N: y" b+ t/ C$ y
条件实现令 x 为真
+ n8 s* x& N0 Z& d; U' b, V. W3 t
. h& E, d- V$ Q( r; B然后另外有独立如下代码6 A, y+ R6 R3 U! Y, F, k
while true loop; }5 T4 {% h$ h7 h' s" ^6 c8 { `- ?
if not x then
7 M" x* Z" V) l U- G* mwaituntil x prio 1
7 D( t3 }) Z5 l7 X& e; Iend --endif2 J1 R( k5 Y) _/ x
x:=false: s, \' p3 ~$ T+ K9 x
--条件实现后的操作1 R, v" y& |( K4 l
end --endwhile) M2 w& C+ W- i8 q7 Q8 u
- o, |! q' b! l a楼主先琢磨一下
# O' _5 f. A2 M- l" Y. P8 |% _7 h我有点事 之后我再琢磨下具体在楼主这里怎么弄~~~ |