You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>CooCox</strong> <strong>CoOS</strong> 12 136.7.5 CoPostSem()StatusType CoPostSem(OS_EventID id);ID idIDE_INVALID_IDE_SEM_FULLE_OK#include "CCRTOS.h"OS_EventID semaphore;void TaskN (void *pdata){}StatusType result;.../* Post a semaphore */result = CoPostSem (semaphore);if (result != E_OK){}{{if (result == E_INVALID_ID)}printf("Invalid event ID !\n");IDIDelse if (result == E_NO_SEM_PEND)}...printf("There are no task waitting for the event !\n");:81