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.
Descriptions:<br />
To wait the semaphore.<br />
Parameters:<br />
[in] id<br />
the designated semaphore ID<br />
[in] timeout<br />
Returns:<br />
E_CALL,<br />
overtime time,0 means waiting indefinitely<br />
E_INVALID_ID,<br />
E_TIMEOUT,<br />
E_OK,<br />
be called in the interrupt service<br />
program<br />
the semaphore ID that was<br />
incomed is invalid<br />
time is out for waiting resources<br />
to obtain the resources successfully<br />
84