Next: Identifying, generating and sending events
The sample code for the example presented above ported to x86 is located in the directory
\demo\80x86\vc08\win32_st\vc08\ahsm. It contains the Visual C++ 2008 project files to build the application. Also, emulates a ISR and a simple event-loop like a cooperative scheduler using the native priority scheme among other RKH services. See Installation section about RKH files. The application files are listed below:
mystate machine, which illustrates all aspects of implementing state machines with RKH framework. Please correlate this implementation with the
mystate diagram in Figure 1. Note that the rkhcfg.h file defines the function prototype of actions. See Configuration section about of available options. See the "my.c" file.
main()function along with an example for using the RKH trace facility. See the "main.c" file.