Download AMX 68000 User's Manual
Transcript
cjcfdi cjcfei cjcfdi cjcfei Purpose Disable or Enable Interrupts Used by n Setup Prototype in file CJZZZTF.H or macro #include "CJZZZ.H" void CJ_CCPP cjcfdi(void); void CJ_CCPP cjcfei(void); Description Tasks can use cjcfdi to briefly disable all sources of interrupt. Immediately thereafter the task can use cjcfei to enable all sources of interrupt again. Interrupts n Returns Nothing Task n ISP n Timer Procedure (cjcfdi only) n Restart Procedure Disabled by cjcfdi n n Exit Procedure in file CJZZZCC.H. Enabled by cjcfei The interrupt priority in the status register (SR) is set to 6 to disable interrupts or reset to 0 to enable interrupts. Restrictions ISPs must not use cjcfei. If nested interrupts are supported in your application, ISPs must always use cjcfflagwr to restore interrupts to the state determined by an earlier call to cjcfflagrd. Interrupts should be enabled within a short time after they are disabled or system performance will be degraded. See Also B-6 cjcfflagrd, cjcfflagwr KADAK AMX 68000 Target Guide