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.
MMS f8586d80c8 3.0.0
Restructured lessons and made them standalone with all dependencies provided with every download. Provided README.md files.
1 year ago
..
README.md 2.0.8 2 years ago
app_cfg.h 2.0.8 2 years ago
bsp.c 2.0.8 2 years ago
bsp.h 2.0.8 2 years ago
lesson.sct 3.0.0 1 year ago
lesson.uvoptx 3.0.0 1 year ago
lesson.uvprojx 3.0.0 1 year ago
main.c 3.0.0 1 year ago
os_cfg.h 2.0.8 2 years ago
qassert.h 2.0.8 2 years ago
smc.bat 2.0.8 2 years ago
timebomb.h 2.0.8 2 years ago
timebomb.sm 2.0.8 2 years ago
timebomb_sm.c 2.0.8 2 years ago
timebomb_sm.h 2.0.8 2 years ago
uc_ao.c 2.0.8 2 years ago
uc_ao.h 2.0.8 2 years ago

README.md

Brought to you by:

Quantum Leaps


TimeBomb model in QM

About this example:

This is a model of a "TimeBomb" presented in lesson #39 "Optimal State Machine Implementation in C of the "Modern Embedded Programming" video course.

The "TimeBomb" state machine is independent from any specific board, but assumes the presence of a few LEDs, which are controlled via a BSP (Board Support Package)

This example demonstrates:

  • Active object (TimeBomb) with state machine
  • Board Support Package abstraction for portability

TimbeBomb state machine

The TimeBomb state machine has been drawn in the freeware QM modeling tool:

TimeBomb model in QM

Building the example:

To build this example, you will need the QP/C framework installed on your computer and the KEIL uVision toolset (could be the free edition).

Running the example:

This example can be run on the TivaC LaunchPad board, but should be also easy to port to other boards.

For more QM examples for QP/C see: https://www.state-machine.com/qpc/exa.html

How to Help this Project?

If you like this project, please give it a star (in the upper-right corner of your browser window):

GitHub star