2022-08-12 15:24:06 -04:00
|
|
|
[![QP Zephyr Module](../doxygen/images/qp-zephyr.jpg)](https://www.state-machine.com/qpcpp/zephyr.html)
|
|
|
|
|
|
|
|
# About the QPCPP Zephyr Module
|
2022-08-11 15:36:19 -04:00
|
|
|
This directory defines the
|
|
|
|
[QP/C++ Real-Time Embedded Framework](https://github.com/QuantumLeaps/qpcpp)
|
|
|
|
as a [Zephyr module](https://docs.zephyrproject.org/latest/develop/modules.html).
|
|
|
|
|
|
|
|
# How to use
|
|
|
|
Example of use is provided in the related repository
|
|
|
|
[qpcpp-zephyr-app](https://github.com/QuantumLeaps/qpcpp-zephyr-app)
|
|
|
|
|
2022-08-12 15:24:06 -04:00
|
|
|
To create your own QP-Zephyr project, you can clone that repository
|
|
|
|
and customize it to your needs:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/QuantumLeaps/qpcpp-zephyr-app <my-project> --recurse-submodules --depth 1
|
|
|
|
```
|
|
|
|
where `<my-project>` is the name of your project.
|
|
|
|
|
2022-08-11 15:36:19 -04:00
|
|
|
|
|
|
|
## Configuring the QPCPP Zephyr Module
|
2022-08-12 15:24:06 -04:00
|
|
|
The `Kconfig` file provides configuration `CONFIG_QPCPP` to activate the QPCPP module
|
|
|
|
in Zephyr. To do so, you need to add the following line to your `prj.conf`:
|
2022-08-11 15:36:19 -04:00
|
|
|
|
|
|
|
```ini
|
|
|
|
CONFIG_QPCPP=y
|
|
|
|
```
|
|
|
|
|
2022-08-12 15:24:06 -04:00
|
|
|
## Option for Activating QSPY Software Tracing
|
|
|
|
The QP/C++ Zephyr Module supports the
|
|
|
|
[QSPY Software Tracing](https://www.state-machine.com/qtools/qpspy.html)
|
|
|
|
option and will add the appropriate macros and files to build the "QSPY"
|
|
|
|
configuration.
|
2022-08-11 15:36:19 -04:00
|
|
|
|
2022-08-12 15:24:06 -04:00
|
|
|
If you wish to enable "QSPY" you can provide the option "QSPY"
|
|
|
|
in the command-line for the build. For example:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
west build -b nucleo_h743zi -- -DQSPY=ON
|
2022-08-11 15:36:19 -04:00
|
|
|
```
|