QP/C
Functions
qf_tick.c File Reference

QF_tick() implementation. More...

#include "qf_pkg.h"
#include "qassert.h"

Go to the source code of this file.

Functions

void QF_tick (void const *const sender)
 Processes all armed time events at every clock tick.

Detailed Description

QF_tick() implementation.

Definition in file qf_tick.c.


Function Documentation

void QF_tick ( void const *const  sender)

Processes all armed time events at every clock tick.

This function must be called periodically from a time-tick ISR or from the highest-priority task so that QF can manage the timeout events.

Note:
The QF_tick() function is not reentrant meaning that it must run to completion before it is called again. Also, QF_tick() assumes that it never will get preempted by a task, which is always the case when it is called from an ISR or the highest-priority task.
this function should be called only via the macro QF_TICK
See also:
QTimeEvt.

Definition at line 50 of file qf_tick.c.

References QTimeEvt::act, QTimeEvt::ctr, QTimeEvt::interval, QTimeEvt::next, Q_ASSERT, QACTIVE_POST, QF_EVT_REF_CTR_DEC_, QF_timeEvtListHead_, QS_BEGIN_NOCRIT_, QS_END_NOCRIT_, QS_OBJ_, QS_QF_TICK, QS_QF_TIMEEVT_AUTO_DISARM, QS_QF_TIMEEVT_POST, QS_teObj_, QS_tickCtr_, QS_TIME_, QEvt::sig, and QTimeEvt::super.