Question: I have a question about PtReqIssue. If I call it using PtReqIssue(pointer,-1) then do I have to include task.h, or have called TaskInitTasking(), since there is no requirement for a semaphore.

Answer: Well, it appears that there's nothing in the executive that will prevent you from doing this, because, as you say, it is just a semaphore. However, we would recommend that you make the call to TaskInitTasking first. When you try to install the semaphore, if TaskInitTasking hasn't been called yet then things will go awry (TaskOpenSema requires that TaskInitTasking has been called). Basically, you can't do much without the taskinitTasking call, but what you suggest above seems to be okay. You won't need task.h, but mp_ptreq.h will be required.


Device: TMS320C8x
Category: TI Tools
Detail: Code Generation Tools
Detail2: Compiler
Title: PtReqIssue
Source: Case from TMS320 Hotline
Date: 8/1/97
GenId: 0008027

© Copyright 1998 Texas Instruments Incorporated. All rights reserved.
Trademarks, Important Notice!