├── test
├── python_impl_tests
│ ├── __init__.py
│ ├── test_arrays
│ │ └── __init__.py
│ ├── test_binary
│ │ └── __init__.py
│ ├── test_builtin
│ │ └── __init__.py
│ ├── test_const
│ │ └── __init__.py
│ ├── test_enums
│ │ └── __init__.py
│ ├── test_lists
│ │ └── __init__.py
│ ├── test_struct
│ │ └── __init__.py
│ ├── test_typedef
│ │ └── __init__.py
│ ├── test_unions
│ │ └── __init__.py
│ ├── test_annotations
│ │ └── __init__.py
│ └── test_arbitrator
│ │ └── __init__.py
├── .gitignore
├── zephyr
│ ├── rpmsglite
│ │ ├── config
│ │ │ ├── boards
│ │ │ │ ├── lpcxpresso55s69_cpu0.conf
│ │ │ │ ├── lpcxpresso54114_m4.conf
│ │ │ │ ├── mimxrt1160_evk_cm7.conf
│ │ │ │ ├── mimxrt1170_evk_cm7.conf
│ │ │ │ ├── mimxrt1170_evkb_cm7.conf
│ │ │ │ ├── lpcxpresso54114_m4.overlay
│ │ │ │ ├── lpcxpresso55s69_cpu0.overlay
│ │ │ │ ├── mimxrt1160_evk_cm7.overlay
│ │ │ │ ├── mimxrt1170_evk_cm7.overlay
│ │ │ │ └── mimxrt1170_evkb_cm7.overlay
│ │ │ ├── remote
│ │ │ │ ├── boards
│ │ │ │ │ ├── lpcxpresso54114_m0.conf
│ │ │ │ │ ├── lpcxpresso55s69_cpu1.conf
│ │ │ │ │ ├── mimxrt1160_evk_cm4.conf
│ │ │ │ │ ├── mimxrt1170_evk_cm4.conf
│ │ │ │ │ ├── mimxrt1170_evkb_cm4.conf
│ │ │ │ │ ├── lpcxpresso54114_m0.overlay
│ │ │ │ │ └── lpcxpresso55s69_cpu1.overlay
│ │ │ │ └── prj.conf
│ │ │ ├── Kconfig
│ │ │ ├── prj.conf
│ │ │ └── rpmsg_config.h
│ │ ├── test_arbitrator
│ │ │ ├── config
│ │ │ │ ├── boards
│ │ │ │ │ ├── lpcxpresso55s69_cpu0.conf
│ │ │ │ │ ├── lpcxpresso54114_m4.conf
│ │ │ │ │ ├── mimxrt1160_evk_cm7.conf
│ │ │ │ │ ├── mimxrt1170_evk_cm7.conf
│ │ │ │ │ ├── mimxrt1170_evkb_cm7.conf
│ │ │ │ │ ├── lpcxpresso54114_m4.overlay
│ │ │ │ │ ├── lpcxpresso55s69_cpu0.overlay
│ │ │ │ │ ├── mimxrt1160_evk_cm7.overlay
│ │ │ │ │ ├── mimxrt1170_evk_cm7.overlay
│ │ │ │ │ └── mimxrt1170_evkb_cm7.overlay
│ │ │ │ ├── remote
│ │ │ │ │ ├── boards
│ │ │ │ │ │ ├── lpcxpresso54114_m0.conf
│ │ │ │ │ │ ├── lpcxpresso55s69_cpu1.conf
│ │ │ │ │ │ ├── mimxrt1160_evk_cm4.conf
│ │ │ │ │ │ ├── mimxrt1170_evk_cm4.conf
│ │ │ │ │ │ ├── mimxrt1170_evkb_cm4.conf
│ │ │ │ │ │ ├── lpcxpresso54114_m0.overlay
│ │ │ │ │ │ └── lpcxpresso55s69_cpu1.overlay
│ │ │ │ │ └── prj.conf
│ │ │ │ ├── prj.conf
│ │ │ │ └── rpmsg_config.h
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ ├── remote
│ │ │ │ └── CMakeLists.txt
│ │ │ └── common.cmake
│ │ ├── test_arrays
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_binary
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_const
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_enums
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_lists
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_shared
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── remote
│ │ │ │ └── CMakeLists.txt
│ │ │ └── CMakeLists.txt
│ │ ├── test_struct
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_unions
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_builtin
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_typedef
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ └── remote
│ │ │ │ └── CMakeLists.txt
│ │ ├── test_annotations
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── remote
│ │ │ │ └── CMakeLists.txt
│ │ │ └── CMakeLists.txt
│ │ ├── test_callbacks
│ │ │ ├── testcase.yaml
│ │ │ ├── sysbuild.cmake
│ │ │ ├── CMakeLists.txt
│ │ │ ├── remote
│ │ │ │ └── CMakeLists.txt
│ │ │ └── common.cmake
│ │ └── cmake
│ │ │ ├── rpmsg_lite.cmake
│ │ │ └── sysbuild.cmake
│ ├── uart
│ │ ├── test_arrays
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_binary
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_const
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_enums
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_lists
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_shared
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_struct
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_unions
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_builtin
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_typedef
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_callbacks
│ │ │ └── testcase.yaml
│ │ ├── test_annotations
│ │ │ ├── testcase.yaml
│ │ │ └── CMakeLists.txt
│ │ ├── test_arbitrator
│ │ │ ├── testcase.yaml
│ │ │ └── config
│ │ │ │ └── prj.conf
│ │ ├── config
│ │ │ └── prj.conf
│ │ └── cmake
│ │ │ └── unit_test.cmake
│ └── cmake
│ │ └── variables.cmake
├── common
│ ├── unit_test_common.erpc
│ ├── gtest
│ │ └── gtimer.c
│ ├── addOne.cpp
│ ├── addOne.hpp
│ └── unit_test.h
├── test_const
│ ├── CMakeLists.txt
│ └── test_const_client_impl.cpp
├── test_enums
│ └── CMakeLists.txt
├── test_lists
│ └── CMakeLists.txt
├── test_binary
│ ├── CMakeLists.txt
│ └── test_binary.erpc
├── test_builtin
│ └── CMakeLists.txt
├── test_shared
│ ├── CMakeLists.txt
│ └── Makefile
├── test_typedef
│ └── CMakeLists.txt
├── arithmetic.erpc
├── test_unions
│ ├── CMakeLists.txt
│ └── variables.mk
├── test_arrays
│ ├── CMakeLists.txt
│ └── variables.mk
├── test_struct
│ ├── CMakeLists.txt
│ └── variables.mk
├── test_annotations
│ ├── CMakeLists.txt
│ ├── external.h
│ ├── test_annotations_client_impl.cpp
│ └── variables.mk
├── java_impl_tests
│ ├── src
│ │ ├── test
│ │ │ └── java
│ │ │ │ └── io
│ │ │ │ └── github
│ │ │ │ └── embeddedrpc
│ │ │ │ └── erpc
│ │ │ │ └── tests
│ │ │ │ ├── server
│ │ │ │ ├── services
│ │ │ │ │ ├── TestConstService.java
│ │ │ │ │ ├── CommonService.java
│ │ │ │ │ ├── TestAnnotationsService.java
│ │ │ │ │ └── TestBinaryService.java
│ │ │ │ ├── TestConstServer.java
│ │ │ │ ├── TestListsServer.java
│ │ │ │ ├── TestEnumsServer.java
│ │ │ │ ├── TestArraysServer.java
│ │ │ │ ├── TestBinaryServer.java
│ │ │ │ ├── TestBuiltinServer.java
│ │ │ │ ├── TestAnnotationsServer.java
│ │ │ │ ├── TestTypedefServer.java
│ │ │ │ └── TestStructServer.java
│ │ │ │ └── TestingClient.java
│ │ └── main
│ │ │ └── java
│ │ │ └── io
│ │ │ └── github
│ │ │ └── embeddedrpc
│ │ │ └── erpc
│ │ │ └── tests
│ │ │ └── common
│ │ │ └── myEnum.java
│ └── .gitignore
├── prj.conf
├── readme.txt
├── test_arbitrator
│ └── test_arbitrator.erpc
└── test_callbacks
│ ├── variables.mk
│ └── Makefile
├── erpcgen
├── .gitignore
├── src
│ ├── cpptemplate
│ │ └── .gitignore
│ ├── templates
│ │ ├── py_global_init.template
│ │ ├── c_crc.template
│ │ ├── py_init.template
│ │ ├── py_interface.template
│ │ ├── java_const.template
│ │ └── cpp_client_header.template
│ ├── Utils.hpp
│ ├── format_string.hpp
│ ├── Utils.cpp
│ ├── ParseErrors.cpp
│ ├── HexValues.hpp
│ ├── os_config.hpp
│ └── types
│ │ └── Program.hpp
├── test
│ ├── .gitignore
│ ├── imports
│ │ ├── test21.erpc
│ │ ├── test2.erpc
│ │ └── test3
│ │ │ └── test3.erpc
│ ├── test_includes
│ │ └── test_includes_union.h
│ ├── test_include.yml
│ ├── test_import.yml
│ ├── example.yml
│ ├── test_extern_c.yml
│ └── test_retain_c.yml
├── embedded-rpc.xcodeproj
│ └── project.xcworkspace
│ │ ├── contents.xcworkspacedata
│ │ └── xcuserdata
│ │ └── creed.xcuserdatad
│ │ ├── WorkspaceSettings.xcsettings
│ │ └── xcdebugger
│ │ └── Expressions.xcexplist
├── VisualStudio_v14
│ ├── stdbool.h
│ ├── erpcgen.vcxproj.user
│ ├── stdafx.cpp
│ ├── targetver.h
│ ├── stdafx.h
│ ├── readme_erpcgen.txt
│ ├── .gitignore
│ └── erpcgen.sln
└── README.md
├── doxygen
├── .gitignore
├── rpc_block_diagram.png
├── mainpage_erpcgen.md
└── html_footer.html
├── erpc_python
├── .gitignore
├── setup.cfg
├── erpc
│ ├── erpc_version.py
│ ├── __init__.py
│ └── crc16.py
└── README_Pypi.md
├── examples
├── zephyr
│ ├── matrix_multiply_rpmsglite
│ │ ├── boards
│ │ │ ├── lpcxpresso55s69_cpu0.conf
│ │ │ ├── lpcxpresso54114_m4.conf
│ │ │ ├── mimxrt1160_evk_cm7.conf
│ │ │ ├── mimxrt1170_evk_cm7.conf
│ │ │ ├── mimxrt1170_evkb_cm7.conf
│ │ │ ├── lpcxpresso54114_m4.overlay
│ │ │ ├── lpcxpresso55s69_cpu0.overlay
│ │ │ ├── mimxrt1160_evk_cm7.overlay
│ │ │ ├── mimxrt1170_evk_cm7.overlay
│ │ │ └── mimxrt1170_evkb_cm7.overlay
│ │ ├── remote
│ │ │ ├── boards
│ │ │ │ ├── lpcxpresso54114_m0.conf
│ │ │ │ ├── lpcxpresso55s69_cpu1.conf
│ │ │ │ ├── mimxrt1160_evk_cm4.conf
│ │ │ │ ├── mimxrt1170_evk_cm4.conf
│ │ │ │ ├── mimxrt1170_evkb_cm4.conf
│ │ │ │ ├── lpcxpresso54114_m0.overlay
│ │ │ │ └── lpcxpresso55s69_cpu1.overlay
│ │ │ ├── prj.conf
│ │ │ └── src
│ │ │ │ └── service
│ │ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ │ └── erpc_matrix_multiply.erpc
│ │ ├── sample.yaml
│ │ ├── Kconfig
│ │ ├── prj.conf
│ │ ├── Kconfig.sysbuild
│ │ ├── src
│ │ │ └── service
│ │ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ │ └── erpc_matrix_multiply.erpc
│ │ └── sysbuild.cmake
│ ├── matrix_multiply_uart
│ │ ├── sample.yaml
│ │ ├── prj.conf
│ │ ├── src
│ │ │ └── service
│ │ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ │ ├── erpc_matrix_multiply.erpc
│ │ │ │ └── erpc_matrix_multiply_interface.hpp
│ │ └── CMakeLists.txt
│ ├── matrix_multiply_mbox
│ │ ├── boards
│ │ │ ├── mimxrt1160_evk_cm7.conf
│ │ │ ├── mimxrt1170_evk_cm7.conf
│ │ │ ├── mimxrt1170_evkb_cm7.conf
│ │ │ ├── mimxrt1160_evk_cm7.overlay
│ │ │ ├── mimxrt1170_evk_cm7.overlay
│ │ │ └── mimxrt1170_evkb_cm7.overlay
│ │ ├── remote
│ │ │ ├── boards
│ │ │ │ ├── mimxrt1160_evk_cm4.conf
│ │ │ │ ├── mimxrt1170_evk_cm4.conf
│ │ │ │ └── mimxrt1170_evkb_cm4.conf
│ │ │ ├── prj.conf
│ │ │ └── src
│ │ │ │ └── service
│ │ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ │ └── erpc_matrix_multiply.erpc
│ │ ├── sample.yaml
│ │ ├── prj.conf
│ │ ├── Kconfig
│ │ ├── Kconfig.sysbuild
│ │ ├── src
│ │ │ └── service
│ │ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ │ ├── erpc_matrix_multiply.erpc
│ │ │ │ └── erpc_matrix_multiply_interface.hpp
│ │ └── sysbuild.cmake
│ └── matrix_multiply_tcp
│ │ ├── sample.yaml
│ │ ├── src
│ │ └── service
│ │ │ ├── erpc_matrix_multiply_interface.cpp
│ │ │ ├── erpc_matrix_multiply.erpc
│ │ │ └── erpc_matrix_multiply_interface.hpp
│ │ └── CMakeLists.txt
├── hello_world
│ ├── config.h
│ ├── hello_world.erpc
│ ├── java
│ │ └── src
│ │ │ └── main
│ │ │ └── java
│ │ │ └── org
│ │ │ └── example
│ │ │ ├── Main.java
│ │ │ ├── TextServiceService.java
│ │ │ ├── Server.java
│ │ │ └── Client.java
│ └── py
│ │ ├── config.py
│ │ └── main_client.py
├── matrix_multiply_python
│ └── service
│ │ ├── __init__.py
│ │ ├── erpc_matrix_multiply
│ │ ├── common.py
│ │ ├── interface.py
│ │ └── __init__.py
│ │ └── erpc_matrix_multiply.erpc
├── CMakeLists.txt
├── idl
│ └── ble
│ │ └── bluetooth.erpc
├── matrix_multiply_java
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ ├── java
│ │ └── io
│ │ │ └── github
│ │ │ └── embeddedrpc
│ │ │ └── erpc
│ │ │ └── example
│ │ │ └── erpc_matrix_multiply
│ │ │ ├── interfaces
│ │ │ └── IMatrixMultiplyService.java
│ │ │ └── common
│ │ │ └── Constants.java
│ │ └── resources
│ │ └── erpc_matrix_multiply.erpc
├── MCUXPRESSO_SDK
│ ├── erpc_two_way_rpc
│ │ └── service
│ │ │ ├── erpc_two_way_rpc_Core1Interface_interface.cpp
│ │ │ ├── erpc_two_way_rpc_Core0Interface_common.hpp
│ │ │ ├── erpc_two_way_rpc_Core1Interface_common.hpp
│ │ │ ├── erpc_two_way_rpc_Core0Interface_common.h
│ │ │ └── erpc_two_way_rpc_Core1Interface_common.h
│ └── erpc_matrix_multiply
│ │ └── service
│ │ ├── erpc_matrix_multiply_interface.cpp
│ │ └── erpc_matrix_multiply.erpc
└── matrix_multiply_tcp_c
│ └── erpc_matrix_multiply.erpc
├── erpc_c
├── config
│ └── config.dox
├── infra
│ ├── erpc_utils.hpp
│ ├── infra.dox
│ ├── erpc_version.h
│ └── erpc_utils.cpp
├── port
│ ├── port.dox
│ ├── erpc_port_mbed.cpp
│ ├── erpc_sysgpio.h
│ ├── erpc_endianness_undefined.h
│ └── erpc_spidev.h
├── CMakeLists.txt
└── setup
│ └── setup.dox
├── utilities
├── styles
│ ├── VSC
│ │ ├── .vscodeignore
│ │ ├── img
│ │ │ ├── erpcPic.png
│ │ │ └── templatePic.png
│ │ ├── CHANGELOG.md
│ │ ├── .vscode
│ │ │ └── launch.json
│ │ └── language-configuration.json
│ └── README.txt
└── README.txt
├── zephyr
└── module.yml
├── .gitpod.yml
├── CONTRIBUTING.md
├── erpcsniffer
└── readme.txt
├── .gitpod.Dockerfile
├── erpc_java
├── src
│ └── main
│ │ └── java
│ │ └── io
│ │ └── github
│ │ └── embeddedrpc
│ │ └── erpc
│ │ ├── server
│ │ └── ThreadServer.java
│ │ ├── codec
│ │ ├── CodecError.java
│ │ ├── BasicCodecFactory.java
│ │ └── CodecFactory.java
│ │ ├── transport
│ │ ├── RequestError.java
│ │ ├── Transport.java
│ │ └── TransportError.java
│ │ └── auxiliary
│ │ └── RequestError.java
└── .gitignore
├── .clang-format-ignore
├── .vscode
└── README.md
├── run_tests.sh
├── .github
├── ISSUE_TEMPLATE
│ ├── question.md
│ ├── feature_request.md
│ └── bug_report.md
├── workflows
│ ├── greetings.yml
│ └── clang-format.yml
└── PULL_REQUEST_TEMPLATE.md
└── CMakePresets.json
/test/python_impl_tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/erpcgen/.gitignore:
--------------------------------------------------------------------------------
1 | .vs
2 | .cache
3 |
4 |
--------------------------------------------------------------------------------
/doxygen/.gitignore:
--------------------------------------------------------------------------------
1 | erpc
2 | erpcgen
3 |
4 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_arrays/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_binary/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_builtin/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_const/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_enums/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_lists/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_struct/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_typedef/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_unions/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/.gitignore:
--------------------------------------------------------------------------------
1 | results
2 | erpc_outputs
3 | test
4 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_annotations/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/python_impl_tests/test_arbitrator/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/erpc_python/.gitignore:
--------------------------------------------------------------------------------
1 | erpc_test
2 | .eggs
3 | dist
4 | build
5 | *.egg-info
6 |
7 |
8 |
--------------------------------------------------------------------------------
/erpcgen/src/cpptemplate/.gitignore:
--------------------------------------------------------------------------------
1 | *.o
2 | *.d
3 | cpptempl_test
4 | tags
5 | html
6 |
7 |
--------------------------------------------------------------------------------
/erpcgen/test/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | .cache
3 | config_local.py
4 | runs
5 | results.xml
6 |
7 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/lpcxpresso55s69_cpu0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/lpcxpresso55s69_cpu0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/lpcxpresso55s69_cpu0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 |
--------------------------------------------------------------------------------
/doxygen/rpc_block_diagram.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EmbeddedRPC/erpc/HEAD/doxygen/rpc_block_diagram.png
--------------------------------------------------------------------------------
/erpc_c/config/config.dox:
--------------------------------------------------------------------------------
1 | /*!
2 | @defgroup config Configuration
3 | @brief Configuration settings
4 | */
5 |
6 |
7 |
--------------------------------------------------------------------------------
/erpc_python/setup.cfg:
--------------------------------------------------------------------------------
1 | [bdist_wheel]
2 | universal = 1
3 |
4 | [egg_info]
5 | tag_build =
6 | tag_date = 0
7 |
8 |
--------------------------------------------------------------------------------
/examples/hello_world/config.h:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #define ERPC_HOSTNAME "localhost"
4 | #define ERPC_PORT 8811
5 |
--------------------------------------------------------------------------------
/utilities/styles/VSC/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | .gitignore
4 | vsc-extension-quickstart.md
5 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/lpcxpresso54114_m4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_INCLUDE_REMOTE_DIR=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/mimxrt1160_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/mimxrt1170_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/lpcxpresso54114_m0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/lpcxpresso55s69_cpu1.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arrays/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.arrays:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_binary/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.binary:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_const/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.const:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_enums/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.enums:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_lists/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.lists:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_shared/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.shared:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_struct/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.struct:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_unions/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.unions:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/utilities/styles/VSC/img/erpcPic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EmbeddedRPC/erpc/HEAD/utilities/styles/VSC/img/erpcPic.png
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_builtin/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.builtin:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_typedef/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.typedef:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/utilities/styles/VSC/img/templatePic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/EmbeddedRPC/erpc/HEAD/utilities/styles/VSC/img/templatePic.png
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/lpcxpresso54114_m4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_INCLUDE_REMOTE_DIR=y
3 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/mimxrt1160_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/mimxrt1170_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/mimxrt1170_evkb_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_annotations/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.annotations:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/lpcxpresso54114_m4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_INCLUDE_REMOTE_DIR=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/mimxrt1160_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/mimxrt1170_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_INCLUDE_REMOTE_DIR=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_callbacks/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.callbacks:
3 | sysbuild: true
4 | harness: gtest
--------------------------------------------------------------------------------
/zephyr/module.yml:
--------------------------------------------------------------------------------
1 | name: erpc
2 | build:
3 | cmake: ./zephyr
4 | kconfig: ./zephyr/Kconfig
5 | samples:
6 | - ./examples/zephyr
7 |
--------------------------------------------------------------------------------
/examples/hello_world/hello_world.erpc:
--------------------------------------------------------------------------------
1 | interface TextService
2 | {
3 | printText(string text) -> bool
4 | oneway stopServer()
5 | }
6 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/lpcxpresso54114_m0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/lpcxpresso55s69_cpu1.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/lpcxpresso54114_m0.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/.gitpod.yml:
--------------------------------------------------------------------------------
1 | image:
2 | file: .gitpod.Dockerfile
3 | - command: apt-get update && apt-get install flex
4 |
5 | tasks:
6 | - init: make
7 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_uart/sample.yaml:
--------------------------------------------------------------------------------
1 | sample:
2 | description: eRPC Matrix multiplication
3 | name: eRPC Matrix multiplication
4 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/lpcxpresso55s69_cpu1.conf:
--------------------------------------------------------------------------------
1 | CONFIG_SECOND_CORE_MCUX=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/boards/mimxrt1160_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_INCLUDE_REMOTE_DIR=y
3 | CONFIG_SECOND_CORE_MCUX=y
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/sample.yaml:
--------------------------------------------------------------------------------
1 | sample:
2 | description: eRPC Matrix multiplication
3 | name: eRPC Matrix multiplication
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_tcp/sample.yaml:
--------------------------------------------------------------------------------
1 | sample:
2 | description: eRPC TCP Matrix multiplication
3 | name: eRPC Matrix TCP multiplication
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/boards/mimxrt1170_evk_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_INCLUDE_REMOTE_DIR=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contribution
2 |
3 | Contribution details are described in our [wiki/Contributing](https://github.com/EmbeddedRPC/erpc/wiki/Contributing)
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/boards/mimxrt1170_evkb_cm7.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_SECOND_CORE_MCUX=y
3 | CONFIG_INCLUDE_REMOTE_DIR=y
4 |
--------------------------------------------------------------------------------
/test/common/unit_test_common.erpc:
--------------------------------------------------------------------------------
1 | @group("unit_test_common")
2 | @id(0)
3 | interface Common {
4 | oneway quit()
5 | getServerAllocated() -> int32
6 | }
--------------------------------------------------------------------------------
/utilities/README.txt:
--------------------------------------------------------------------------------
1 | eRPC utilities
2 | -----------------
3 |
4 | This folder contains utilities which bring additional benefit
5 | to eRPC apps developers.
6 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/mimxrt1160_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/mimxrt1170_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/mimxrt1160_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/mimxrt1170_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/mimxrt1170_evkb_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/mimxrt1160_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/mimxrt1170_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
2 | CONFIG_BUILD_OUTPUT_HEX=y
3 | CONFIG_SECOND_CORE_MCUX=y
4 |
--------------------------------------------------------------------------------
/utilities/styles/README.txt:
--------------------------------------------------------------------------------
1 | styles
2 | -----------------
3 |
4 | This folder contains text editors styles for editing eRPC specific files.
5 | (IDL files, template files, ...)
6 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/remote/boards/mimxrt1160_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
3 | CONFIG_BUILD_OUTPUT_HEX=y
4 | CONFIG_SECOND_CORE_MCUX=y
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/remote/boards/mimxrt1170_evk_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
3 | CONFIG_BUILD_OUTPUT_HEX=y
4 | CONFIG_SECOND_CORE_MCUX=y
5 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/remote/boards/mimxrt1170_evkb_cm4.conf:
--------------------------------------------------------------------------------
1 | CONFIG_MBOX_NXP_IMX_MU=y
2 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
3 | CONFIG_BUILD_OUTPUT_HEX=y
4 | CONFIG_SECOND_CORE_MCUX=y
5 |
--------------------------------------------------------------------------------
/test/test_const/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_enums/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_lists/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_binary/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_builtin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_shared/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/test_typedef/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 | generate_erpc_test()
9 |
10 |
11 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/mimxrt1170_evkb_cm7.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | CONFIG_INCLUDE_REMOTE_DIR=y
7 | CONFIG_SECOND_CORE_MCUX=y
8 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.rpmsglite.arbitrator:
3 | sysbuild: true
4 | harness: gtest
5 | timeout: 60
6 | extra_configs:
7 | - CONFIG_THREAD_CUSTOM_DATA=y
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/sample.yaml:
--------------------------------------------------------------------------------
1 | sample:
2 | description: eRPC Matrix multiplication using MBOX transport layer
3 | name: eRPC MBOX Matrix multiplication
4 | common:
5 | sysbuild: true
6 | tags: mbox
7 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_binary/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | # Copyright 2023 NXP
2 | #
3 | # SPDX-License-Identifier: BSD-3-Clause
4 |
5 | # Include sysbuild cmake, that is same for all tests
6 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/arithmetic.erpc:
--------------------------------------------------------------------------------
1 | program erpc_test
2 |
3 | interface Arithmetic {
4 | add(float a, float b) -> float
5 | sub(float a, float b) -> float
6 | }
7 |
8 | interface Server {
9 | oneway quit()
10 | }
11 |
12 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/mimxrt1170_evkb_cm7.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | CONFIG_INCLUDE_REMOTE_DIR=y
7 | CONFIG_SECOND_CORE_MCUX=y
8 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_arrays/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.arrays:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_arrays/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_binary/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.binary:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_binary/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_const/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.const:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_const/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_enums/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.enums:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_enums/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_lists/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.lists:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_lists/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_shared/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.shared:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_shared/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_struct/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.struct:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_struct"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_unions/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.unions:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_unions/"
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_enums/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | # Include sysbuild cmake, that is same for all tests
7 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/uart/test_builtin/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.builtin:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_builtin/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_typedef/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.typedef:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_typedef/"
--------------------------------------------------------------------------------
/erpcsniffer/readme.txt:
--------------------------------------------------------------------------------
1 | multicore/erpc/erpcsniffer/readme.txt
2 |
3 | Directory Structure
4 |
5 | src - Contains source code for erpcsniffer application.
6 |
7 | Currently supported OS is Linux. Supported transport is tcp and serial.
8 |
--------------------------------------------------------------------------------
/test/test_unions/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 |
9 | set(ERPC_NAME "test")
10 |
11 | generate_erpc_test()
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arrays/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_builtin/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_callbacks/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_const/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_lists/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_shared/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_struct/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_typedef/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_unions/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/uart/test_callbacks/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.callbacks:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_callbacks/"
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_annotations/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/sysbuild.cmake:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | # Include sysbuild cmake, that is same for all tests
8 | include(${APP_DIR}/../cmake/sysbuild.cmake)
--------------------------------------------------------------------------------
/test/zephyr/uart/test_annotations/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.annotations:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_annotations/"
--------------------------------------------------------------------------------
/test/zephyr/uart/test_arbitrator/testcase.yaml:
--------------------------------------------------------------------------------
1 | tests:
2 | erpc.uart.arbitrator:
3 | harness: pytest
4 | tags:
5 | - pytest
6 | harness_config:
7 | pytest_root:
8 | - "../../../python_impl_tests/test_arbitrator/"
--------------------------------------------------------------------------------
/.gitpod.Dockerfile:
--------------------------------------------------------------------------------
1 | FROM gitpod/workspace-full
2 |
3 | # Install custom tools, runtimes, etc.
4 | # For example "bastet", a command-line tetris clone:
5 | # RUN brew install bastet
6 | #
7 | # More information: https://www.gitpod.io/docs/config-docker/
8 |
--------------------------------------------------------------------------------
/erpc_python/erpc/erpc_version.py:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env python
2 |
3 | # Copyright 2017-2025 NXP
4 | # All rights reserved.
5 | #
6 | # SPDX-License-Identifier: BSD-3-Clause
7 |
8 | # Should be same as in erpc_version.h
9 | ERPC_VERSION = "1.14.0"
10 |
--------------------------------------------------------------------------------
/erpcgen/test/imports/test21.erpc:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | import "test3/test3.erpc"
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/mimxrt1170_evkb_cm4.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
7 | CONFIG_BUILD_OUTPUT_HEX=y
8 | CONFIG_SECOND_CORE_MCUX=y
9 |
--------------------------------------------------------------------------------
/erpcgen/embedded-rpc.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/test/test_arrays/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 |
9 | set(TEST_ERPC_OUT_DIR ${ERPC_OUT_ROOT_DIR})
10 |
11 | generate_erpc_test()
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/test_struct/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 |
9 | set(ERPC_NAME_APP "test_ArithmeticService")
10 |
11 | generate_erpc_test()
12 |
13 |
14 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/mimxrt1170_evkb_cm4.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | CONFIG_BUILD_OUTPUT_INFO_HEADER=y
7 | CONFIG_BUILD_OUTPUT_HEX=y
8 | CONFIG_SECOND_CORE_MCUX=y
9 |
--------------------------------------------------------------------------------
/examples/matrix_multiply_python/service/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright 2017 NXP
2 | # All rights reserved.
3 | #
4 | #
5 | # SPDX-License-Identifier: BSD-3-Clause
6 |
7 | #
8 | # Generated by erpcgen 1.14.0 on Wed May 28 10:34:55 2025.
9 | #
10 | # AUTOGENERATED - DO NOT EDIT
11 | #
12 |
13 |
--------------------------------------------------------------------------------
/erpcgen/VisualStudio_v14/stdbool.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | // This header exists solely to resolve the missing header in VC++.
11 |
--------------------------------------------------------------------------------
/erpc_java/src/main/java/io/github/embeddedrpc/erpc/server/ThreadServer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | package io.github.embeddedrpc.erpc.server;
8 |
9 | /**
10 | * Threaded server.
11 | */
12 | public class ThreadServer {
13 | }
14 |
--------------------------------------------------------------------------------
/test/test_annotations/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | generate_erpc_test_variables()
8 |
9 | set(TEST_EXT_INCLUDES ${CURRENT_DIR})
10 | set(TEST_EXT_SOURCES ${TEST_COMMON_DIR}/addOne.cpp)
11 |
12 | generate_erpc_test()
13 |
14 |
15 |
--------------------------------------------------------------------------------
/utilities/styles/VSC/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "erpc-code-style" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
10 |
--------------------------------------------------------------------------------
/test/common/gtest/gtimer.c:
--------------------------------------------------------------------------------
1 | //#include "fsl_tstmr_driver.h"
2 |
3 | // This function is used for measuring time in google test framework, returns
4 | // elapsed time from reset in milliseconds
5 | unsigned int clock()
6 | {
7 | // return TSTMR_DRV_ReadTimeStamp(0)/1000;
8 | // TODO
9 | return 0;
10 | }
11 |
--------------------------------------------------------------------------------
/erpcgen/test/imports/test2.erpc:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | import "test21.erpc"
11 |
12 | interface ArithmeticService2 {
13 | oneway hello5(int32 a);
14 | }
15 |
--------------------------------------------------------------------------------
/examples/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | if (CONFIG_ERPC_MATRIX_MULTIPLY_TCP)
8 | add_subdirectory(${ERPC_EXAMPLES}/matrix_multiply_tcp_c)
9 | endif()
10 |
11 | if (CONFIG_ERPC_HELLO_WORLD)
12 | add_subdirectory(${ERPC_EXAMPLES}/hello_world)
13 | endif()
--------------------------------------------------------------------------------
/test/zephyr/uart/test_binary/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_builtin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_const/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_enums/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_lists/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_shared/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_typedef/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | # Include test
13 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
14 |
--------------------------------------------------------------------------------
/erpcgen/src/templates/py_global_init.template:
--------------------------------------------------------------------------------
1 | {% if mlComment != "" %}
2 | {$mlComment}
3 |
4 | {% endif %}
5 | #
6 | # Generated by erpcgen {$erpcVersion} on {$todaysDate}.
7 | #
8 | # AUTOGENERATED - DO NOT EDIT
9 | #
10 |
11 | {% if empty(crc16) == false %}
12 | ERPC_GENERATED_SHIM_CODE_CRC = {$crc16}
13 | {% endif -- empty(crc16) == false %}
14 |
--------------------------------------------------------------------------------
/test/java_impl_tests/src/test/java/io/github/embeddedrpc/erpc/tests/server/services/TestConstService.java:
--------------------------------------------------------------------------------
1 | package io.github.embeddedrpc.erpc.tests.server.services;
2 |
3 | import io.github.embeddedrpc.erpc.tests.test_const.erpc_outputs.test.server.AbstractEmptyInterfaceService;
4 |
5 | public class TestConstService extends AbstractEmptyInterfaceService {
6 | }
7 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_unions/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | set(ERPC_NAME test)
13 |
14 | # Include test
15 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
16 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/Kconfig:
--------------------------------------------------------------------------------
1 | # Copyright 2023-2024 NXP
2 | #
3 | # SPDX-License-Identifier: BSD-3-Clause
4 |
5 | source "Kconfig.zephyr"
6 |
7 | config INCLUDE_REMOTE_DIR
8 | bool "Include remote core header directory"
9 | help
10 | Include remote build header files. Can be used if primary image
11 | needs to be aware of size or base address of secondary image
12 |
--------------------------------------------------------------------------------
/.clang-format-ignore:
--------------------------------------------------------------------------------
1 | #list of ignored files to format
2 | ./erpc_c/port/erpc_serial.cpp
3 | ./erpcgen/src/cpptemplate/cpptempl.hpp
4 | ./erpcgen/src/cpptemplate/cpptempl.cpp
5 | ./erpcgen/src/cpptemplate/cpptempl_test.cpp
6 | ./erpcgen/test/test_includes/test_includes_union.h
7 | ./test/common/gtest/gtest.h
8 | ./test/common/gtest/gtest.cpp
9 | ./test/common/retarget_cpp_streamed_io.c
10 |
--------------------------------------------------------------------------------
/erpcgen/test/test_includes/test_includes_union.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2017 NXP
3 | * All rights reserved.
4 | *
5 | *
6 | * SPDX-License-Identifier: BSD-3-Clause
7 | */
8 |
9 | #ifndef TEST_INCLUDES_UNION
10 | #define TEST_INCLUDES_UNION
11 |
12 | #include
13 |
14 | typedef union unionType
15 | {
16 | int32_t x;
17 | float y;
18 | }unionType;
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_uart/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP20=y
4 | CONFIG_GLIBCXX_LIBCPP=y
5 | CONFIG_NEWLIB_LIBC=y
6 |
7 | # eRPC
8 | CONFIG_ERPC=y
9 | CONFIG_ERPC_TRANSPORT_UART=y
10 |
11 | # UART
12 | CONFIG_CONSOLE=n
13 | CONFIG_UART_CONSOLE=n
14 |
15 | # Compiler
16 | CONFIG_MAIN_STACK_SIZE=4096
17 | CONFIG_HEAP_MEM_POOL_SIZE=8192
18 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP20=y
4 | CONFIG_NEWLIB_LIBC=y
5 | CONFIG_GLIBCXX_LIBCPP=y
6 |
7 | # Compiler
8 | CONFIG_MAIN_STACK_SIZE=4096
9 | CONFIG_HEAP_MEM_POOL_SIZE=8192
10 | CONFIG_NO_OPTIMIZATIONS=y
11 |
12 | # eRPC
13 | CONFIG_ERPC=y
14 | CONFIG_ERPC_TRANSPORT_MBOX=y
15 |
16 | # MBOX
17 | CONFIG_MBOX=y
18 |
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_const/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_enums/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_lists/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/Kconfig:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | source "Kconfig.zephyr"
8 |
9 | config INCLUDE_REMOTE_DIR
10 | bool "Include remote core header directory"
11 | help
12 | Include remote build header files. Can be used if primary image
13 | needs to be aware of size or base address of secondary image
14 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_binary/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_builtin/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_typedef/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_arrays/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | set(TEST_ERPC_OUT_DIR ${ERPC_OUT_ROOT_DIR})
13 |
14 | # Include test
15 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
16 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_struct/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | set(ERPC_NAME_APP test_ArithmeticService)
13 |
14 | # Include test
15 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
16 |
--------------------------------------------------------------------------------
/erpcgen/src/templates/c_crc.template:
--------------------------------------------------------------------------------
1 | {% if mlComment != ""%}
2 | {$mlComment}
3 |
4 | {% endif %}
5 | {$commonHeader()}
6 | #if !defined({$crcGuardMacro})
7 | #define {$crcGuardMacro}
8 |
9 | #if !defined(ERPC_GENERATED_CRC)
10 | #define ERPC_GENERATED_CRC {$crc16}
11 | #else
12 | #error "Macro 'ERPC_GENERATED_CRC' shouldn't be defined at this moment."
13 | #endif
14 |
15 | #endif // {$crcGuardMacro}
16 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/Kconfig:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | source "Kconfig.zephyr"
8 |
9 | config INCLUDE_REMOTE_DIR
10 | bool "Include remote core header directory"
11 | help
12 | Include remote build header files. Can be used if primary image
13 | needs to be aware of size or base address of secondary image
14 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_const/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_enums/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_lists/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/.vscode/README.md:
--------------------------------------------------------------------------------
1 | # VSCode project settings
2 |
3 | This settings are applied if this folder is opened in VSCode.
4 |
5 | ## Extension
6 |
7 | Please install `Makefile Tools` extension to build/run from VSCode. To run erpcgen (currently only for Linux), debug target need be build and temporary IDL file need be created in same directory as binary is created with file name `test.erpc`. See `.vscode/launch.json` file.
8 |
--------------------------------------------------------------------------------
/examples/hello_world/java/src/main/java/org/example/Main.java:
--------------------------------------------------------------------------------
1 | package org.example;
2 |
3 | import java.io.IOException;
4 |
5 | public class Main {
6 | public static void main(String[] args) throws IOException {
7 | if (args[0].equals("client")) {
8 | new Client().run();
9 | } else if (args[0].equals("server")) {
10 | new Server().run();
11 | }
12 | }
13 | }
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_binary/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_builtin/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_shared/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_typedef/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_annotations/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | # Include test
16 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
17 |
--------------------------------------------------------------------------------
/test/zephyr/uart/test_annotations/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
10 | project(${APP_TYPE})
11 |
12 | set(TEST_EXT_SOURCES ${TEST_COMMON_DIR}/addOne.cpp)
13 |
14 | # Include test
15 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
16 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/remote/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP20=y
4 | CONFIG_NEWLIB_LIBC=y
5 | CONFIG_GLIBCXX_LIBCPP=y
6 |
7 | # Compiler
8 | CONFIG_MAIN_STACK_SIZE=4096
9 | CONFIG_HEAP_MEM_POOL_SIZE=8192
10 | CONFIG_NO_OPTIMIZATIONS=y
11 |
12 | # eRPC
13 | CONFIG_ERPC=y
14 | CONFIG_ERPC_TRANSPORT_MBOX=y
15 |
16 | # MBOX
17 | CONFIG_MBOX=y
18 |
19 | CONFIG_STDOUT_CONSOLE=n
20 |
--------------------------------------------------------------------------------
/run_tests.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # exit when any command fails
4 | set -e
5 |
6 | make clean
7 | if [ "$1" = "clang" ]; then
8 | echo "Compiling by clang compiler."
9 | CC=clang CXX=clang++ make all
10 | python3 test/run_unit_tests.py clang
11 | else
12 | echo "Compiling by default gnu compiler."
13 | CC=gcc CXX=g++ make all
14 | python3 test/run_unit_tests.py gcc
15 | fi
16 |
17 | pytest erpcgen/test/
18 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_unions/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(ERPC_NAME test)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_mbox/Kconfig.sysbuild:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023-2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | source "share/sysbuild/Kconfig"
8 |
9 | config REMOTE_BOARD
10 | string
11 | default "mimxrt1170_evkb_cm4" if $(BOARD) = "mimxrt1170_evkb_cm7"
12 | default "mimxrt1170_evk_cm4" if $(BOARD) = "mimxrt1170_evk_cm7"
13 | default "mimxrt1160_evk_cm4" if $(BOARD) = "mimxrt1160_evk_cm7"
14 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_unions/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(ERPC_NAME test)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_callbacks/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | include(${APP_DIR}/common.cmake)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/prj.conf:
--------------------------------------------------------------------------------
1 | CONFIG_ERPC_GENERATOR=y
2 | CONFIG_ERPC_TESTS=y
3 | CONFIG_ERPC_LIB=n
4 |
5 | CONFIG_ERPC_TESTS.client=y
6 | CONFIG_ERPC_TESTS.server=y
7 |
8 | CONFIG_ERPC_TESTS.transport.tcp=y
9 | CONFIG_ERPC_TESTS.transport.tcp.host="localhost"
10 | CONFIG_ERPC_TESTS.transport.tcp.port=12345
11 |
12 | CONFIG_ERPC_TESTS.transport.serial=n
13 | #CONFIG_ERPC_TESTS.transport.serial.port="COM4"
14 | #CONFIG_ERPC_TESTS.transport.serial.baud=115200
15 |
16 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_struct/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(ERPC_NAME_APP test_ArithmeticService)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arrays/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(TEST_ERPC_OUT_DIR ${ERPC_OUT_ROOT_DIR})
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_callbacks/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | include(${APP_DIR}/common.cmake)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/lpcxpresso54114_m4.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_struct/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(ERPC_NAME_APP test_ArithmeticService)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/erpcgen/VisualStudio_v14/erpcgen.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | -g java -p "com.nxp.erpc.app" -v .\erpcgen_mockup.erpc
5 | WindowsLocalDebugger
6 |
7 |
--------------------------------------------------------------------------------
/erpcgen/test/test_include.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: python import
3 | desc:
4 | idl: |
5 | @include("sys")
6 | program test
7 |
8 | interface foo {
9 | bar(in string x) -> void
10 | }
11 | lang: py
12 | test/common.py:
13 | - import sys
14 | ---
15 | name: C include
16 | desc:
17 | idl: |
18 | @include("stdio.h")
19 | program test;
20 |
21 | interface foo {
22 | bar(in string x) -> void
23 | }
24 | test_common.h:
25 | - '#include "stdio.h"'
26 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/lpcxpresso54114_m0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_annotations/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(TEST_EXT_SOURCES ${TEST_COMMON_DIR}/addOne.cpp)
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arrays/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
13 | project(${APP_TYPE})
14 |
15 | set(TEST_ERPC_OUT_DIR ${ERPC_OUT_ROOT_DIR})
16 |
17 | # Include test
18 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
19 |
--------------------------------------------------------------------------------
/doxygen/mainpage_erpcgen.md:
--------------------------------------------------------------------------------
1 | # About eRPC generator {#mainpage}
2 |
3 | The eRPC generator (erpcgen) is a tool which generates the shim code for a server and client side. The generated shim code handles marshaling and unmarshaling a request. On the server side after unmarshaling, it implements a function call to the appropriate function based on request. An IDL (Interface Definition Language) is used to tell the generator tool about data types and RPC services.
4 |
--------------------------------------------------------------------------------
/erpcgen/embedded-rpc.xcodeproj/project.xcworkspace/xcuserdata/creed.xcuserdatad/WorkspaceSettings.xcsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | HasAskedToTakeAutomaticSnapshotBeforeSignificantChanges
6 |
7 | SnapshotAutomaticallyBeforeSignificantChanges
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/lpcxpresso54114_m4.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023-2024 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/lpcxpresso54114_m4.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/test/common/addOne.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | * SPDX-License-Identifier: BSD-3-Clause
7 | */
8 |
9 | #include "addOne.hpp"
10 |
11 | ////////////////////////////////////////////////////////////////////////////////
12 | // Code
13 | ////////////////////////////////////////////////////////////////////////////////
14 |
15 | int addOne(int x)
16 | {
17 | return ++x;
18 | }
19 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/lpcxpresso54114_m0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/lpcxpresso54114_m0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023-2024 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 | zephyr,ipc_shm = &sramx1;
13 | zephyr,ipc = &mailbox0;
14 | };
15 |
16 | sramx1:memory@4000000{
17 | compatible = "mmio-sram";
18 | reg = <0x4000000 0x8000>;
19 | };
20 | };
21 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_shared/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | # Copyright 2024 NXP
7 | #
8 | # SPDX-License-Identifier: BSD-3-Clause
9 | #
10 |
11 | cmake_minimum_required(VERSION 3.20.0)
12 |
13 | # Zephyr
14 | set(APP_TYPE "client")
15 |
16 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
17 | project(${APP_TYPE})
18 |
19 | # Include test
20 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
21 |
--------------------------------------------------------------------------------
/erpc_java/src/main/java/io/github/embeddedrpc/erpc/codec/CodecError.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | package io.github.embeddedrpc.erpc.codec;
8 |
9 | /**
10 | * Codec error.
11 | */
12 | public class CodecError extends RuntimeException {
13 | /**
14 | * Request error.
15 | *
16 | * @param message error message
17 | */
18 | public CodecError(String message) {
19 | super(message);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/erpcgen/README.md:
--------------------------------------------------------------------------------
1 | # ERPCGEN
2 | ## Directory Structure
3 |
4 | - bin - Contains scripts used during building erpcgen application.
5 | - src - Contains source code for erpcgen application.
6 | - test - Contains erpcgen tests
7 | - VisualStudio_v14 - Contains Visual Studio 2017 project files for building erpcgen application under windows.
8 |
9 |
10 | ## Files
11 |
12 | - Makefile - Contains code to build erpcgen under Linux and OS X.
13 | - CMakeLists.txt - Contains code to build erpcgen under Linux and OS X.
14 |
--------------------------------------------------------------------------------
/erpcgen/src/Utils.hpp:
--------------------------------------------------------------------------------
1 | /* Copyright 2023 NXP
2 | * Copyright 2023 ACRIOS Systems s.r.o.
3 | * All rights reserved.
4 | *
5 | *
6 | * SPDX-License-Identifier: BSD-3-Clause
7 | */
8 |
9 | #ifndef _EMBEDDED_RPC__UTILS_H_
10 | #define _EMBEDDED_RPC__UTILS_H_
11 |
12 | #include
13 | #include
14 |
15 | namespace erpcgen {
16 |
17 | void replaceAll(std::string &str, const std::string &from, const std::string &to);
18 |
19 | } // namespace erpcgen
20 |
21 | #endif //_EMBEDDED_RPC__UTILS_H_
22 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP20=y
4 | CONFIG_NEWLIB_LIBC=y
5 | CONFIG_GLIBCXX_LIBCPP=y
6 |
7 | # Compiler
8 | CONFIG_MAIN_STACK_SIZE=4096
9 | CONFIG_HEAP_MEM_POOL_SIZE=8192
10 |
11 | # eRPC
12 | CONFIG_ERPC=y
13 | CONFIG_ERPC_TRANSPORT_RPMSG_LITE=y
14 |
15 | # RPMSG Lite
16 | CONFIG_IPM=y
17 | CONFIG_EVENTS=y
18 | CONFIG_PRINTK=y
19 | CONFIG_RPMSGLITE=y
20 | CONFIG_RPMSGLITE_QUEUE=y
21 | CONFIG_RPMSGLITE_NS=y
22 | CONFIG_TIMESLICE_SIZE=1
--------------------------------------------------------------------------------
/erpcgen/src/format_string.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 | #if !defined(_format_string_h_)
10 | #define _format_string_h_
11 |
12 | #include
13 | #include
14 |
15 | /*!
16 | * \brief Returns a formatted STL string using printf format strings.
17 | */
18 | std::string format_string(const char *fmt, ...);
19 |
20 | #endif // _format_string_h_
21 |
--------------------------------------------------------------------------------
/erpcgen/test/imports/test3/test3.erpc:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | interface ArithmeticService6 {
11 | oneway hello1(int32 a);
12 | }
13 |
14 | interface ArithmeticService5 {
15 | oneway hello2(int32 a);
16 | }
17 |
18 | interface ArithmeticService4 {
19 | oneway hello3(int32 a);
20 | }
21 |
22 | interface ArithmeticService7 {
23 | oneway hello4(int32 a);
24 | }
--------------------------------------------------------------------------------
/erpcgen/test/test_import.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: C/Py import
3 | desc: C/Py import test is the same.
4 | idl: |
5 | import "imports/test2.erpc"
6 |
7 | c_test_client.h:
8 | - void hello1(int32_t a);
9 | - void hello2(int32_t a);
10 | - void hello3(int32_t a);
11 | - void hello4(int32_t a);
12 | - void hello5(int32_t a);
13 |
14 | c_test_server.h:
15 | - void hello1(int32_t a);
16 | - void hello2(int32_t a);
17 | - void hello3(int32_t a);
18 | - void hello4(int32_t a);
19 | - void hello5(int32_t a);
20 |
--------------------------------------------------------------------------------
/erpc_java/src/main/java/io/github/embeddedrpc/erpc/transport/RequestError.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | package io.github.embeddedrpc.erpc.transport;
8 |
9 | /**
10 | * Request error.
11 | */
12 | public class RequestError extends RuntimeException {
13 | /**
14 | * Request error.
15 | *
16 | * @param message error message
17 | */
18 | public RequestError(String message) {
19 | super(message);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/erpc_c/infra/erpc_utils.hpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 ACRIOS Systems s.r.o.
3 | * All rights reserved.
4 | *
5 | *
6 | * SPDX-License-Identifier: BSD-3-Clause
7 | */
8 |
9 | #include
10 |
11 | namespace erpc {
12 | typedef void *functionPtr_t;
13 | typedef functionPtr_t *arrayOfFunctionPtr_t;
14 |
15 | bool findIndexOfFunction(const arrayOfFunctionPtr_t sourceArrayOfFunctionPtr, uint16_t sourceArrayLength,
16 | const functionPtr_t functionPtr, uint16_t &retVal);
17 | } // namespace erpc
18 |
--------------------------------------------------------------------------------
/erpcgen/VisualStudio_v14/stdafx.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | // stdafx.cpp : source file that includes just the standard includes
11 | // erpcgen.pch will be the pre-compiled header
12 | // stdafx.obj will contain the pre-compiled type information
13 |
14 | #include "stdafx.h"
15 |
16 | // TODO: reference any additional headers you need in STDAFX.H
17 | // and not in this file
18 |
--------------------------------------------------------------------------------
/erpcgen/src/Utils.cpp:
--------------------------------------------------------------------------------
1 | /* Copyright 2023 NXP
2 | * Copyright 2023 ACRIOS Systems s.r.o.
3 | * All rights reserved.
4 | *
5 | *
6 | * SPDX-License-Identifier: BSD-3-Clause
7 | */
8 |
9 | #include "Utils.hpp"
10 |
11 | void erpcgen::replaceAll(std::string &str, const std::string &from, const std::string &to)
12 | {
13 | size_t start_pos = 0;
14 | while ((start_pos = str.find(from, start_pos)) != std::string::npos)
15 | {
16 | str.replace(start_pos, from.length(), to);
17 | start_pos += to.length();
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/boards/lpcxpresso55s69_cpu0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/config/remote/boards/lpcxpresso55s69_cpu1.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/boards/lpcxpresso55s69_cpu0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023-2024 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP20=y
4 | CONFIG_NEWLIB_LIBC=y
5 | CONFIG_GLIBCXX_LIBCPP=y
6 |
7 | # Compiler
8 | CONFIG_MAIN_STACK_SIZE=4096
9 | CONFIG_HEAP_MEM_POOL_SIZE=8192
10 |
11 | # eRPC
12 | CONFIG_ERPC=y
13 | CONFIG_ERPC_TRANSPORT_RPMSG_LITE=y
14 |
15 | # RPMSG Lite
16 | CONFIG_IPM=y
17 | CONFIG_EVENTS=y
18 | CONFIG_PRINTK=y
19 | CONFIG_RPMSGLITE=y
20 | CONFIG_RPMSGLITE_QUEUE=y
21 | CONFIG_RPMSGLITE_NS=y
22 | CONFIG_TIMESLICE_SIZE=1
23 |
24 | CONFIG_STDOUT_CONSOLE=n
25 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/boards/lpcxpresso55s69_cpu0.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/erpcgen/VisualStudio_v14/targetver.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | #pragma once
11 |
12 | // Including SDKDDKVer.h defines the highest available Windows platform.
13 |
14 | // If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
15 | // set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
16 |
17 | #include
18 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/config/remote/boards/lpcxpresso55s69_cpu1.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/examples/hello_world/py/config.py:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2023 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 | def lead_config(path: str = "config.h") -> dict:
7 | """ Load config macros from C header file"""
8 | result = {}
9 |
10 | with open(path, "r") as file:
11 | context = file.read().split("#define ")[1:]
12 | for c in context:
13 | cfg = c.split(" ")
14 | if len(cfg) > 1:
15 | val = cfg[1].strip().replace("\"", "")
16 | result[cfg[0]] = val
17 |
18 | return result
19 |
--------------------------------------------------------------------------------
/examples/matrix_multiply_python/service/erpc_matrix_multiply/common.py:
--------------------------------------------------------------------------------
1 | # Copyright 2017 NXP
2 | # All rights reserved.
3 | #
4 | #
5 | # SPDX-License-Identifier: BSD-3-Clause
6 |
7 | #
8 | # Generated by erpcgen 1.14.0 on Wed May 28 10:34:55 2025.
9 | #
10 | # AUTOGENERATED - DO NOT EDIT
11 | #
12 |
13 |
14 | # Constant variable declarations
15 | #This const defines the matrix size. The value has to be the same as the
16 | #Matrix array dimension. Do not forget to re-generate the erpc code once the
17 | #matrix size is changed in the erpc file
18 | matrix_size = 5
19 |
20 |
--------------------------------------------------------------------------------
/examples/zephyr/matrix_multiply_rpmsglite/remote/boards/lpcxpresso55s69_cpu1.overlay:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023-2024 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | / {
8 | chosen {
9 | /*
10 | * shared memory reserved for the inter-processor communication
11 | */
12 |
13 | zephyr,ipc_shm = &sram4duplicate;
14 | zephyr,ipc = &mailbox0;
15 | };
16 |
17 | /* This is a duplication of sram4, workaround */
18 | sram4duplicate: memory@20040000 {
19 | compatible = "mmio-sram";
20 | reg = <0x20040000 DT_SIZE_K(16)>;
21 | };
22 | };
23 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "client")
11 |
12 | set(APPLICATION_CONFIG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/config)
13 | set(CONFIG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/config)
14 |
15 | include(${CMAKE_CURRENT_SOURCE_DIR}/../cmake/unit_test.cmake)
16 | project(${APP_TYPE})
17 |
18 | include(${APP_DIR}/common.cmake)
19 |
20 | # Include test
21 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
22 |
--------------------------------------------------------------------------------
/erpc_c/port/port.dox:
--------------------------------------------------------------------------------
1 | /*!
2 | @defgroup port Porting
3 | @brief Porting layer
4 | */
5 |
6 | /*!
7 | @defgroup port_mem Memory
8 | @brief Memory allocation
9 | @ingroup port
10 | */
11 |
12 | /*!
13 | @defgroup port_threads Threads
14 | @brief Threading model
15 | @ingroup port
16 | */
17 |
18 | /*!
19 | @defgroup port_serial Serial
20 | @brief Serial port
21 | @ingroup port
22 | */
23 |
24 | /*!
25 | @defgroup port_spidev SPIdev
26 | @brief SPIdev port
27 | @ingroup port
28 | */
29 |
30 | /*!
31 | @defgroup port_sysgpio SysGPIO
32 | @brief SysGPIO port
33 | @ingroup port
34 | */
--------------------------------------------------------------------------------
/erpcgen/src/ParseErrors.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 | #include "ParseErrors.hpp"
10 |
11 | using namespace erpcgen;
12 |
13 | ////////////////////////////////////////////////////////////////////////////////
14 | // Code
15 | ////////////////////////////////////////////////////////////////////////////////
16 |
17 | const char *syntax_error2::what() const NOEXCEPT NOTHROW
18 | {
19 | return m_what.c_str();
20 | }
21 |
--------------------------------------------------------------------------------
/erpcgen/VisualStudio_v14/stdafx.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3 | * Copyright 2016 NXP
4 | * All rights reserved.
5 | *
6 | *
7 | * SPDX-License-Identifier: BSD-3-Clause
8 | */
9 |
10 | // stdafx.h : include file for standard system include files,
11 | // or project specific include files that are used frequently, but
12 | // are changed infrequently
13 | //
14 |
15 | #pragma once
16 |
17 | #include "targetver.h"
18 |
19 | #include
20 | #include
21 |
22 | // TODO: reference additional headers your program requires here
23 |
--------------------------------------------------------------------------------
/examples/matrix_multiply_python/service/erpc_matrix_multiply/interface.py:
--------------------------------------------------------------------------------
1 | # Copyright 2017 NXP
2 | # All rights reserved.
3 | #
4 | #
5 | # SPDX-License-Identifier: BSD-3-Clause
6 |
7 | #
8 | # Generated by erpcgen 1.14.0 on Wed May 28 10:34:55 2025.
9 | #
10 | # AUTOGENERATED - DO NOT EDIT
11 | #
12 |
13 | # Abstract base class for MatrixMultiplyService
14 | class IMatrixMultiplyService(object):
15 | SERVICE_ID = 1
16 | ERPCMATRIXMULTIPLY_ID = 1
17 |
18 | def erpcMatrixMultiply(self, matrix1, matrix2, result_matrix):
19 | raise NotImplementedError()
20 |
21 |
22 |
--------------------------------------------------------------------------------
/erpc_c/port/erpc_port_mbed.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2020, Embedded Planet, Inc
3 | * All rights reserved.
4 | *
5 | * For supporting transports and examples see:
6 | * https://github.com/EmbeddedPlanet/mbed-rpc
7 | *
8 | * SPDX-License-Identifier: BSD-3-Clause
9 | */
10 |
11 | #include "erpc_port.h"
12 |
13 | #if ERPC_THREADS_IS(MBED)
14 |
15 | #include
16 |
17 | using namespace std;
18 |
19 | void *erpc_malloc(size_t size)
20 | {
21 | void *p = malloc(size);
22 | return p;
23 | }
24 |
25 | void erpc_free(void *ptr)
26 | {
27 | free(ptr);
28 | }
29 | #endif
30 |
--------------------------------------------------------------------------------
/erpcgen/test/example.yml:
--------------------------------------------------------------------------------
1 | ---
2 | name: i32
3 | desc: Test of int32 params and return
4 | idl: |
5 | interface xyz {
6 | add(int32 a, int32 b) -> int32
7 | }
8 | test.h:
9 | - int32_t add(int32_t a, int32_t b);
10 | test_client.cpp:
11 | - int32_t add(int32_t a, int32_t b)
12 | - out->write(a)
13 | - out->write(b)
14 | - int32_t result
15 | - in->read(&result)
16 | - return result
17 |
18 | ---
19 | name: py
20 | desc: Python example
21 | idl: |
22 | interface xyz {
23 | oneway quit()
24 | }
25 | lang: py
26 | test/interface.py:
27 | - def quit(self)
28 |
29 |
30 |
--------------------------------------------------------------------------------
/test/zephyr/rpmsglite/test_arbitrator/remote/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | cmake_minimum_required(VERSION 3.20.0)
8 |
9 | # Zephyr
10 | set(APP_TYPE "server")
11 |
12 | set(APPLICATION_CONFIG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../config/remote)
13 | set(CONFIG_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../config)
14 |
15 | include(${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/unit_test.cmake)
16 | project(${APP_TYPE})
17 |
18 | include(${APP_DIR}/common.cmake)
19 |
20 | # Include test
21 | include(${ZEPHYR_TEST_CMAKE_DIR}/test.cmake)
22 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/question.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Question
3 | about: Question regarding to eRPC
4 | title: "[QUESTION]"
5 | labels: question
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## If you didn't find answer in existing open/closed issues you may ask here
11 |
14 |
15 | ## Steps you didn't forgot to do
16 |
17 | - [ ] I checked if there is no related issue opened/closed.
18 | - [ ] I checked that there doesn't exist opened/closed PR which is solving this issue.
19 | - [ ] I looked in documentation if there is related information.
20 |
--------------------------------------------------------------------------------
/test/java_impl_tests/src/test/java/io/github/embeddedrpc/erpc/tests/server/TestConstServer.java:
--------------------------------------------------------------------------------
1 | package io.github.embeddedrpc.erpc.tests.server;
2 |
3 | import io.github.embeddedrpc.erpc.server.Service;
4 | import io.github.embeddedrpc.erpc.tests.TestingServer;
5 | import io.github.embeddedrpc.erpc.tests.server.services.CommonService;
6 | import org.junit.jupiter.api.Test;
7 |
8 | public class TestConstServer {
9 |
10 | @Test
11 | public void testConstServer(){
12 | TestingServer server = new TestingServer(new Service[]{ new CommonService()});
13 | server.run();
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/test/java_impl_tests/src/test/java/io/github/embeddedrpc/erpc/tests/server/services/CommonService.java:
--------------------------------------------------------------------------------
1 | package io.github.embeddedrpc.erpc.tests.server.services;
2 |
3 | import io.github.embeddedrpc.erpc.tests.TestingServer;
4 | import io.github.embeddedrpc.erpc.tests.test_const.erpc_outputs.test_unit_test_common.server.AbstractCommonService;
5 |
6 | public class CommonService extends AbstractCommonService {
7 |
8 | @Override
9 | public void quit() {
10 | TestingServer.stop();
11 | }
12 |
13 | @Override
14 | public int getServerAllocated() {
15 | return 0;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/test/zephyr/uart/config/prj.conf:
--------------------------------------------------------------------------------
1 | # C++ Language Support
2 | CONFIG_CPP=y
3 | CONFIG_STD_CPP17=y
4 | CONFIG_GLIBCXX_LIBCPP=y
5 |
6 | CONFIG_NEWLIB_LIBC=y
7 | CONFIG_NEWLIB_LIBC_NANO=y
8 |
9 | # Compiler
10 | CONFIG_MAIN_STACK_SIZE=4096
11 | CONFIG_HEAP_MEM_POOL_SIZE=8192
12 | CONFIG_NO_OPTIMIZATIONS=y
13 |
14 | # eRPC
15 | CONFIG_ERPC=y
16 | CONFIG_ERPC_TRANSPORT_UART=y
17 |
18 | # UART
19 | CONFIG_CONSOLE=n
20 | CONFIG_UART_CONSOLE=n
21 |
22 | CONFIG_THREAD_NAME=y
23 | CONFIG_SCHED_CPU_MASK=y
24 | CONFIG_THREAD_ANALYZER=y
25 |
26 | CONFIG_LOG=y
27 | CONFIG_LOG_MODE_IMMEDIATE=y
28 | CONFIG_LOG_OVERRIDE_LEVEL=3
--------------------------------------------------------------------------------
/erpc_java/src/main/java/io/github/embeddedrpc/erpc/codec/BasicCodecFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2023 NXP
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | */
6 |
7 | package io.github.embeddedrpc.erpc.codec;
8 |
9 | /**
10 | * Implementation of CodeFactory for BasicCodec.
11 | */
12 | public final class BasicCodecFactory extends CodecFactory {
13 | @Override
14 | protected Codec createCodec() {
15 | return new BasicCodec();
16 | }
17 |
18 | @Override
19 | protected Codec createCodec(final byte[] array) {
20 | return new BasicCodec(array);
21 | }
22 |
23 | }
24 |
--------------------------------------------------------------------------------
/erpc_c/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright 2024 NXP
3 | #
4 | # SPDX-License-Identifier: BSD-3-Clause
5 | #
6 |
7 | include(erpc_c_sources.cmake)
8 | # Create erpc library
9 | add_library(erpc STATIC ${ERPC_C_SOURCES})
10 | set_target_properties(erpc PROPERTIES PUBLIC_HEADER "${ERPC_C_HEADERS}")
11 |
12 | target_include_directories(erpc PUBLIC ${ERPC_C_INCLUDES} ${ERPC_C}/config)
13 |
14 | # Required for TCP transport
15 | if(WIN32)
16 | target_link_libraries(erpc PRIVATE wsock32 ws2_32)
17 | endif()
18 |
19 | # Install erpc as library
20 | install(TARGETS erpc PUBLIC_HEADER DESTINATION include/erpc/)
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/utilities/styles/VSC/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that launches the extension inside a new window
2 | // Use IntelliSense to learn about possible attributes.
3 | // Hover to view descriptions of existing attributes.
4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5 | {
6 | "version": "1.0.0",
7 | "configurations": [{
8 | "name": "Debug eRPC syntax highlighting",
9 | "type": "extensionHost",
10 | "request": "launch",
11 | "args": [
12 | "--extensionDevelopmentPath=${workspaceFolder}"
13 | ]
14 | }]
15 | }
16 |
--------------------------------------------------------------------------------
/doxygen/html_footer.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |
12 |
15 |
16 |