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>
28352936//
@@ -47,18 +54,17 @@ extern Gizmo Gizmo_inst;
4754
4855// protected:
4956static 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 );
5158static QState Gizmo_on_battery (Gizmo * const me , QEvt const * const e );
5259static 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 }
0 commit comments