mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-14 06:43:19 +08:00
5.7.4a
This commit is contained in:
parent
d4b497378e
commit
d9c8f31845
@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<configurations XML_version="1.2" id="configurations_0">
|
|
||||||
<configuration XML_version="1.2" id="configuration_0">
|
|
||||||
<instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
|
|
||||||
<connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe">
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510icepick_c.xml" id="drivers" xml="tixds510icepick_c.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
|
|
||||||
<instance XML_version="1.2" href="drivers/tixds510cortexR.xml" id="drivers" xml="tixds510cortexR.xml" xmlpath="drivers"/>
|
|
||||||
<platform XML_version="1.2" id="platform_0">
|
|
||||||
<instance XML_version="1.2" desc="TMS570LS1224" href="devices/tms570ls1224.xml" id="TMS570LS1224" xml="tms570ls1224.xml" xmlpath="devices"/>
|
|
||||||
</platform>
|
|
||||||
</connection>
|
|
||||||
</configuration>
|
|
||||||
</configurations>
|
|
@ -1,9 +0,0 @@
|
|||||||
The 'targetConfigs' folder contains target-configuration (.ccxml) files, automatically generated based
|
|
||||||
on the device and connection settings specified in your project on the Properties > General page.
|
|
||||||
|
|
||||||
Please note that in automatic target-configuration management, changes to the project's device and/or
|
|
||||||
connection settings will either modify an existing or generate a new target-configuration file. Thus,
|
|
||||||
if you manually edit these auto-generated files, you may need to re-apply your changes. Alternatively,
|
|
||||||
you may create your own target-configuration file for this project and manage it manually. You can
|
|
||||||
always switch back to automatic target-configuration management by checking the "Manage the project's
|
|
||||||
target-configuration automatically" checkbox on the project's Properties > General page.
|
|
@ -1,4 +1,4 @@
|
|||||||
QHsmTst example, QEP 5.4.2
|
QHsmTst example, QEP 5.7.4
|
||||||
top-INIT;s-ENTRY;s2-ENTRY;s2-INIT;s21-ENTRY;s211-ENTRY;
|
top-INIT;s-ENTRY;s2-ENTRY;s2-INIT;s21-ENTRY;s211-ENTRY;
|
||||||
A:s21-A;s211-EXIT;s21-EXIT;s21-ENTRY;s21-INIT;s211-ENTRY;
|
A:s21-A;s211-EXIT;s21-EXIT;s21-ENTRY;s21-INIT;s211-ENTRY;
|
||||||
B:s21-B;s211-EXIT;s211-ENTRY;
|
B:s21-B;s211-EXIT;s211-ENTRY;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.4
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-11-04
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -356,7 +356,7 @@ QState QMsm_execTatbl_(QMsm * const me, QMTranActTable const *tatbl);
|
|||||||
/*! Tests if a given state is part of the current active state
|
/*! Tests if a given state is part of the current active state
|
||||||
* configuration in a MSM.
|
* configuration in a MSM.
|
||||||
*/
|
*/
|
||||||
bool QMsm_isInState(QMsm * const me, QMState const * const state);
|
bool QMsm_isInState(QMsm const * const me, QMState const * const state);
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
/*! Hierarchical State Machine. */
|
/*! Hierarchical State Machine. */
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qf
|
* @ingroup qf
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.2
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-09-23
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -642,7 +642,7 @@ bool QF_noTimeEvtsActiveX(uint_fast8_t const tickRate);
|
|||||||
void QF_add_(QMActive * const a);
|
void QF_add_(QMActive * const a);
|
||||||
|
|
||||||
/*! Remove the active object from the framework. */
|
/*! Remove the active object from the framework. */
|
||||||
void QF_remove_(QMActive const * const a);
|
void QF_remove_(QMActive * const a);
|
||||||
|
|
||||||
/*! Obtain the minimum of free entries of the given event pool. */
|
/*! Obtain the minimum of free entries of the given event pool. */
|
||||||
uint_fast16_t QF_getPoolMin(uint_fast8_t const poolId);
|
uint_fast16_t QF_getPoolMin(uint_fast8_t const poolId);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// Product: PC-Lint 9.x option file for linting QP/C
|
// Product: PC-Lint 9.x option file for linting QP/C
|
||||||
// Last updated for version 5.7.2
|
// Last updated for version 5.7.4
|
||||||
// Last updated on 2016-09-18
|
// Last updated on 2016-11-02
|
||||||
//
|
//
|
||||||
// Q u a n t u m L e a P s
|
// Q u a n t u m L e a P s
|
||||||
// ---------------------------
|
// ---------------------------
|
||||||
@ -52,8 +52,6 @@ qpc.lnt // QP/C options
|
|||||||
-strong(AXJ) // Strong type checking
|
-strong(AXJ) // Strong type checking
|
||||||
|
|
||||||
// general
|
// general
|
||||||
-esym(715, me) // Info: Symbol 'me' not referenced
|
|
||||||
-esym(818, me) // Info: Pointer 'me' could be pointing to const
|
|
||||||
+e900 // prints a success message at the end
|
+e900 // prints a success message at the end
|
||||||
|
|
||||||
// QEP
|
// QEP
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup ports
|
* @ingroup ports
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last Updated for Version: 5.6.5
|
* Last Updated for Version: 5.7.4
|
||||||
* Date of the Last Update: 2016-06-08
|
* Date of the Last Update: 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -186,7 +186,7 @@ void QActive_start_(QActive * const me, uint_fast8_t prio,
|
|||||||
me->thread = (uint8_t)1;
|
me->thread = (uint8_t)1;
|
||||||
}
|
}
|
||||||
/*..........................................................................*/
|
/*..........................................................................*/
|
||||||
void QActive_stop(QActive *me) {
|
void QActive_stop(QActive * const me) {
|
||||||
me->thread = (uint8_t)0; /* stop the QActive thread loop */
|
me->thread = (uint8_t)0; /* stop the QActive thread loop */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup ports
|
* @ingroup ports
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last Updated for Version: 5.7.3
|
* Last Updated for Version: 5.7.4
|
||||||
* Date of the Last Update: 2016-10-06
|
* Date of the Last Update: 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -122,7 +122,7 @@ static void swi_function(UArg arg0, UArg arg1) { /* TI-RTOS Swi signature */
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*..........................................................................*/
|
/*..........................................................................*/
|
||||||
void QActive_stop(QActive *me) {
|
void QActive_stop(QActive * const me) {
|
||||||
QF_remove_(me); /* remove the AO from the framework */
|
QF_remove_(me); /* remove the AO from the framework */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup ports
|
* @ingroup ports
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last Updated for Version: 5.4.0
|
* Last Updated for Version: 5.7.4
|
||||||
* Date of the Last Update: 2015-04-08
|
* Date of the Last Update: 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -32,8 +32,8 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*
|
*
|
||||||
* Contact information:
|
* Contact information:
|
||||||
* Web: www.state-machine.com
|
* http://www.state-machine.com
|
||||||
* Email: info@state-machine.com
|
* mailto:info@state-machine.com
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* @endcond
|
* @endcond
|
||||||
*/
|
*/
|
||||||
@ -128,7 +128,7 @@ static void task_function(void *pdata) { /* uC/OS-II task signature */
|
|||||||
OSTaskDel(OS_PRIO_SELF); /* make uC/OS-II forget about this task */
|
OSTaskDel(OS_PRIO_SELF); /* make uC/OS-II forget about this task */
|
||||||
}
|
}
|
||||||
/*..........................................................................*/
|
/*..........................................................................*/
|
||||||
void QActive_stop(QActive *me) {
|
void QActive_stop(QActive * const me) {
|
||||||
INT8U err;
|
INT8U err;
|
||||||
me->thread = (uint32_t)0; /* stop the thread loop */
|
me->thread = (uint32_t)0; /* stop the thread loop */
|
||||||
OSQDel(me->eQueue, OS_DEL_ALWAYS, &err); /* cleanup the queue */
|
OSQDel(me->eQueue, OS_DEL_ALWAYS, &err); /* cleanup the queue */
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qep
|
* @ingroup qep
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.5.0
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2015-09-04
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -260,8 +260,11 @@ void QHsm_dispatch_(QHsm * const me, QEvt const * const e) {
|
|||||||
QState r;
|
QState r;
|
||||||
QS_CRIT_STAT_
|
QS_CRIT_STAT_
|
||||||
|
|
||||||
/** @pre the state configuration must be stable */
|
/** @pre the current state must be initialized and
|
||||||
Q_REQUIRE_ID(400, t == me->temp.fun);
|
* the state configuration must be stable
|
||||||
|
*/
|
||||||
|
Q_REQUIRE_ID(400, (t != Q_STATE_CAST(0))
|
||||||
|
&& (t == me->temp.fun));
|
||||||
|
|
||||||
QS_BEGIN_(QS_QEP_DISPATCH, QS_priv_.smObjFilter, me)
|
QS_BEGIN_(QS_QEP_DISPATCH, QS_priv_.smObjFilter, me)
|
||||||
QS_TIME_(); /* time stamp */
|
QS_TIME_(); /* time stamp */
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qep
|
* @ingroup qep
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.1
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-09-20
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -519,7 +519,7 @@ static QState QMsm_enterHistory_(QMsm * const me, QMState const * const hist){
|
|||||||
*
|
*
|
||||||
* @returns 'true' if the MSM "is in" the @p state and 'false' otherwise
|
* @returns 'true' if the MSM "is in" the @p state and 'false' otherwise
|
||||||
*/
|
*/
|
||||||
bool QMsm_isInState(QMsm * const me, QMState const * const state) {
|
bool QMsm_isInState(QMsm const * const me, QMState const * const state) {
|
||||||
bool inState = false; /* assume that this MSM is not in 'state' */
|
bool inState = false; /* assume that this MSM is not in 'state' */
|
||||||
QMState const *s;
|
QMState const *s;
|
||||||
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qf
|
* @ingroup qf
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.1
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-09-17
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -106,7 +106,7 @@ void QF_add_(QMActive * const a) {
|
|||||||
*
|
*
|
||||||
* @sa QF_add_()
|
* @sa QF_add_()
|
||||||
*/
|
*/
|
||||||
void QF_remove_(QMActive const * const a) {
|
void QF_remove_(QMActive * const a) {
|
||||||
uint_fast8_t p = a->prio;
|
uint_fast8_t p = a->prio;
|
||||||
QF_CRIT_STAT_
|
QF_CRIT_STAT_
|
||||||
|
|
||||||
@ -121,6 +121,7 @@ void QF_remove_(QMActive const * const a) {
|
|||||||
QF_CRIT_ENTRY_();
|
QF_CRIT_ENTRY_();
|
||||||
|
|
||||||
QF_active_[p] = (QMActive *)0; /* free-up the priority level */
|
QF_active_[p] = (QMActive *)0; /* free-up the priority level */
|
||||||
|
a->super.state.obj = (QMState *)0; /* invalidate the state */
|
||||||
|
|
||||||
QS_BEGIN_NOCRIT_(QS_QF_ACTIVE_REMOVE, QS_priv_.aoObjFilter, a)
|
QS_BEGIN_NOCRIT_(QS_QF_ACTIVE_REMOVE, QS_priv_.aoObjFilter, a)
|
||||||
QS_TIME_(); /* timestamp */
|
QS_TIME_(); /* timestamp */
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qk
|
* @ingroup qk
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.2
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-09-26
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -203,7 +203,7 @@ void QActive_start_(QMActive * const me, uint_fast8_t prio,
|
|||||||
* @note By the time the AO calls QActive_stop(), it should have unsubscribed
|
* @note By the time the AO calls QActive_stop(), it should have unsubscribed
|
||||||
* from all events and no more events should be directly-posted to it.
|
* from all events and no more events should be directly-posted to it.
|
||||||
*/
|
*/
|
||||||
void QActive_stop(QMActive *me) {
|
void QActive_stop(QMActive * const me) {
|
||||||
QF_CRIT_STAT_
|
QF_CRIT_STAT_
|
||||||
|
|
||||||
QF_CRIT_ENTRY_();
|
QF_CRIT_ENTRY_();
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.4
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-11-01
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -216,7 +216,7 @@ void QActive_start_(QMActive * const me, uint_fast8_t prio,
|
|||||||
* @note By the time the AO calls QActive_stop(), it should have unsubscribed
|
* @note By the time the AO calls QActive_stop(), it should have unsubscribed
|
||||||
* from all events and no more events should be directly-posted to it.
|
* from all events and no more events should be directly-posted to it.
|
||||||
*/
|
*/
|
||||||
void QActive_stop(QMActive *me) {
|
void QActive_stop(QMActive * const me) {
|
||||||
QF_CRIT_STAT_
|
QF_CRIT_STAT_
|
||||||
|
|
||||||
QF_CRIT_ENTRY_();
|
QF_CRIT_ENTRY_();
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
* @ingroup qxk
|
* @ingroup qxk
|
||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.2
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-09-27
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -58,10 +58,10 @@ enum QXK_Timeouts {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*! internal functin to block (suspend) a given extended thread */
|
/*! internal functin to block (suspend) a given extended thread */
|
||||||
void QXThread_block_(QXThread * const me);
|
void QXThread_block_(QXThread const * const me);
|
||||||
|
|
||||||
/*! internal function to unblock (resume) a given extended thread. */
|
/*! internal function to unblock (resume) a given extended thread. */
|
||||||
void QXThread_unblock_(QXThread * const me);
|
void QXThread_unblock_(QXThread const * const me);
|
||||||
|
|
||||||
/*! internal function to arm the private time event for a given thread. */
|
/*! internal function to arm the private time event for a given thread. */
|
||||||
void QXThread_teArm_(QXThread * const me,
|
void QXThread_teArm_(QXThread * const me,
|
||||||
@ -70,7 +70,7 @@ void QXThread_teArm_(QXThread * const me,
|
|||||||
uint_fast8_t const tickRate);
|
uint_fast8_t const tickRate);
|
||||||
|
|
||||||
/*! internal function to disarm the private time event for a given thread. */
|
/*! internal function to disarm the private time event for a given thread. */
|
||||||
bool QXThread_teDisarm_(QXThread * const me);
|
bool QXThread_teDisarm_(QXThread const * const me);
|
||||||
|
|
||||||
#include "qf_pkg.h" /* QF package-scope interface */
|
#include "qf_pkg.h" /* QF package-scope interface */
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
* @cond
|
* @cond
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
* Last updated for version 5.7.4
|
* Last updated for version 5.7.4
|
||||||
* Last updated on 2016-11-01
|
* Last updated on 2016-11-02
|
||||||
*
|
*
|
||||||
* Q u a n t u m L e a P s
|
* Q u a n t u m L e a P s
|
||||||
* ---------------------------
|
* ---------------------------
|
||||||
@ -463,7 +463,7 @@ QEvt const *QXThread_queueGet(uint_fast16_t const nTicks,
|
|||||||
* @note
|
* @note
|
||||||
* must be called from within a critical section
|
* must be called from within a critical section
|
||||||
*/
|
*/
|
||||||
void QXThread_block_(QXThread * const me) {
|
void QXThread_block_(QXThread const * const me) {
|
||||||
/*! @pre the thread holding the lock cannot block! */
|
/*! @pre the thread holding the lock cannot block! */
|
||||||
Q_REQUIRE_ID(600, me->super.prio != QXK_attr_.lockPrio);
|
Q_REQUIRE_ID(600, me->super.prio != QXK_attr_.lockPrio);
|
||||||
QPSet_remove(&QXK_attr_.readySet, me->super.prio);
|
QPSet_remove(&QXK_attr_.readySet, me->super.prio);
|
||||||
@ -478,7 +478,7 @@ void QXThread_block_(QXThread * const me) {
|
|||||||
* @note
|
* @note
|
||||||
* must be called from within a critical section
|
* must be called from within a critical section
|
||||||
*/
|
*/
|
||||||
void QXThread_unblock_(QXThread * const me) {
|
void QXThread_unblock_(QXThread const * const me) {
|
||||||
QPSet_insert(&QXK_attr_.readySet, me->super.prio);
|
QPSet_insert(&QXK_attr_.readySet, me->super.prio);
|
||||||
if ((!QXK_ISR_CONTEXT_()) /* not inside ISR? */
|
if ((!QXK_ISR_CONTEXT_()) /* not inside ISR? */
|
||||||
&& (QF_active_[0] != (QMActive *)0)) /* kernel started? */
|
&& (QF_active_[0] != (QMActive *)0)) /* kernel started? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user