Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>CooCox</strong> <strong>CoOS</strong> 6.7.2 CoDelSem()StatusType CoDelSem(ID idID);OS_EventID id,U8 optEVENT_DEL_NO_PENDEVENT_DEL_ANYWAYE_INVALID_IDE_INVALID_PARAMETERE_TASK_WAITINGE_OK#include "CCRTOS.h"OS_EventID semaphore;void TaskN (void *pdata){}StatusType result;.../* Create a semaphore */optIDIDIDresult = CoDeleteSem (semaphore, OPT_DEL_ANYWAY);if (result != E_OK){}{if (result == E_INVALID_ID)}...printf("Invalid event ID !\n");:77