Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/migration_guide_v0_5_to_v0_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ v0.6.0 turns libdcnode into a standalone CMake library with explicit integration
# libdcnode
add_subdirectory(${ROOT_DIR} ${CMAKE_BINARY_DIR}/libdcnode)

# platform config
set(CAN_PLATFORM socketcan) # bxcan, fdcan, socketcan
# optional bundled platform config
set(CAN_PLATFORM socketcan) # bxcan or socketcan
include(${ROOT_DIR}/platform_specific/${CAN_PLATFORM}/config.cmake)

# libparams
Expand All @@ -54,6 +54,9 @@ target_include_directories(${PROJECT_NAME} PRIVATE ... ${DRONECAN_PLATFORM_HEADE
target_link_libraries(${PROJECT_NAME} PRIVATE libdcnode::libdcnode)
```

FDCAN applications provide their `canDriver*` callbacks from the application
peripheral layer and pass them through `PlatformApi`.

2. **Update includes**

```cpp
Expand Down
2 changes: 1 addition & 1 deletion examples/ubuntu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cmake_path(GET EXAMPLES_DIR PARENT_PATH ROOT_DIR)
add_subdirectory(${ROOT_DIR} ${CMAKE_BINARY_DIR}/libdcnode)

# 2. libcanver
set(CAN_PLATFORM socketcan) # Options: bxcan, fdcan or socketcan
set(CAN_PLATFORM socketcan) # Options: bxcan or socketcan
include(${ROOT_DIR}/platform_specific/${CAN_PLATFORM}/config.cmake)

# 3. libparams
Expand Down
10 changes: 0 additions & 10 deletions platform_specific/fdcan/config.cmake

This file was deleted.

118 changes: 0 additions & 118 deletions platform_specific/fdcan/stm32g0b1.cpp

This file was deleted.

175 changes: 0 additions & 175 deletions platform_specific/fdcan/stm32h753xx.cpp

This file was deleted.