2014-04-06 11:43:13 -04:00
|
|
|
/**
|
|
|
|
* \file
|
2014-04-13 21:30:44 -04:00
|
|
|
* \brief QHsm_dispatch_() and QHsm_tran_() definitions
|
2014-04-06 11:43:13 -04:00
|
|
|
* \ingroup qep
|
|
|
|
* \cond
|
|
|
|
******************************************************************************
|
2012-08-14 18:07:04 -04:00
|
|
|
* Product: QEP/C
|
2014-04-06 11:43:13 -04:00
|
|
|
* Last updated for version 5.3.0
|
2014-04-13 21:30:44 -04:00
|
|
|
* Last updated on 2014-04-09
|
2012-08-14 18:07:04 -04:00
|
|
|
*
|
|
|
|
* Q u a n t u m L e a P s
|
|
|
|
* ---------------------------
|
|
|
|
* innovating embedded systems
|
|
|
|
*
|
2014-04-06 11:43:13 -04:00
|
|
|
* Copyright (C) Quantum Leaps, www.state-machine.com.
|
2012-08-14 18:07:04 -04:00
|
|
|
*
|
|
|
|
* This program is open source software: you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as published
|
2013-10-16 16:44:03 -04:00
|
|
|
* by the Free Software Foundation, either version 3 of the License, or
|
2012-08-14 18:07:04 -04:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Alternatively, this program may be distributed and modified under the
|
|
|
|
* terms of Quantum Leaps commercial licenses, which expressly supersede
|
|
|
|
* the GNU General Public License and are specifically designed for
|
|
|
|
* licensees interested in retaining the proprietary status of their code.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* Contact information:
|
2014-04-06 11:43:13 -04:00
|
|
|
* Web: www.state-machine.com
|
|
|
|
* Email: info@state-machine.com
|
|
|
|
******************************************************************************
|
|
|
|
* \endcond
|
|
|
|
*/
|
|
|
|
#include "qep_port.h" /* QEP port */
|
2012-08-14 18:07:04 -04:00
|
|
|
#include "qep_pkg.h"
|
|
|
|
#include "qassert.h"
|
2014-04-06 11:43:13 -04:00
|
|
|
#ifdef Q_SPY /* QS software tracing enabled? */
|
|
|
|
#include "qs_port.h" /* include QS port */
|
|
|
|
#else
|
|
|
|
#include "qs_dummy.h" /* disable the QS software tracing */
|
|
|
|
#endif /* Q_SPY */
|
2012-08-14 18:07:04 -04:00
|
|
|
|
|
|
|
Q_DEFINE_THIS_MODULE("qhsm_dis")
|
|
|
|
|
2014-04-13 21:30:44 -04:00
|
|
|
/*! helper function to execute a transition chain in HSM */
|
2014-04-06 11:43:13 -04:00
|
|
|
static int_fast8_t QHsm_tran_(QHsm * const me,
|
|
|
|
QStateHandler path[QHSM_MAX_NEST_DEPTH_]);
|
|
|
|
|
|
|
|
/****************************************************************************/
|
2012-08-14 18:07:04 -04:00
|
|
|
/**
|
2014-04-06 11:43:13 -04:00
|
|
|
* \description
|
|
|
|
* Dispatches an event for processing to a hierarchical state machine (HSM).
|
|
|
|
* The processing of an event represents one run-to-completion (RTC) step.
|
|
|
|
*
|
|
|
|
* \arguments
|
|
|
|
* \arg[in,out] \c me pointer (see \ref derivation)
|
|
|
|
* \arg[in] \c e pointer to the event to be dispatched to the HSM
|
|
|
|
*
|
|
|
|
* \note
|
|
|
|
* This function should be called only via the virtual table (see
|
|
|
|
* QMSM_DISPATCH()) and should NOT be called directly in the applications.
|
2012-08-14 18:07:04 -04:00
|
|
|
*/
|
2013-12-30 17:37:40 -05:00
|
|
|
void QHsm_dispatch_(QHsm * const me, QEvt const * const e) {
|
2013-09-23 14:34:35 -04:00
|
|
|
QStateHandler t = me->state.fun;
|
2012-08-14 18:07:04 -04:00
|
|
|
QStateHandler s;
|
|
|
|
QState r;
|
|
|
|
QS_CRIT_STAT_
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/** \pre the state configuration must be stable */
|
|
|
|
Q_REQUIRE_ID(100, t == me->temp.fun);
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
QS_BEGIN_(QS_QEP_DISPATCH, QS_priv_.smObjFilter, me)
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_TIME_(); /* time stamp */
|
|
|
|
QS_SIG_(e->sig); /* the signal of the event */
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(t); /* the current state */
|
2012-08-14 18:07:04 -04:00
|
|
|
QS_END_()
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* process the event hierarchically... */
|
|
|
|
do {
|
2013-09-23 14:34:35 -04:00
|
|
|
s = me->temp.fun;
|
2014-04-06 11:43:13 -04:00
|
|
|
r = (*s)(me, e); /* invoke state handler s */
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
if (r == (QState)Q_RET_UNHANDLED) { /* unhandled due to a guard? */
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
QS_BEGIN_(QS_QEP_UNHANDLED, QS_priv_.smObjFilter, me)
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_SIG_(e->sig); /* the signal of the event */
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(s); /* the current state */
|
2012-08-14 18:07:04 -04:00
|
|
|
QS_END_()
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
r = QEP_TRIG_(s, QEP_EMPTY_SIG_); /* find superstate of s */
|
2012-08-14 18:07:04 -04:00
|
|
|
}
|
2013-09-23 14:34:35 -04:00
|
|
|
} while (r == (QState)Q_RET_SUPER);
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* transition taken? */
|
|
|
|
if (r >= (QState)Q_RET_TRAN) {
|
|
|
|
QStateHandler path[QHSM_MAX_NEST_DEPTH_];
|
|
|
|
int_fast8_t ip;
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
path[0] = me->temp.fun; /* save the target of the transition */
|
2012-08-14 18:07:04 -04:00
|
|
|
path[1] = t;
|
2013-12-30 17:37:40 -05:00
|
|
|
path[2] = s;
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* exit current state to transition source s... */
|
|
|
|
for (; t != s; t = me->temp.fun) {
|
2013-09-23 14:34:35 -04:00
|
|
|
if (QEP_TRIG_(t, Q_EXIT_SIG) == (QState)Q_RET_HANDLED) {
|
|
|
|
QS_BEGIN_(QS_QEP_STATE_EXIT, QS_priv_.smObjFilter, me)
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(t); /* the exited state */
|
2012-08-14 18:07:04 -04:00
|
|
|
QS_END_()
|
|
|
|
|
|
|
|
(void)QEP_TRIG_(t, QEP_EMPTY_SIG_); /* find superstate of t */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-12-30 17:37:40 -05:00
|
|
|
ip = QHsm_tran_(me, path);
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
#ifdef Q_SPY
|
|
|
|
if (r == (QState)Q_RET_TRAN_HIST) {
|
|
|
|
|
|
|
|
QS_BEGIN_(QS_QEP_TRAN_HIST, QS_priv_.smObjFilter, me)
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(t); /* the source of the transition */
|
|
|
|
QS_FUN_(path[0]);/* the target of the tran. to history */
|
|
|
|
QS_END_()
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif /* Q_SPY */
|
|
|
|
|
|
|
|
/* retrace the entry path in reverse (desired) order... */
|
|
|
|
for (; ip >= (int_fast8_t)0; --ip) {
|
|
|
|
QEP_ENTER_(path[ip]); /* enter path[ip] */
|
2012-08-14 18:07:04 -04:00
|
|
|
}
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
t = path[0]; /* stick the target into register */
|
|
|
|
me->temp.fun = t; /* update the next state */
|
|
|
|
|
|
|
|
/* drill into the target hierarchy... */
|
2013-09-23 14:34:35 -04:00
|
|
|
while (QEP_TRIG_(t, Q_INIT_SIG) == (QState)Q_RET_TRAN) {
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
QS_BEGIN_(QS_QEP_STATE_INIT, QS_priv_.smObjFilter, me)
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(t); /* the source (pseudo)state */
|
|
|
|
QS_FUN_(me->temp.fun); /* the target of the transition */
|
2012-08-14 18:07:04 -04:00
|
|
|
QS_END_()
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
ip = (int_fast8_t)0;
|
2013-09-23 14:34:35 -04:00
|
|
|
path[0] = me->temp.fun;
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
(void)QEP_TRIG_(me->temp.fun, QEP_EMPTY_SIG_);/*find superstate */
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
while (me->temp.fun != t) {
|
2012-08-14 18:07:04 -04:00
|
|
|
++ip;
|
2013-09-23 14:34:35 -04:00
|
|
|
path[ip] = me->temp.fun;
|
|
|
|
(void)QEP_TRIG_(me->temp.fun, QEP_EMPTY_SIG_);/* find super */
|
2012-08-14 18:07:04 -04:00
|
|
|
}
|
2013-09-23 14:34:35 -04:00
|
|
|
me->temp.fun = path[0];
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* entry path must not overflow */
|
|
|
|
Q_ASSERT_ID(110, ip < (int_fast8_t)QHSM_MAX_NEST_DEPTH_);
|
|
|
|
|
|
|
|
/* retrace the entry path in reverse (correct) order... */
|
|
|
|
do {
|
|
|
|
QEP_ENTER_(path[ip]); /* enter path[ip] */
|
2012-08-14 18:07:04 -04:00
|
|
|
--ip;
|
2014-04-06 11:43:13 -04:00
|
|
|
} while (ip >= (int_fast8_t)0);
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
t = path[0]; /* current state becomes the new source */
|
2012-08-14 18:07:04 -04:00
|
|
|
}
|
|
|
|
|
2013-09-23 14:34:35 -04:00
|
|
|
QS_BEGIN_(QS_QEP_TRAN, QS_priv_.smObjFilter, me)
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_TIME_(); /* time stamp */
|
|
|
|
QS_SIG_(e->sig); /* the signal of the event */
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(s); /* the source of the transition */
|
|
|
|
QS_FUN_(t); /* the new active state */
|
2012-08-14 18:07:04 -04:00
|
|
|
QS_END_()
|
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
|
2012-08-14 18:07:04 -04:00
|
|
|
#ifdef Q_SPY
|
2014-04-06 11:43:13 -04:00
|
|
|
else if (r == (QState)Q_RET_HANDLED) {
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_BEGIN_(QS_QEP_INTERN_TRAN, QS_priv_.smObjFilter, me)
|
|
|
|
QS_TIME_(); /* time stamp */
|
|
|
|
QS_SIG_(e->sig); /* the signal of the event */
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(s); /* the source state */
|
|
|
|
QS_END_()
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
}
|
|
|
|
else {
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
QS_BEGIN_(QS_QEP_IGNORED, QS_priv_.smObjFilter, me)
|
|
|
|
QS_TIME_(); /* time stamp */
|
|
|
|
QS_SIG_(e->sig); /* the signal of the event */
|
|
|
|
QS_OBJ_(me); /* this state machine object */
|
|
|
|
QS_FUN_(me->state.fun); /* the current state */
|
|
|
|
QS_END_()
|
2012-08-14 18:07:04 -04:00
|
|
|
|
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
#endif /* Q_SPY */
|
2012-08-14 18:07:04 -04:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
me->state.fun = t; /* change the current active state */
|
|
|
|
me->temp.fun = t; /* mark the configuration as stable */
|
2012-08-14 18:07:04 -04:00
|
|
|
}
|
2013-12-30 17:37:40 -05:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/****************************************************************************/
|
|
|
|
/**
|
|
|
|
* \description
|
|
|
|
* Static helper function to execute transition sequence in a hierarchical
|
|
|
|
* state machine (HSM).
|
|
|
|
*
|
|
|
|
* \arguments
|
|
|
|
* \arg[in,out] \c me pointer (see \ref derivation)
|
|
|
|
* \arg[in,out] \c path array of pointers to state-handler functions
|
|
|
|
* to execute the entry actions
|
|
|
|
* \returns the depth of the entry path stored in the \c path argument.
|
|
|
|
*/
|
|
|
|
static int_fast8_t QHsm_tran_(QHsm * const me,
|
|
|
|
QStateHandler path[QHSM_MAX_NEST_DEPTH_])
|
2013-12-30 17:37:40 -05:00
|
|
|
{
|
2014-04-06 11:43:13 -04:00
|
|
|
int_fast8_t ip = (int_fast8_t)(-1);/* transition entry path index */
|
|
|
|
int_fast8_t iq; /* helper transition entry path index */
|
2013-12-30 17:37:40 -05:00
|
|
|
QStateHandler t = path[0];
|
|
|
|
QStateHandler s = path[2];
|
|
|
|
QState r;
|
|
|
|
QS_CRIT_STAT_
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* (a) check source==target (transition to self)... */
|
|
|
|
if (s == t) {
|
|
|
|
QEP_EXIT_(s); /* exit the source */
|
|
|
|
ip = (int_fast8_t)0; /* enter the target */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
|
|
|
else {
|
2014-04-06 11:43:13 -04:00
|
|
|
(void)QEP_TRIG_(t, QEP_EMPTY_SIG_); /* find superstate of target */
|
2013-12-30 17:37:40 -05:00
|
|
|
|
|
|
|
t = me->temp.fun;
|
2014-04-06 11:43:13 -04:00
|
|
|
|
|
|
|
/* (b) check source==target->super... */
|
|
|
|
if (s == t) {
|
|
|
|
ip = (int_fast8_t)0; /* enter the target */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
|
|
|
else {
|
2014-04-06 11:43:13 -04:00
|
|
|
(void)QEP_TRIG_(s, QEP_EMPTY_SIG_); /* find superstate of src */
|
2013-12-30 17:37:40 -05:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* (c) check source->super==target->super... */
|
2013-12-30 17:37:40 -05:00
|
|
|
if (me->temp.fun == t) {
|
2014-04-06 11:43:13 -04:00
|
|
|
QEP_EXIT_(s); /* exit the source */
|
|
|
|
ip = (int_fast8_t)0; /* enter the target */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
|
|
|
else {
|
2014-04-06 11:43:13 -04:00
|
|
|
/* (d) check source->super==target... */
|
2013-12-30 17:37:40 -05:00
|
|
|
if (me->temp.fun == path[0]) {
|
2014-04-06 11:43:13 -04:00
|
|
|
QEP_EXIT_(s); /* exit the source */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
else {
|
|
|
|
/* (e) check rest of source==target->super->super..
|
|
|
|
* and store the entry path along the way
|
|
|
|
*/
|
|
|
|
iq = (int_fast8_t)0; /* indicate that LCA not found */
|
|
|
|
ip = (int_fast8_t)1; /* enter target and its superstate */
|
|
|
|
path[1] = t; /* save the superstate of target */
|
|
|
|
t = me->temp.fun; /* save source->super */
|
|
|
|
|
|
|
|
/* find target->super->super... */
|
2013-12-30 17:37:40 -05:00
|
|
|
r = QEP_TRIG_(path[1], QEP_EMPTY_SIG_);
|
|
|
|
while (r == (QState)Q_RET_SUPER) {
|
|
|
|
++ip;
|
2014-04-06 11:43:13 -04:00
|
|
|
path[ip] = me->temp.fun; /* store the entry path */
|
|
|
|
if (me->temp.fun == s) { /* is it the source? */
|
|
|
|
iq = (int_fast8_t)1; /* indicate that LCA found */
|
|
|
|
|
|
|
|
/* entry path must not overflow */
|
|
|
|
Q_ASSERT_ID(210,
|
|
|
|
ip < (int_fast8_t)QHSM_MAX_NEST_DEPTH_);
|
2013-12-30 17:37:40 -05:00
|
|
|
--ip; /* do not enter the source */
|
|
|
|
r = (QState)Q_RET_HANDLED; /* terminate loop */
|
|
|
|
}
|
|
|
|
else { /* it is not the source, keep going up */
|
|
|
|
r = QEP_TRIG_(me->temp.fun, QEP_EMPTY_SIG_);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* the LCA not found yet? */
|
|
|
|
if (iq == (int_fast8_t)0) {
|
2013-12-30 17:37:40 -05:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* entry path must not overflow */
|
|
|
|
Q_ASSERT_ID(120,
|
|
|
|
ip < (int_fast8_t)QHSM_MAX_NEST_DEPTH_);
|
|
|
|
|
|
|
|
QEP_EXIT_(s); /* exit the source */
|
2013-12-30 17:37:40 -05:00
|
|
|
|
|
|
|
/* (f) check the rest of source->super
|
|
|
|
* == target->super->super...
|
|
|
|
*/
|
|
|
|
iq = ip;
|
2014-04-06 11:43:13 -04:00
|
|
|
r = (QState)Q_RET_IGNORED; /* LCA NOT found */
|
2013-12-30 17:37:40 -05:00
|
|
|
do {
|
2014-04-06 11:43:13 -04:00
|
|
|
if (t == path[iq]) { /* is this the LCA? */
|
|
|
|
r = (QState)Q_RET_HANDLED; /* LCA found */
|
|
|
|
|
|
|
|
/* do not enter LCA */
|
|
|
|
ip = (int_fast8_t)(iq - (int_fast8_t)1);
|
|
|
|
iq = (int_fast8_t)(-1);/*terminate the loop */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
|
|
|
else {
|
2014-04-06 11:43:13 -04:00
|
|
|
--iq; /* try lower superstate of target */
|
2013-12-30 17:37:40 -05:00
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
} while (iq >= (int_fast8_t)0);
|
2013-12-30 17:37:40 -05:00
|
|
|
|
2014-04-06 11:43:13 -04:00
|
|
|
/* not found? */
|
|
|
|
if (r != (QState)Q_RET_HANDLED) {
|
2013-12-30 17:37:40 -05:00
|
|
|
/* (g) check each source->super->...
|
|
|
|
* for each target->super...
|
|
|
|
*/
|
2014-04-06 11:43:13 -04:00
|
|
|
r = (QState)Q_RET_IGNORED; /* keep looping */
|
2013-12-30 17:37:40 -05:00
|
|
|
do {
|
2014-04-06 11:43:13 -04:00
|
|
|
/* exit t unhandled? */
|
2013-12-30 17:37:40 -05:00
|
|
|
if (QEP_TRIG_(t, Q_EXIT_SIG)
|
|
|
|
== (QState)Q_RET_HANDLED)
|
|
|
|
{
|
|
|
|
QS_BEGIN_(QS_QEP_STATE_EXIT,
|
|
|
|
QS_priv_.smObjFilter, me)
|
|
|
|
QS_OBJ_(me);
|
|
|
|
QS_FUN_(t);
|
|
|
|
QS_END_()
|
|
|
|
|
|
|
|
(void)QEP_TRIG_(t, QEP_EMPTY_SIG_);
|
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
t = me->temp.fun; /* set to super of t */
|
2013-12-30 17:37:40 -05:00
|
|
|
iq = ip;
|
|
|
|
do {
|
2014-04-06 11:43:13 -04:00
|
|
|
/* is this LCA? */
|
|
|
|
if (t == path[iq]) {
|
|
|
|
/* do not enter LCA */
|
|
|
|
ip = (int_fast8_t)(iq-(int_fast8_t)1);
|
|
|
|
/* cause breaking out of inner loop */
|
|
|
|
iq = (int_fast8_t)(-1);
|
2013-12-30 17:37:40 -05:00
|
|
|
r = (QState)Q_RET_HANDLED;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
--iq;
|
|
|
|
}
|
2014-04-06 11:43:13 -04:00
|
|
|
} while (iq >= (int_fast8_t)0);
|
2013-12-30 17:37:40 -05:00
|
|
|
} while (r != (QState)Q_RET_HANDLED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return ip;
|
|
|
|
}
|