2016-12-12 09:38:52 -04:00
|
|
|
|
2017-03-27 08:52:07 -03:00
|
|
|
add_definitions(
|
|
|
|
-DPARAM_NO_ORB
|
|
|
|
-DPARAM_NO_AUTOSAVE
|
|
|
|
)
|
2016-12-12 09:38:52 -04:00
|
|
|
|
|
|
|
px4_nuttx_configure(HWCLASS m3 CONFIG nsh)
|
|
|
|
|
|
|
|
# UAVCAN boot loadable Module ID
|
|
|
|
set(uavcanblid_sw_version_major 0)
|
|
|
|
set(uavcanblid_sw_version_minor 1)
|
2017-08-29 18:22:05 -03:00
|
|
|
add_definitions(
|
|
|
|
-DAPP_VERSION_MAJOR=${uavcanblid_sw_version_major}
|
|
|
|
-DAPP_VERSION_MINOR=${uavcanblid_sw_version_minor}
|
|
|
|
)
|
2016-12-12 09:38:52 -04:00
|
|
|
|
|
|
|
# Bring in common uavcan hardware identity definitions
|
2017-12-10 18:28:05 -04:00
|
|
|
include(common/px4_git)
|
|
|
|
px4_add_git_submodule(TARGET git_uavcan_board_ident PATH "cmake/configs/uavcan_board_ident")
|
2016-12-12 09:38:52 -04:00
|
|
|
include(configs/uavcan_board_ident/px4cannode-v1)
|
2017-08-29 18:22:05 -03:00
|
|
|
add_definitions(
|
|
|
|
-DHW_UAVCAN_NAME=${uavcanblid_name}
|
|
|
|
-DHW_VERSION_MAJOR=${uavcanblid_hw_version_major}
|
|
|
|
-DHW_VERSION_MINOR=${uavcanblid_hw_version_minor}
|
|
|
|
)
|
2016-12-12 09:38:52 -04:00
|
|
|
|
|
|
|
px4_nuttx_make_uavcan_bootloadable(BOARD ${BOARD}
|
2018-05-30 23:58:19 -03:00
|
|
|
BIN ${PX4_BINARY_DIR}/px4cannode-v1.bin
|
2017-08-29 18:22:05 -03:00
|
|
|
HWNAME ${uavcanblid_name}
|
|
|
|
HW_MAJOR ${uavcanblid_hw_version_major}
|
|
|
|
HW_MINOR ${uavcanblid_hw_version_minor}
|
|
|
|
SW_MAJOR ${uavcanblid_sw_version_major}
|
|
|
|
SW_MINOR ${uavcanblid_sw_version_minor}
|
|
|
|
)
|
2016-12-12 09:38:52 -04:00
|
|
|
|
|
|
|
set(config_module_list
|
|
|
|
#
|
|
|
|
# Board support modules
|
|
|
|
#
|
2017-08-29 18:22:05 -03:00
|
|
|
drivers/bootloaders
|
|
|
|
drivers/stm32
|
2016-12-12 09:38:52 -04:00
|
|
|
|
|
|
|
#
|
|
|
|
# System commands
|
|
|
|
#
|
2017-08-29 18:22:05 -03:00
|
|
|
systemcmds/config
|
2016-12-12 09:38:52 -04:00
|
|
|
systemcmds/reboot
|
|
|
|
systemcmds/top
|
|
|
|
systemcmds/ver
|
|
|
|
|
|
|
|
#
|
|
|
|
# General system control
|
|
|
|
#
|
|
|
|
modules/uavcannode
|
|
|
|
|
2017-08-29 18:22:05 -03:00
|
|
|
)
|