This project is designed for embedded software engineers working in C language.
This project contains a module that handles input commands from the user, implementing the following tasks:
- Initialize the command interpreter
- Parse an incoming line into arguments
- Validate the command from a list of pre-defined commands
- Execute the command
- Pass the parsed arguments to the command being executed
- Free the command arguments memory
This implementation was developed using TDD, hence it includes all tests needed to confirm the correct functionality.
This implementation will be used when a user needs a command interpreter to execute their own functions.
This implementation can be compiled into any microcontroller using the appropriate compiler and linker.
Copy the inc and src folders to the project you wish to add this functionality on. Make sure to inform your compiler about the location of the new folders.