Thank you for your interest in contributing! This document provides guidelines for contributing to this project.
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/libUartCommProtocol.git - Create a feature branch:
git checkout -b feature/your-feature-name
- GCC compiler with C99 support
- pthread library
- Make or CMake
# Using Make
make
# Using CMake
mkdir build && cd build
cmake ..
make- Follow the existing code style in the project
- Use 2 spaces for indentation
- Keep lines under 80 characters when possible
- Add comments for complex logic
- Use descriptive variable and function names
Before submitting a pull request:
- Build the project without warnings
- Run the benchmark examples:
./peera & ./peerb - Verify no memory leaks (use valgrind if available)
- Commit your changes with clear, descriptive messages
- Push to your fork
- Submit a pull request to the main repository
- Describe your changes and the problem they solve
When reporting issues, please include:
- Operating system and version
- Compiler version
- Steps to reproduce the issue
- Expected vs actual behavior
- Any relevant logs or error messages
By contributing, you agree that your contributions will be licensed under the GPL-2.0 License.
- Email: junlon2006@163.com
- GitHub Issues: https://github.com/junlon2006/libUartCommProtocol/issues