123456789101112131415161718192021 |
- #include "includes.h"
- /*钩子pt任务
- 处理一些缓慢的小操作*/
- PT_THREAD (ptHookTask(pt_timer_t *ptPool, struct pt *pt)){
- static pt_timer_t ptTimer;
-
- PT_BEGIN(pt);
- while(1){
- chargeStatusCheck();
- gpsCntChecker();
- sysInfoShow();
- ticketStatusShow();
- apCtlMcu();
- setMcuPara(FALSE);
- PTTimerStart(ptPool, &ptTimer,100);//need set to 1 seconds
- PT_WAIT_UNTIL(pt, PTTimerIsExpired(&ptTimer));
- }
- PT_END(pt);
- }
|