Skip to content

Sample implementation of a state machine in C

License

Notifications You must be signed in to change notification settings

braboj/state-machines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Description

Implement the following state diagram in C. The state machine represents a interface that can either

task state machine

Environment

The following tools were used to develop the project:

  • GCC compiler
  • Windows 7 or later
  • CodeBlocks IDE
  • Doxygen

How to run the code

  1. Checkout the project to a folder of your choice
  2. Uncomment FSM_A or FSM_B in the ./src/main.c file to run the respective state machine.
  3. Uncomment the TEST macro in the ./src/main.c file to run the test cases.
  4. Run the following commands in the terminal:
$ cd <path_to_project_directory>
$ gcc -o main ./src/main.c
$ ./main

How to build the documentation

$ doxygen Hilscher_Doxyfile

About

Sample implementation of a state machine in C

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages