48 DM_DBG6((
"dmTimerTick: start\n"));
80 timerRequest->
timeout = timeout;
124 timerlist_to_process = &dmAllShared->timerlist;
126 timerlist_to_process = timerlist_to_process->
flink;
128 while ((timerlist_to_process !=
agNULL) && (timerlist_to_process != &dmAllShared->timerlist))
130 nexttimerlist = timerlist_to_process->
flink;
136 if (timerRequest_to_process ==
agNULL)
138 DM_DBG1((
"dmProcessTimers: timerRequest_to_process is NULL! Error!!!\n"));
142 timerRequest_to_process->
timeout--;
144 if (timerRequest_to_process->
timeout == 0)
157 timerlist_to_process = nexttimerlist;
osGLOBAL void dmTimerTick(dmRoot_t *dmRoot)
#define DMLIST_DEQUEUE_THIS(hdr)
#define DMLIST_OBJECT_BASE(baseType, fieldName, fieldPtr)
#define DMLIST_INIT_ELEMENT(hdr)
#define DMLIST_ENQUEUE_AT_TAIL(toAddHdr, listHdr)
osGLOBAL void dmKillTimer(dmRoot_t *dmRoot, dmTimerRequest_t *timerRequest)
osGLOBAL void dmSetTimerRequest(dmRoot_t *dmRoot, dmTimerRequest_t *timerRequest, bit32 timeout, dmTimerCBFunc_t CBFunc, void *timerData1, void *timerData2, void *timerData3)
osGLOBAL void dmInitTimerRequest(dmRoot_t *dmRoot, dmTimerRequest_t *timerRequest)
osGLOBAL void dmAddTimer(dmRoot_t *dmRoot, dmList_t *timerListHdr, dmTimerRequest_t *timerRequest)
osGLOBAL void dmProcessTimers(dmRoot_t *dmRoot)
void(* dmTimerCBFunc_t)(dmRoot_t *dmRoot, void *timerData1, void *timerData2, void *timerData3)
The file defines the constants, data structure, and functions defined by LL API.
The file defines the declaration of tSDK APIs.
The file defines the declaration of OS APIs.
dmIntContext_t dmAllShared
data structure for timer request Timer requests are enqueued and dequeued using dmList_t and have a c...
dmTimerCBFunc_t timerCBFunc
osGLOBAL void tddmSingleThreadedLeave(dmRoot_t *dmRoot, bit32 syncLockId)
osGLOBAL void tddmSingleThreadedEnter(dmRoot_t *dmRoot, bit32 syncLockId)