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:
Adam Sampson 2008-03-11 18:52:35 +00:00
parent 7eaab68f04
commit 8880413128

View File

@ -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