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_TCID sftmr;void TaskN (void *pdata){StatusType sta;U32 sftcnt;...sftcnt = CoGetCurTimerCnt (sftmr, &sta);if (sta != E_OK){if (sta == E_INVALID_ID){printf("The timer id passed is invalid, failed to stop. \n");}}else{printf("Current Timer Counter : %ld", sftcnt);}...}6.4.6 CoSetTmrCnt()StatusType CoSetTmrCnt(OS_TCID tmrID,U32 tmrCnt,U32 tmrReload tmrIDID tmrCnt tmrReload);:64