DisableAllInterrupts() and EnableAllInterrupts() are supposed to use very few instructions, if latency is an issue. Since it's not, the cleaner way would probably be to use GetResource()/ReleaseResource() pairs.
There may be some documentation on the Freescale Web site, as I've tracked it down before. I can't recall where I found it, so instead I'll e-mail the OSEK docs that I'm using, which are mostly specifications docs. However, I find that they provide valuable insights into the architecture of the OS. As for the stack problem, you can assign an extended task a bigger stack within seconds by changing its STACKSIZE attribute. The attributes are described by the OSEK implementation language (OIL), which you can graphically modify using the OSEK Builder app. (Or, double-click on the osdef.oil file in the CW project window to launch OSEK Builder.) Pick the OIL Objects tab, click on your task, and in the Attributes window change the value for STACKSIZE from AUTO to, say 100. Then rebuild the application. If you're using events or ISR, the AUTO (default) settings isn't sufficient.
---Tom
Message Edited by J2MEJediMaster on 2006-10-09 03:45 PM
oil25.pdf
os223.pdf
Message Edited by t.dowe on 2009-10-15 01:24 PM