Skip to content

Commit 24cd93e

Browse files
committed
8.0.0
1 parent afe8217 commit 24cd93e

File tree

9 files changed

+78
-57
lines changed

9 files changed

+78
-57
lines changed

arm-cm/dpp_nucleo-l053r8/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
6464
set_property(TARGET ${TGT} PROPERTY POSITION_INDEPENDENT_CODE FALSE)
6565
endif()
6666

67+
# set the qpc include path to find our local `qp_config.h´
68+
set(QPC_CFG_QPCONFIG_H_INCLUDE_PATH ${CMAKE_CURRENT_LIST_DIR})
6769
# add the qpc library to the project
6870
qpc_sdk_init()
6971

posix-win32-cmake/dpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
141141
set_property(TARGET dpp PROPERTY POSITION_INDEPENDENT_CODE FALSE)
142142
endif()
143143

144+
# set the qpc include path to find our local `qp_config.h´
145+
set(QPC_CFG_QPCONFIG_H_INCLUDE_PATH ${CMAKE_CURRENT_LIST_DIR})
144146
# add the qpc library to the project
145147
qpc_sdk_init()
146148

posix-win32-cmake/dpp/CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"gen",
7373
"gtk"
7474
],
75-
"binaryDir": "${sourceDir}/Build/dppGui"
75+
"binaryDir": "${sourceDir}/Build/dppGtk"
7676
},
7777
{
7878
"name": "mingw-gui",

posix-win32/dpp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ option(QPC_CFG_DEBUG "set to ON, to enable debug settings. (default: ON)" ON
3131
# update CMAKE_MODULE_PATH
3232
list(PREPEND CMAKE_MODULE_PATH ${QPC_SDK_PATH}/3rd_party/cmake ${CMAKE_SOURCE_DIR}/Source/cmake ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_SOURCE_DIR} ${HOME_PATH}/cmake)
3333

34+
# set the qpc include path to find our local `qp_config.h´
35+
set(QPC_CFG_QPCONFIG_H_INCLUDE_PATH ${CMAKE_CURRENT_LIST_DIR})
3436
# import QPC SDK; download from git, if necessary
3537
include(qpc_sdk_import)
3638

qutest/start_seq/gizmo.qm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<model version="5.3.0" links="1">
2+
<model version="7.0.0" links="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.state-machine.com/qm/qm7.xsd">
33
<documentation>Start sequence example</documentation>
44
<!--${qpc}-->
55
<framework name="qpc"/>
@@ -20,23 +20,23 @@
2020
<action box="1,0,6,2"/>
2121
</initial_glyph>
2222
</initial>
23-
<!--${AOs::Gizmo::SM::init}-->
24-
<state name="init">
23+
<!--${AOs::Gizmo::SM::initialize}-->
24+
<state name="initialize">
2525
<entry brief="self-post START">static QEvt const startEvt = QEVT_INITIALIZER(START_SIG);
2626
QACTIVE_POST(&amp;me-&gt;super, &amp;startEvt, me); // self-post</entry>
27-
<!--${AOs::Gizmo::SM::init::START}-->
27+
<!--${AOs::Gizmo::SM::initialize::START}-->
2828
<tran trig="START">
2929
<action>QS_BEGIN_ID(QS_USER1, me-&gt;super.prio)
3030
QS_STR(&quot;START&quot;);
3131
QS_END()</action>
32-
<!--${AOs::Gizmo::SM::init::START::[BSP_getStatus()]}-->
32+
<!--${AOs::Gizmo::SM::initialize::START::[BSP_getStatus()]}-->
3333
<choice target="../../../3">
3434
<guard>BSP_getStatus()</guard>
3535
<choice_glyph conn="26,14,5,0,16,8">
3636
<action box="1,0,16,3"/>
3737
</choice_glyph>
3838
</choice>
39-
<!--${AOs::Gizmo::SM::init::START::[else]}-->
39+
<!--${AOs::Gizmo::SM::initialize::START::[else]}-->
4040
<choice target="../../../2">
4141
<guard brief="else"/>
4242
<choice_glyph conn="26,14,4,1,10,-6">
@@ -48,7 +48,7 @@ QS_END()</action>
4848
</tran_glyph>
4949
</tran>
5050
<state_glyph node="2,6,18,12">
51-
<entry box="1,2,15,2"/>
51+
<entry box="0,3,15,2"/>
5252
</state_glyph>
5353
</state>
5454
<!--${AOs::Gizmo::SM::on_battery}-->

qutest/start_seq/src/gizmo.c

Lines changed: 31 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,34 @@
33
// Model: gizmo.qm
44
// File: ${src::gizmo.c}
55
//
6-
// This code has been generated by QM 5.3.0 <www.state-machine.com/qm>.
6+
// This code has been generated by QM 7.0.0 <www.state-machine.com/qm>.
77
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
88
//
9-
// SPDX-License-Identifier: GPL-3.0-or-later
9+
// Copyright (c) 2005 Quantum Leaps, LLC. All rights reserved.
10+
//
11+
// ____________________________________
12+
// / /
13+
// / GGGGGGG PPPPPPPP LL /
14+
// / GG GG PP PP LL /
15+
// / GG PP PP LL /
16+
// / GG GGGGG PPPPPPPP LL /
17+
// / GG GG PP LL /
18+
// / GGGGGGG PP LLLLLLL /
19+
// /___________________________________/
1020
//
11-
// This generated code is open source software: you can redistribute it under
12-
// the terms of the GNU General Public License as published by the Free
13-
// Software Foundation.
21+
// SPDX-License-Identifier: GPL-3.0-or-later
1422
//
15-
// This code is distributed in the hope that it will be useful, but WITHOUT
16-
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17-
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18-
// more details.
23+
// This generated code is open-source software licensed under the GNU
24+
// General Public License (GPL) as published by the Free Software Foundation
25+
// (see <https://www.gnu.org/licenses>).
1926
//
2027
// NOTE:
21-
// Alternatively, this generated code may be distributed under the terms
22-
// of Quantum Leaps commercial licenses, which expressly supersede the GNU
23-
// General Public License and are specifically designed for licensees
24-
// interested in retaining the proprietary status of their code.
28+
// The GPL does NOT permit the incorporation of this code into proprietary
29+
// programs. Please contact Quantum Leaps for commercial licensing options,
30+
// which expressly supersede the GPL and are designed explicitly for
31+
// closed-source distribution.
2532
//
26-
// Contact information:
33+
// Quantum Leaps contact information:
2734
// <www.state-machine.com/licensing>
2835
2936
//
@@ -47,18 +54,17 @@ extern Gizmo Gizmo_inst;
4754

4855
// protected:
4956
static QState Gizmo_initial(Gizmo * const me, void const * const par);
50-
static QState Gizmo_init(Gizmo * const me, QEvt const * const e);
57+
static QState Gizmo_initialize(Gizmo * const me, QEvt const * const e);
5158
static QState Gizmo_on_battery(Gizmo * const me, QEvt const * const e);
5259
static QState Gizmo_on_mains(Gizmo * const me, QEvt const * const e);
5360
//$enddecl${AOs::Gizmo} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5461

5562
//$skip${QP_VERSION} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
5663
// Check for the minimum required QP version
57-
#if (QP_VERSION < 730U) || (QP_VERSION != ((QP_RELEASE^4294967295U) % 0x3E8U))
64+
#if (QP_VERSION < 730U) || (QP_VERSION != ((QP_RELEASE^4294967295U)%0x2710U))
5865
#error qpc version 7.3.0 or higher required
5966
#endif
6067
//$endskip${QP_VERSION} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61-
6268
//$define${AOs::AO_Gizmo} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
6369

6470
//${AOs::AO_Gizmo} ...........................................................
@@ -82,34 +88,34 @@ static QState Gizmo_initial(Gizmo * const me, void const * const par) {
8288
//${AOs::Gizmo::SM::initial}
8389
Q_UNUSED_PAR(par);
8490

85-
QS_FUN_DICTIONARY(&Gizmo_init);
91+
QS_FUN_DICTIONARY(&Gizmo_initialize);
8692
QS_FUN_DICTIONARY(&Gizmo_on_battery);
8793
QS_FUN_DICTIONARY(&Gizmo_on_mains);
8894

89-
return Q_TRAN(&Gizmo_init);
95+
return Q_TRAN(&Gizmo_initialize);
9096
}
9197

92-
//${AOs::Gizmo::SM::init} ....................................................
93-
static QState Gizmo_init(Gizmo * const me, QEvt const * const e) {
98+
//${AOs::Gizmo::SM::initialize} ..............................................
99+
static QState Gizmo_initialize(Gizmo * const me, QEvt const * const e) {
94100
QState status_;
95101
switch (e->sig) {
96-
//${AOs::Gizmo::SM::init}
102+
//${AOs::Gizmo::SM::initialize}
97103
case Q_ENTRY_SIG: {
98104
static QEvt const startEvt = QEVT_INITIALIZER(START_SIG);
99105
QACTIVE_POST(&me->super, &startEvt, me); // self-post
100106
status_ = Q_HANDLED();
101107
break;
102108
}
103-
//${AOs::Gizmo::SM::init::START}
109+
//${AOs::Gizmo::SM::initialize::START}
104110
case START_SIG: {
105111
QS_BEGIN_ID(QS_USER1, me->super.prio)
106112
QS_STR("START");
107113
QS_END()
108-
//${AOs::Gizmo::SM::init::START::[BSP_getStatus()]}
114+
//${AOs::Gizmo::SM::initialize::START::[BSP_getStatus()]}
109115
if (BSP_getStatus()) {
110116
status_ = Q_TRAN(&Gizmo_on_mains);
111117
}
112-
//${AOs::Gizmo::SM::init::START::[else]}
118+
//${AOs::Gizmo::SM::initialize::START::[else]}
113119
else {
114120
status_ = Q_TRAN(&Gizmo_on_battery);
115121
}

qutest/start_seq/src/gizmo.h

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,34 @@
33
// Model: gizmo.qm
44
// File: ${src::gizmo.h}
55
//
6-
// This code has been generated by QM 5.3.0 <www.state-machine.com/qm>.
6+
// This code has been generated by QM 7.0.0 <www.state-machine.com/qm>.
77
// DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
88
//
9-
// SPDX-License-Identifier: GPL-3.0-or-later
9+
// Copyright (c) 2005 Quantum Leaps, LLC. All rights reserved.
10+
//
11+
// ____________________________________
12+
// / /
13+
// / GGGGGGG PPPPPPPP LL /
14+
// / GG GG PP PP LL /
15+
// / GG PP PP LL /
16+
// / GG GGGGG PPPPPPPP LL /
17+
// / GG GG PP LL /
18+
// / GGGGGGG PP LLLLLLL /
19+
// /___________________________________/
1020
//
11-
// This generated code is open source software: you can redistribute it under
12-
// the terms of the GNU General Public License as published by the Free
13-
// Software Foundation.
21+
// SPDX-License-Identifier: GPL-3.0-or-later
1422
//
15-
// This code is distributed in the hope that it will be useful, but WITHOUT
16-
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17-
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18-
// more details.
23+
// This generated code is open-source software licensed under the GNU
24+
// General Public License (GPL) as published by the Free Software Foundation
25+
// (see <https://www.gnu.org/licenses>).
1926
//
2027
// NOTE:
21-
// Alternatively, this generated code may be distributed under the terms
22-
// of Quantum Leaps commercial licenses, which expressly supersede the GNU
23-
// General Public License and are specifically designed for licensees
24-
// interested in retaining the proprietary status of their code.
28+
// The GPL does NOT permit the incorporation of this code into proprietary
29+
// programs. Please contact Quantum Leaps for commercial licensing options,
30+
// which expressly supersede the GPL and are designed explicitly for
31+
// closed-source distribution.
2532
//
26-
// Contact information:
33+
// Quantum Leaps contact information:
2734
// <www.state-machine.com/licensing>
2835
2936
//

qutest/start_seq/test/test_bdd1.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ def on_reset():
2828
WHEN("Test sequence contunues AO_Gizmo is started")
2929
glb_filter(GRP_ALL)
3030
continue_test()
31-
expect("===RTC===> St-Init Obj=AO_Gizmo,State=QHsm_top->Gizmo_init")
31+
expect("===RTC===> St-Init Obj=AO_Gizmo,State=QHsm_top->Gizmo_initialize")
3232
expect("@timestamp AO-Post Sdr=AO_Gizmo,Obj=AO_Gizmo,Evt<Sig=START_SIG,*")
33-
expect("===RTC===> St-Entry Obj=AO_Gizmo,State=Gizmo_init")
34-
expect("@timestamp Init===> Obj=AO_Gizmo,State=Gizmo_init")
33+
expect("===RTC===> St-Entry Obj=AO_Gizmo,State=Gizmo_initialize")
34+
expect("@timestamp Init===> Obj=AO_Gizmo,State=Gizmo_initialize")
3535

3636
THEN('''After QF_run(), AO_Gizmo receives START event,
3737
which triggers transition to Gizmo_on_mains''')
3838
expect_run()
3939
expect("@timestamp AO-GetL Obj=AO_Gizmo,Evt<Sig=START_SIG,*")
40-
expect("@timestamp Disp===> Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_init")
40+
expect("@timestamp Disp===> Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_initialize")
4141
expect("@timestamp USER+005 START")
42-
expect("@timestamp ===>Tran Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_init->Gizmo_on_mains")
42+
expect("@timestamp ===>Tran Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_initialize->Gizmo_on_mains")
4343

4444
#------------------------------------------------------------------------------
4545
SCENARIO('''
@@ -53,15 +53,15 @@ def on_reset():
5353
WHEN("Test sequence contunues AO_Gizmo is started")
5454
glb_filter(GRP_ALL)
5555
continue_test()
56-
expect("===RTC===> St-Init Obj=AO_Gizmo,State=QHsm_top->Gizmo_init")
56+
expect("===RTC===> St-Init Obj=AO_Gizmo,State=QHsm_top->Gizmo_initialize")
5757
expect("@timestamp AO-Post Sdr=AO_Gizmo,Obj=AO_Gizmo,Evt<Sig=START_SIG,*")
58-
expect("===RTC===> St-Entry Obj=AO_Gizmo,State=Gizmo_init")
59-
expect("@timestamp Init===> Obj=AO_Gizmo,State=Gizmo_init")
58+
expect("===RTC===> St-Entry Obj=AO_Gizmo,State=Gizmo_initialize")
59+
expect("@timestamp Init===> Obj=AO_Gizmo,State=Gizmo_initialize")
6060

6161
THEN('''After QF_run(), AO_Gizmo receives START event,
6262
which triggers transition to Gizmo_on_battery''')
6363
expect_run()
6464
expect("@timestamp AO-GetL Obj=AO_Gizmo,Evt<Sig=START_SIG,*")
65-
expect("@timestamp Disp===> Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_init")
65+
expect("@timestamp Disp===> Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_initialize")
6666
expect("@timestamp USER+005 START")
67-
expect("@timestamp ===>Tran Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_init->Gizmo_on_battery")
67+
expect("@timestamp ===>Tran Obj=AO_Gizmo,Sig=START_SIG,State=Gizmo_initialize->Gizmo_on_battery")

qwin-gui/dpp-gui/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14")
6666
set_property(TARGET dpp PROPERTY POSITION_INDEPENDENT_CODE FALSE)
6767
endif()
6868

69+
# set the qpc include path to find our local `qp_config.h´
70+
set(QPC_CFG_QPCONFIG_H_INCLUDE_PATH ${CMAKE_CURRENT_LIST_DIR})
6971
# add the qpc library to the project
7072
qpc_sdk_init()
7173

0 commit comments

Comments
 (0)