Home
last modified time | relevance | path

Searched refs:tim (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/core/
Dtimer.c89 static void timCallFunc(struct Timer *tim) in timCallFunc() argument
92 TaggedPtr callInfo = tim->callInfo; in timCallFunc()
95 osSetCurrentTid(tim->tid); in timCallFunc()
96 ((TimTimerCbkF)taggedPtrToPtr(callInfo))(tim->id, tim->callData); in timCallFunc()
100 evt->timerId = tim->id; in timCallFunc()
101 evt->data = tim->callData; in timCallFunc()
102 if (!osEnqueuePrivateEvt(EVT_APP_TIMER, evt, timerCallFuncFreeF, tim->tid)) { in timCallFunc()
118 struct Timer *tim; in timFireAsNeededAndUpdateAlarms() local
128 for (i = 0, tim = &mTimers[0]; i < MAX_TIMERS; i++, tim++) { in timFireAsNeededAndUpdateAlarms()
129 if (!tim->id) in timFireAsNeededAndUpdateAlarms()
[all …]
/device/google/contexthub/firmware/os/platform/stm32/
Dplatform.c336 struct StmTim *tim = (struct StmTim*)TIM2_BASE; in TIM2_IRQHandler() local
339 tim->SR &=~ 1; in TIM2_IRQHandler()
342 tim->CR1 &=~ 1; in TIM2_IRQHandler()
388 struct StmTim *tim = (struct StmTim*)TIM2_BASE; in platSetTimerAlarm() local
392 tim->CR1 &=~ 1; in platSetTimerAlarm()
399 tim->CNT = delayInUsecs; in platSetTimerAlarm()
400 tim->SR &=~ 1; //clear int in platSetTimerAlarm()
401 tim->CR1 |= 1; in platSetTimerAlarm()
467 struct StmTim *tim = (struct StmTim*)TIM2_BASE; in sleepClockTmrWake() local
476 tim->CR1 &=~ 1; in sleepClockTmrWake()
[all …]