forked from Archive/PX4-Autopilot
Merge pull request #3297 from PX4/master_uavcan_num_if
Set number of UAVCAN interfaces on HW from top level cmake file
This commit is contained in:
commit
93bb1ab80f
|
@ -2,6 +2,8 @@ include(nuttx/px4_impl_nuttx)
|
|||
|
||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake)
|
||||
|
||||
set(config_uavcan_num_ifaces 2)
|
||||
|
||||
set(config_module_list
|
||||
#
|
||||
# Board support modules
|
||||
|
|
|
@ -2,6 +2,8 @@ include(nuttx/px4_impl_nuttx)
|
|||
|
||||
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake)
|
||||
|
||||
set(config_uavcan_num_ifaces 1)
|
||||
|
||||
set(config_module_list
|
||||
#
|
||||
# Board support modules
|
||||
|
|
|
@ -41,7 +41,7 @@ add_definitions(
|
|||
-DUAVCAN_NO_ASSERTIONS
|
||||
-DUAVCAN_PLATFORM=stm32
|
||||
-DUAVCAN_STM32_${OS_UPPER}=1
|
||||
-DUAVCAN_STM32_NUM_IFACES=2
|
||||
-DUAVCAN_STM32_NUM_IFACES=${config_uavcan_num_ifaces}
|
||||
-DUAVCAN_STM32_TIMER_NUMBER=5
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue