erpc icon indicating copy to clipboard operation
erpc copied to clipboard

Add hello world example

Open Hadatko opened this issue 1 year ago • 2 comments

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

Hadatko avatar Nov 19 '23 13:11 Hadatko

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...

Hadatko avatar Nov 19 '23 13:11 Hadatko

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.

JanKomarekNXP avatar Feb 29 '24 10:02 JanKomarekNXP