Code Examples.
More...
Code Examples.
The following code block shall create the above depicted sample state machine.
void* pMemory;
ClUint32T taskId;
ClRcT myTaskFunction(
void *);
clUint32 taskPriority;
cosTaskLock();
cosTaskUnlock();
time.tsMicroSecond=10;
ClUint32T memAllocated;
clOsalNumMemoryAllocGet (&memAllocated);
ClUint32T memFreed;
clOsalNumMemoryDeallocedGet (&memFreed);
ClUint8T* pSemName = "SEM_NAME";
ClUint32T value = 1;
void processFunction(void* pStr);
cosProcessSuspend(pid);
cosProcessResume(pid);
ClUint8T* pShmName = "SHM_NAME";
void* pMem;
ClUint32T size = 1000;
clUint16_t mode = 0;
cosCleanUp();