erpc
erpc copied to clipboard
Add hello world example
Pull request
Choose Correct
- [ ] bug
- [X] feature
Describe the pull request
Introduction of basic example for C, C++, Python
To Reproduce
Expected behavior
Every client can communicate with every server
Screenshots
Desktop (please complete the following information):
- OS:
- eRPC Version:
Steps you didn't forgot to do
- [x] I checked if other PR isn't solving this issue.
- [x] I read Contribution details and did appropriate actions.
- [ ] PR code is tested.
- [ ] PR code is formatted.
- [X] Allow edits from maintainers pull request option is set (recommended).
Additional context
Hi @MichalPrincNXP , this PR is not ready as makefiles for C/C++ examples are missing. But i wanted show you how the examples can be created and wanted know your opinion. I would like to add example for arbitrator and callbacks and maybe some example for different datatypes...
Hello @Hadatko, after a discussion with @MichalPrincNXP I have made some changes to this PR on the new branch. I hope you don't mind. I added more features to the basic hello_world example and would like your opinion.
The changes include:
- The hello_world example for C/C++/Python/Java
- Basic support for CMake. This allows for the generation of erpcgen, C/C++ examples, and tests.
- Matrix multiplication example for C/C++.
I have tested the CMake on Windows with msys64 and mingw64 (locally downloaded with the install_dependecied.sh/ps1 to the erpc directory) and on Linux using make and ninja.
There is still work to be done, but I would like to hear your thoughts.