/*##########################################################################*/ /*! @page exa_apps Example Applications
To demonstrate QP/C features, you need to create an application that does "something interesting". Instead of inventing this "something interesting" for each and every example, most of the example projects implement one of the three example applications, which are described on the separate pages:
- @subpage blinky - @subpage dpp - @subpage game Additionally, the QP/C distribution contains several application examples described in the PSiCC2 book. - Calculator - QHsmTst - PELICAN - ... */ /*##########################################################################*/ /*! @page blinky Simple Blinky ApplicationThe ultra-simple Blinky example is the embedded systems' equivalent of the venerable "Hello World!" program, that is, the simplest possible working QP application that does "something". In the case of Blinky, this "something" is blinking an LED at the rate of 1Hz, where an LED turns on and remains on for 0.5 seconds on then turns off and remains off for 0.5 seconds.
@image html blinky_ek-tm4c123gxl.gif Blinky on EK-TM4C123GLX (TivaC LaunchPad) The ultra-simple Blinky application, which consists of just one active object named `Blinky`, is intentionally kept small and illustrates only the most basic QP features, such as: - defining a simple Blinky active object (AO) @ref oop "class"; - hand-coding the simple state machine of the Blinky AO; - using a periodic time event; - initializing the QP framework; and - starting an AO. ------------------------------------------------------------------------------ @section blinky_sm State Machine The very simple state machine of the Blinky AO is shown in the figure below: @image html SM_blinky.png "State Machine of the Blinky AO"