rtlabs-com / c-open

CANopen stack for embedded devices
http://www.rt-labs.com
Other
79 stars 40 forks source link

Use rtlabs-com/osal and rtlabs-com/cmake-tools #27

Closed hefloryd closed 3 years ago

hefloryd commented 3 years ago

This PR uses the common OSAL and CMake tools repositories to avoid code duplication between rt-labs projects. CMakeLists are updated to facilitate using c-open as a subproject. Tests and documentation are not built when c-open is a subproject.

Remaining c-open-specific abstraction files are renamed to use the coal prefix, for C-Open Abstraction Layer. Functions and macros have not been renamed in this PR.

This PR also add a clang-format config file and reformats code to get consistent formatting. A .git-blame-ignore-revs file is added to be used for blaming purposes.

The common build tools are consumed as a git submodule. The c-open repository should be cloned with the --recurse-submodules switch.

Already cloned repositories can be updated with:

$ git submodule update --init --recursive