You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.6 KiB
C
38 lines
1.6 KiB
C
/*.$file${.::my_file1.c} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
|
|
/*
|
|
* Model: TimeBomb0.qm
|
|
* File: ${.::my_file1.c}
|
|
*
|
|
* This code has been generated by QM 5.1.4 <www.state-machine.com/qm/>.
|
|
* DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost.
|
|
*
|
|
* 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
|
|
* by the Free Software Foundation.
|
|
*
|
|
* 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.
|
|
*/
|
|
/*.$endhead${.::my_file1.c} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
|
|
/* TimeBomb/Button with QP/C framework */
|
|
#include "qpc.h" /* QP/C API */
|
|
#include "bsp.h"
|
|
|
|
Q_DEFINE_THIS_MODULE("my_file1") /* this module name for Q_ASSERT() */
|
|
|
|
/*.$skip${QP_VERSION} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
|
|
/*. Check for the minimum required QP version */
|
|
#if (QP_VERSION < 690U) || (QP_VERSION != ((QP_RELEASE^4294967295U) % 0x3E8U))
|
|
#error qpc version 6.9.0 or higher required
|
|
#endif
|
|
/*.$endskip${QP_VERSION} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
|
|
/*.$define${AOs::TimeBomb::ctor} vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
|
|
/*.${AOs::TimeBomb::ctor} ..................................................*/
|
|
void TimeBomb_ctor(TimeBomb * const me) {
|
|
QActive_ctor(&me->super, (QStateHandler)&TimeBomb_initial);
|
|
QTimeEvt_ctorX(&me->te, &me->super, TIMEOUT_SIG, 0U);
|
|
}
|
|
/*.$enddef${AOs::TimeBomb::ctor} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*/
|