diff --git a/lesson-45-nucleo/TimeBomb.qm b/lesson-45-nucleo/TimeBomb.qm index 35c516a..ea8d962 100644 --- a/lesson-45-nucleo/TimeBomb.qm +++ b/lesson-45-nucleo/TimeBomb.qm @@ -1,5 +1,5 @@ - + About this model: ----------------- The TimeBomb example from the video course "Modern Embedded Systems Programming": diff --git a/lesson-45-nucleo/main.c b/lesson-45-nucleo/main.c index 663e9f2..3e86b9d 100644 --- a/lesson-45-nucleo/main.c +++ b/lesson-45-nucleo/main.c @@ -3,7 +3,7 @@ * Model: TimeBomb.qm * File: ${.::main.c} * -* This code has been generated by QM 5.2.1 . +* This code has been generated by QM 5.2.2 . * DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. * * SPDX-License-Identifier: GPL-3.0-or-later diff --git a/lesson-45/TimeBomb.qm b/lesson-45/TimeBomb.qm index 35c516a..573d246 100644 --- a/lesson-45/TimeBomb.qm +++ b/lesson-45/TimeBomb.qm @@ -1,5 +1,5 @@ - + About this model: ----------------- The TimeBomb example from the video course "Modern Embedded Systems Programming": @@ -134,7 +134,8 @@ QTimeEvt_armX(&me->te, BSP_TICKS_PER_SEC/2, 0U); BSP_ledRedOn(); BSP_ledGreenOn(); -BSP_ledBlueOn(); +BSP_ledBlueOn(); +MY_PRINTF("*** Boom!!!\n"); @@ -155,6 +156,8 @@ BSP_ledBlueOn(); #include "qpc.h" /* QP/C API */ #include "bsp.h" +#include "my_printf.h" /* software tracing with printf() */ + Q_DEFINE_THIS_MODULE("main") /* this module name for Q_ASSERT() */ /* The TimeBomb AO =======================================================*/ @@ -183,8 +186,7 @@ int main() { QF_run(); /* run QP/C... */ return 0; /* NOTE: the scheduler does NOT return */ -} - +} diff --git a/lesson-45/main.c b/lesson-45/main.c index ddc38dc..d8b1b84 100644 --- a/lesson-45/main.c +++ b/lesson-45/main.c @@ -3,7 +3,7 @@ * Model: TimeBomb.qm * File: ${.::main.c} * -* This code has been generated by QM 5.2.1 . +* This code has been generated by QM 5.2.2 . * DO NOT EDIT THIS FILE MANUALLY. All your changes will be lost. * * SPDX-License-Identifier: GPL-3.0-or-later @@ -279,4 +279,3 @@ int main() { QF_run(); /* run QP/C... */ return 0; /* NOTE: the scheduler does NOT return */ } -