module ti.sdo.fc.utils.osal.OsalFactory |
 |
Factory to create osal objects
createSem() creates either a SemaphoreMP or a Semaphore object, depending
on ti.sdo.fc.Settings.multiProcess. This function returns the Semaphore
or SemaphoreMP handle cast as an ISemaphore handle. This allows
the caller to use the ISemaphore functions (eg, pend(), post()),
without having to make a check on whether to use Semaphore functions
or SemaphoreMP functions on the handle.
#include <ti/sdo/fc/utils/osal/OsalFactory.h>
Functions |
| |
Void | |
Functions common to all target modules |
|
|
OsalFactory_createSem() // module-wide |
 |
Create a SemaphoreMP object if ti.sdo.fc.Settings.multiProcess is true,
otherwise create a Semaphore object
ARGUMENTS
count
The count to initialize the semaphore with
key
A key for multi-process semaphore (if needed).
RETURNS
The Semaphore or SemaphoreMP handle, cast as an
ISemaphore handle.
OsalFactory_deleteSem() // module-wide |
 |
Delete the semaphore created in createSem()
ARGUMENTS
h
Handle returned by createSem().
Module-Wide Built-Ins |
 |
// Get this module's unique id
Bool OsalFactory_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool OsalFactory_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 OsalFactory_Module_getMask();
// Returns the diagnostics mask for this module
Void OsalFactory_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var OsalFactory = xdc.useModule('ti.sdo.fc.utils.osal.OsalFactory');
module-wide config parameters
generated on Mon, 16 Apr 2012 07:09:42 GMT