You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
8 years ago
|
|
||
|
add_definitions(
|
||
8 years ago
|
-DFLASH_BASED_PARAMS
|
||
|
-DPARAM_NO_ORB
|
||
|
-DPARAM_NO_AUTOSAVE
|
||
|
-DPARAMETER_BUFFER_SIZE=1024
|
||
8 years ago
|
)
|
||
|
|
||
|
# UAVCAN boot loadable Module ID
|
||
|
set(uavcanblid_sw_version_major 0)
|
||
|
set(uavcanblid_sw_version_minor 1)
|
||
8 years ago
|
add_definitions(
|
||
|
-DAPP_VERSION_MAJOR=${uavcanblid_sw_version_major}
|
||
|
-DAPP_VERSION_MINOR=${uavcanblid_sw_version_minor}
|
||
|
)
|
||
8 years ago
|
|
||
|
# Bring in common uavcan hardware identity definitions
|
||
6 years ago
|
include(px4_git)
|
||
7 years ago
|
px4_add_git_submodule(TARGET git_uavcan_board_ident PATH "cmake/configs/uavcan_board_ident")
|
||
8 years ago
|
include(configs/uavcan_board_ident/esc35-v1)
|
||
6 years ago
|
|
||
8 years ago
|
add_definitions(
|
||
|
-DHW_UAVCAN_NAME=${uavcanblid_name}
|
||
|
-DHW_VERSION_MAJOR=${uavcanblid_hw_version_major}
|
||
|
-DHW_VERSION_MINOR=${uavcanblid_hw_version_minor}
|
||
|
)
|
||
8 years ago
|
|
||
6 years ago
|
include(px4_make_uavcan_bootloader)
|
||
|
px4_make_uavcan_bootloadable(
|
||
|
BOARD auavesc35
|
||
|
BIN ${PX4_BINARY_DIR}/auavesc35-v1.bin
|
||
8 years ago
|
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}
|
||
|
)
|
||
8 years ago
|
|
||
6 years ago
|
px4_add_board(
|
||
|
PLATFORM nuttx
|
||
|
VENDOR auav
|
||
|
MODEL esc35-v1
|
||
|
ARCH cortex-m4
|
||
|
|
||
|
DRIVERS
|
||
|
bootloaders
|
||
|
stm32
|
||
|
|
||
|
MODULES
|
||
|
uavcanesc
|
||
|
uavcanesc/nshterm
|
||
|
uavcanesc/commands/cfg
|
||
|
uavcanesc/commands/selftest
|
||
|
uavcanesc/commands/dc
|
||
|
uavcanesc/commands/rpm
|
||
|
uavcanesc/commands/stat
|
||
|
|
||
|
SYSTEMCMDS
|
||
|
config
|
||
|
reboot
|
||
|
param
|
||
|
top
|
||
|
ver
|
||
|
|
||
|
)
|