CooCox CoOS User's Guide
CooCox CoOS User's Guide
CooCox CoOS User's Guide
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
OPT_WAIT_ALL, Wait for all the flags<br />
OPT_WAIT_ANY, Wait for a single flag<br />
[out] Perr<br />
The type of the error returned:<br />
E_INVALID_PARAMETER, The parameter is invalid.<br />
E_FLAG_NOT_READY, The flag isn’t in the ready state.<br />
E_OK,<br />
Obtain the flags successfully.<br />
Returns:<br />
The flag which trigger the function to return successfully<br />
Example usage:<br />
#include "CCRTOS.h"<br />
OS_FlagID flag;<br />
void TaskN (void *pdata)<br />
{<br />
StatusType result;<br />
U32 getFlag<br />
...<br />
flagID1 = CoCreateFlag(0,0); // Manually reset, the initial configuration is not ready<br />
flagID2 = CoCreateFlag(0,0); // Manually reset, the initial configuration is not ready<br />
flagID3 = CoCreateFlag(0,0); // Manually reset, the initial configuration is not ready<br />
Flag = 1