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"void TaskN (void *pdata){StatusType sta;sta = CoSuspendTask (TaskMId); // Suspend TaskMif (sta != E_OK){if (sta==E_INVALID_ID){printf ("TaskM does not exist !\n");}else if (sta==E_ALREADY_IN_WAITING){printf ("TaskM is not ready !\n");}}}void TaskM (void *pdata){...}1TASK_WAITING2) 3 CoAwakeTask(taskID)6.2.7 CoAwakeTask()StatusType CoAwakeTask( taskID IDE_INVALID_ID E_TASK_NOT_WAITING E_TASK_WAIT_OTHEROS_TID task ID); ID ID : : : :52

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

Saved successfully!

Ooh no, something went wrong!