esp-idf/examples/cxx/experimental/experimental_cpp_component
Jakob Hasse 7efb01846f [cxx]: simple spi master class
* spi cxx unit test (CATCH-based, on host)
* added portmacro.h to driver mocking
* added simple testing app to write/read SPI,
  using an MPU9250
2021-10-25 14:56:59 +08:00
..
2021-10-25 14:56:59 +08:00
2021-10-25 14:56:59 +08:00
2021-10-25 14:56:59 +08:00
2021-10-25 14:56:59 +08:00
2021-10-25 14:56:59 +08:00
2020-07-24 08:36:16 +08:00
2021-10-25 14:56:59 +08:00

Experimental C++ Component

Warning: This component is subject to change without notice. Don't consider it as a stable API. It proposes future C++ interfaces of IDF components.

Usage/Build

To use and build this component, add it as an extra component in your project's cmake file:

set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/cxx/experimental/experimental_cpp_component)

Tests

To build the tests, first add them to the unit test's CMakeLists.txt:

set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/cxx/experimental/experimental_cpp_component/")

Then go to the unit test app's directory and run:

idf.py -T experimental_cpp_component build