12.07.2015 Views

CooCox CoOS 用户手册

CooCox CoOS 用户手册

CooCox CoOS 用户手册

SHOW MORE
SHOW LESS

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){StatusType result;...result = CoAcceptSingleFlag (flag);if (result != E_OK){if (result == E_INVALID_ID){printf("Invalid Flag ID !\n");}else if (result == E_FLAG_NOT_READY){printf("None get !\n");}}else{/* process Flag here */}...}6.10.4 CoAcceptMultipleFlags()U32 CoAcceptMultipleFlags( flags waitTypeU32U8flags,StatusType* perr);waitType,:104

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!