11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <model version =" 6.2 .1" links =" 1" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" http://www.state-machine.com/qm/qm .xsd" >
2+ <model version =" 7.0 .1" links =" 1" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" http://www.state-machine.com/qm/qm7 .xsd" >
33 <documentation >Real-time example</documentation >
44 <!-- ${qpc}-->
55 <framework name =" qpc" />
@@ -201,7 +201,9 @@ BSP_d3off();</action>
201201 <state name =" active" >
202202 <!-- ${AOs::Sporadic2::SM::active::SPORADIC_A}-->
203203 <tran trig =" SPORADIC_A" >
204- <action brief =" post-Sporadic3" >BSP_d5on();
204+ <action brief =" post-Sporadic3" >Q_UNUSED_PAR(me);
205+
206+ BSP_d5on();
205207QACTIVE_POST(AO_Sporadic3, e, me); // Sporadic2 --> Sporadic3
206208BSP_d5off();</action >
207209 <tran_glyph conn =" 2,12,3,-1,34" >
@@ -246,7 +248,9 @@ for (uint16_t i = Q_EVT_CAST(SporadicSpecEvt)->toggles;
246248 <state name =" active" >
247249 <!-- ${AOs::Sporadic3::SM::active::SPORADIC_A}-->
248250 <tran trig =" SPORADIC_A" >
249- <action brief =" post-to-Periodic4,long-RTC" >BSP_d4on();
251+ <action brief =" post-to-Periodic4,long-RTC" >Q_UNUSED_PAR(me);
252+
253+ BSP_d4on();
250254// Sporadic3 --> Periodic4
251255QACTIVE_POST(AO_Periodic4, BSP_getEvtPeriodic4(1U), me);
252256BSP_d4off();
@@ -314,7 +318,7 @@ $define ${AOs::Periodic4}</text>
314318
315319$declare ${AOs::Sporadic2}
316320
317- Q_DEFINE_THIS_MODULE(" sporadic2" )
321+ // Q_DEFINE_THIS_MODULE(" sporadic2" )
318322
319323$define ${Shared::Sporadic2_ctor}
320324$define ${Shared::AO_Sporadic2}
@@ -328,7 +332,7 @@ $define ${AOs::Sporadic2}</text>
328332
329333$declare ${AOs::Sporadic3}
330334
331- Q_DEFINE_THIS_MODULE(" sporadic3" )
335+ // Q_DEFINE_THIS_MODULE(" sporadic3" )
332336
333337$define ${Shared::Sporadic3_ctor}
334338$define ${Shared::AO_Sporadic3}
0 commit comments