MCPcopy Create free account
hub / github.com/ARMmbed/DAPLink / TimerRemove

Function TimerRemove

source/rtos2/RTX/Source/rtx_timer.c:68–79  ·  view source on GitHub ↗

Remove Timer from the Timer List. \param[in] timer timer object.

Source from the content-addressed store, hash-verified

66/// Remove Timer from the Timer List.
67/// \param[in] timer timer object.
68static void TimerRemove (const os_timer_t *timer) {
69
70 if (timer->next != NULL) {
71 timer->next->tick += timer->tick;
72 timer->next->prev = timer->prev;
73 }
74 if (timer->prev != NULL) {
75 timer->prev->next = timer->next;
76 } else {
77 osRtxInfo.timer.list = timer->next;
78 }
79}
80
81/// Unlink Timer from the Timer List Head.
82/// \param[in] timer timer object.

Callers 3

svcRtxTimerStartFunction · 0.85
svcRtxTimerStopFunction · 0.85
svcRtxTimerDeleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected