The open source GPL distribution of QP/C++ can be augmented by the QP/C++ Extras, which provide more advanced QP/C++ features, such as:
The "QP/C++ Extras" are licensed commercially↑ and available to the commercial licensees with the active Support Term. Interested developers can also submit evaluation request↑.
The "QP/C++ Extras" are delivered in a ZIP archive with the following naming convention:
qpcpp-extras_{version}.zip // e.g., qpcpp-extras_8.1.0.zip
The ZIP archive should be extracted and merged into the matching existing open-source QP/C++ installation. For example, qpcpp-extras_8.1.0.zip should be extracted into the existing installation of QP/C++ 8.1.0.
QP/C++ Extras consist of the following directories and files:
qpcpp/ // qpcpp installation directory
|
+---include/
| qs.hpp // QS target-resident software tracing public header file
| qs_pkg.hpp // QS target-resident software tracing package-scope header
| qxk.hpp // QXK dual-mode real-time kernel header file
|
+---src/
| |
| +---qs/ // QS target-resident software tracing component implementation
| | qf_stub.cpp // QP stub (test double) for QUTest unit testing
| | qs.cpp
| | qs_64bit.cpp
| | qs_fp.cpp
| | qs_rx.cpp
| | qutest.cpp
| |
| \---qxk/ // QXK dual-mode component implementation
| qxk.cpp
| qxk_mutex.cpp
| qxk_sema.cpp
| qxk_xthr.cpp
|
+---ports/
| +---arm-cm/
| | +---qxk/
| | | +---armclang/
| | | | qxk_port.cpp
| | | | qp_port.hpp
| | | | qs_port.hpp
| | | |
| | | +---gnu/
| | | | qxk_port.cpp
| | | | qp_port.hpp
| | | | qs_port.hpp
| | | |
| | | \---iar/
| | | qxk_port.cpp
| | | qp_port.hpp
| | | qs_port.hpp
| | |
| | \---qutest/
| | qp_port.hpp
| | qs_port.hpp
| |
| +---posix-qutest/
| | qp_port.hpp
| | qs_port.hpp
| | qutest_port.cpp
| | safe_std.hpp
| |
| \---win32-qutest/
| qp_port.hpp
| qs_port.hpp
| qutest_port.cpp
| safe_std.hpp
|
|
+---static-analysis/
| |
| \---pclp
| | au-ds.lnt // Dan Saks' recommendations for placing 'const' and 'volatile'
| | au-misra-cpp2.lnt // PCLP MISRA-C++:2023 (MP2) configuration for rules checking
| | co-gnu_arm.bat // script to generate configuration for GNU-ARM toolset
| | co-gnu_arm.h // generated PCLP header file for GNU-ARM (15.2 at this time)
| | co-gnu_arm.lnt // generated PCLP configuration file for GNU-ARM (15.2 at this time)
| | co-mingw32.bat // script to generate configuration for MinGW32 toolset
| | co-mingw32.h // generated PCLP header file for MinGW32 (15.2 at this time)
| | co-mingw32.lnt // generated PCLP configuration for MinGW32 (15.2 at this time)
| | make.bat // script to run the PCLP analysis
| | metrics_file.py // Python script to generate file metrics report from PCLP data
| | metrics_func.py // Python script to generate function metrics report from PCLP data
| | metrics_unit.py // Python script to generate translation-unit metrics report from PCLP data
| | options.lnt // PCLP configuration with Deviation Records in QP source code
| | qpcpp.lnt // PCLP configuration with Deviation Permits in QP applications
| | qp_config.hpp // QP compile-time configuration used for "linting" QP source code
| | std.lnt // PCLP standard configuration used for "linting" QP source code
| |
| +---qk/
| | qp_port.hpp // "QK port" for "linting" QK kernel code
| | qs_port.hpp // "QS port" for "linting" QK kernel code
| |
| +---qv/
| | qp_port.hpp // "QV port" for "linting" QV kernel code
| | qs_port.hpp // "QS port" for "linting" QV kernel code
| |
| \---qxk/
| qp_port.hpp // "QXK port" for "linting" QXK kernel code
| qs_port.hpp // "QS port" for "linting" QXK kernel code
|
\---tests/
|
| // unit tests (TUN) (host and embedded target)
+---TUN_QP_qep_hsm/ // unit tests (TUN) for the qep_hsm module
| +---src/ // code for exercising the module under test
| | app.hpp // test signals and state machine objects
| | app_sf.hpp // state machines for Safety Functions
| | tstsm.cpp // QM-generated state machine implementation
| | tstsm.qm // QM model to generate code
| | tstsm_sf.cpp // QM-generated state machines for Safety Functions
| \---test/
| | qp_config.hpp // QP configuration for the test
| | test_fixture.cpp // QUTest fixture
| | TUN_QP_qep_hsm.py // QUTest script for main functionality
| | TUN_QP_qep_hsm_sf.py // QUTest script for Safety Functions
| +---host/ // build & run on the host (Makefile)
| \---nucleo-h533re/ // build & run on NUCLEO-H533RE (Makefile)
|
+---TUN_QP_qep_msm/ // unit tests (TUN) for the qep_msm module
| ...
+---TUN_QP_qf_act/ // unit tests (TUN) for the qf_act module
| ...
+---TUN_QP_qf_actq8/ // unit tests (TUN) for the qf_actq module (8-bit counters)
| ...
+---TUN_QP_qf_actq16/ // unit tests (TUN) for the qf_actq module (16-bit counters)
| ...
+---TUN_QP_qf_defer/ // unit tests (TUN) for the qf_defer module
| ...
+---TUN_QP_qf_dyn/ // unit tests (TUN) for the qf_dyn module
| ...
+---TUN_QP_qf_dyn_raii/ // unit tests (TUN) for the qf_dyn module (event initialization)
| ...
+---TUN_QP_qf_mem/ // unit tests (TUN) for the qf_mem module
| ...
+---TUN_QP_qf_ps/ // unit tests (TUN) for the qf_ps module
| ...
+---TUN_QP_qf_qact64/ // unit tests (TUN) for the qf_qact module (64 AOs)
| ...
+---TUN_QP_qf_qact32/ // unit tests (TUN) for the qf_qact module (32 AOs)
| ...
+---TUN_QP_qf_qact16/ // unit tests (TUN) for the qf_qact module (16 AOs)
| ...
+---TUN_QP_qf_qact8/ // unit tests (TUN) for the qf_qact module (8 AOs)
| ...
+---TUN_QP_qf_qeq8/ // unit tests (TUN) for the qf_qeq module (8-bit counters)
| ...
+---TUN_QP_qf_qeq16/ // unit tests (TUN) for the qf_qeq module (16-bit counters)
| ...
+---TUN_QP_qf_qmact/ // unit tests (TUN) for the qf_qmact module
| ...
+---TUN_QP_qf_time16/ // unit tests (TUN) for the qf_time module (16-bit counters)
| ...
+---TUN_QP_qf_time32/ // unit tests (TUN) for the qf_time module (32-bit counters)
| ...
+---TUN_QP_qk/ // unit tests (TUN) for the qk module
| ...
+---TUN_QP_qv/ // unit tests (TUN) for the qv module
| ...
+---TUN_QP_qutest/ // unit tests (TUN) for the qutest module
| ...
|
| // integration tests (TIN) (host and embedded target)
+---TIN_QP_ps/ // integration tests (TIN) for publish-subscribe
| +---src/ // support code (QM model and generated code)
| +---test_8/ // fixture: 8 configured AOs
| | | qp_config.hpp // QP configuration for the fixture
| | | test_fixture.cpp // QUTest fixture
| | | TIN_QP_ps_8.py // QUTest script
| | +---host/ // build & run on the host (Makefile)
| | \---nucleo-h533re/ // build & run on NUCLEO-H533RE (Makefile)
| +---test_16/ // fixture: 16 configured AOs
| +---test_32/ // fixture: 32 configured AOs
| \---test_64/ // fixture: 64 configured AOs
+---TIN_QP_ao/ // integration tests (TIN) for Active Objects and direct event posting
| +---src/ // support code (QM model and generated code)
| +---test_eq8/
| \---test_eq16/
+---TIN_QP_evt/ // integration tests (TIN) for events and event memory management
| +---src/ // support code (QM model and generated code)
| +---test_std/
| \---test_par/
+---TIN_QP_defer/ // integration tests (TIN) for event deferral
| +---src/ // support code (QM model and generated code)
| +---test_std/
| \---test_nopool/
+---TIN_QP_time/ // integration tests (TIN) for Time Events and clock tick rates
| +---src/ // support code (QM model and generated code)
| +---test_te16/
| \---test_te32/
+---TIN_QP_sm/ // integration tests (TIN) for state machines of Active Objects
| +---src/ // support code (QM model and generated code)
| +---test_hsm/
| \---test_msm/
+---TIN_QP_qk/ // integration tests (TIN) for the QK kernel with the Framework services
| +---src/ // support code (QM model and generated code)
| \---test_std/
+---TIN_QP_qv/ // integration tests (TIN) for the QV kernel with the Framework services
| +---src/ // support code (QM model and generated code)
| \---test_std/
+---TIN_QP_cfgchk/ // build test (host only) of the link-time configuration check
| \---test_std/
|
+---shared/ // build and support code shared by the tests
| | gnu-host_cpp.mak // make rules for the host (GCC + GCOV)
| | gnu-arm_cpp.mak // make rules for the embedded target (GNU-ARM)
| | safe-qp_check.pyi // common checks included in the test scripts
| +---tin_qk/ // TIN support for QK (BSP, host QK port, script include)
| \---tin_qv/ // TIN support for QV (BSP, host QV port, script include)
|
\---auto_run/ // running all tests and collecting the test logs
run_tests.py // test runner (host or embedded target)