Use TimerAlt rather than Alt.
It really ought to pick the right one depending on whether there are any timer guards.
This commit is contained in:
parent
7eaab68f04
commit
8880413128
|
@ -1597,13 +1597,13 @@ cgenAlt isPri s
|
|||
= do id <- csmLift $ makeNonce "alt_id"
|
||||
tell ["int ", id, " = 0;\n"]
|
||||
|
||||
tell ["Alt (wptr);\n"]
|
||||
tell ["TimerAlt (wptr);\n"]
|
||||
tell ["{\n"]
|
||||
genAltEnable id s
|
||||
tell ["}\n"]
|
||||
|
||||
-- Like occ21, this is always a PRI ALT, so we can use it for both.
|
||||
tell ["AltWait (wptr);\n"]
|
||||
tell ["TimerAltWait (wptr);\n"]
|
||||
tell [id, " = 0;\n"]
|
||||
tell ["{\n"]
|
||||
genAltDisable id s
|
||||
|
|
Loading…
Reference in New Issue
Block a user