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> #include "CCRTOS.h"OS_FlagID flag;void TaskN (void *pdata){.../* Create a flag with auto reset,initial state: 0 */flag = CoCreateFlag (1, 0);if (result != E_OK){if (result == E_CREATE_FAIL){printf("Create flag fail !\n");}}else{printf("Flag ID : %d \n", flag);}...}6.10.2 CoDelFlag()StatusType CoDelFlag( idID optOS_FlagID id,U8);optEVENT_DEL_NO_PEND EVENT_DEL_ANYWAYE_INVALID_IDE_TASK_WAITINGIDID:102