Adds kinetis Flexcan driver as a submodule

This commit is contained in:
David Sidrane 2018-08-07 10:10:11 -07:00
parent c044630390
commit 3ca697e64d
4 changed files with 11 additions and 2 deletions

3
.gitmodules vendored
View File

@ -4,3 +4,6 @@
[submodule "libuavcan/dsdl_compiler/pyuavcan"]
path = libuavcan/dsdl_compiler/pyuavcan
url = https://github.com/UAVCAN/pyuavcan
[submodule "libuavcan_drivers/kinetis"]
path = libuavcan_drivers/kinetis
url = https://github.com/UAVCAN/libuavcan_kinetis.git

View File

@ -9,6 +9,7 @@ env:
- TARGET=native
- TARGET=lpc11c24
- TARGET=stm32
- TARGET=kinetis
addons:
coverity_scan:
project:
@ -25,3 +26,4 @@ script:
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "native" ]; then make && make ARGS=-VV test; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "lpc11c24" ]; then cd "$TRAVIS_BUILD_DIR/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24" && make all; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "stm32" ]; then echo "TODO STM32 test environment is not configured"; fi
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "kinetis" ]; then echo "TODO Kinetis test environment is not configured"; fi

View File

@ -19,7 +19,7 @@ set(opts
"CMAKE_BUILD_TYPE:STRING:RelWithDebInfo:Debug Release RelWithDebInfo MinSizeRel:Build type."
"CMAKE_CXX_FLAGS:STRING:::C++ flags."
"CMAKE_C_FLAGS:STRING:::C flags."
"UAVCAN_PLATFORM:STRING:generic:generic linux stm32:Platform."
"UAVCAN_PLATFORM:STRING:generic:generic kinetis linux stm32:Platform."
"CONTINUOUS_INTEGRATION_BUILD:BOOL:OFF::Disable error redirection and timing tests"
"UAVCAN_CMAKE_VERBOSE:BOOL:OFF::Verbose CMake configure output"
)
@ -119,6 +119,9 @@ elseif(${UAVCAN_PLATFORM} STREQUAL "stm32")
message(STATUS "Adding UAVCAN STM32 platform driver")
add_subdirectory(libuavcan_drivers/posix)
add_subdirectory(libuavcan_drivers/stm32/driver)
elseif(${UAVCAN_PLATFORM} STREQUAL "kinetis")
message(STATUS "Adding UAVCAN Kinetis platform driver")
add_subdirectory(libuavcan_drivers/posix)
add_subdirectory(libuavcan_drivers/kinetis/driver)
endif()
# vim: set et ft=cmake fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :

@ -0,0 +1 @@
Subproject commit 2b30b3b9339bc2f7cd2de4c83f435462ef44ec42