2015-10-21 17:22:55 -03:00
|
|
|
include(nuttx/px4_impl_nuttx)
|
|
|
|
|
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-arm-none-eabi.cmake)
|
|
|
|
|
|
|
|
set(config_module_list
|
|
|
|
#
|
|
|
|
# Board support modules
|
|
|
|
#
|
|
|
|
drivers/device
|
|
|
|
drivers/stm32
|
|
|
|
drivers/led
|
|
|
|
drivers/boards/px4-stm32f4discovery
|
|
|
|
|
|
|
|
#
|
|
|
|
# System commands
|
|
|
|
#
|
|
|
|
systemcmds/bl_update
|
|
|
|
systemcmds/mixer
|
|
|
|
systemcmds/param
|
|
|
|
systemcmds/perf
|
|
|
|
systemcmds/reboot
|
|
|
|
systemcmds/top
|
|
|
|
systemcmds/config
|
|
|
|
systemcmds/nshterm
|
|
|
|
systemcmds/ver
|
|
|
|
|
|
|
|
#
|
|
|
|
# Library modules
|
|
|
|
#
|
|
|
|
modules/param
|
|
|
|
modules/systemlib
|
|
|
|
modules/systemlib/mixer
|
|
|
|
modules/uORB
|
|
|
|
|
|
|
|
#
|
|
|
|
# Libraries
|
|
|
|
#
|
|
|
|
#lib/mathlib/CMSIS
|
2016-04-14 15:07:28 -03:00
|
|
|
lib/controllib
|
2015-10-21 17:22:55 -03:00
|
|
|
lib/mathlib
|
|
|
|
lib/mathlib/math/filter
|
|
|
|
lib/ecl
|
|
|
|
lib/external_lgpl
|
|
|
|
lib/geo
|
|
|
|
lib/conversion
|
2016-05-03 05:03:28 -03:00
|
|
|
lib/DriverFramework/framework
|
2015-10-21 17:22:55 -03:00
|
|
|
platforms/nuttx
|
|
|
|
|
|
|
|
# had to add for cmake, not sure why wasn't in original config
|
|
|
|
platforms/common
|
|
|
|
platforms/nuttx/px4_layer
|
|
|
|
|
|
|
|
#
|
|
|
|
# Demo apps
|
|
|
|
#
|
|
|
|
#examples/math_demo
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/px4_simple_app
|
|
|
|
examples/px4_simple_app
|
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/daemon
|
|
|
|
#examples/px4_daemon_app
|
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/debug_values
|
|
|
|
#examples/px4_mavlink_debug
|
|
|
|
|
|
|
|
# Tutorial code from
|
|
|
|
# https://px4.io/dev/example_fixedwing_control
|
|
|
|
#examples/fixedwing_control
|
|
|
|
|
|
|
|
# Hardware test
|
|
|
|
#examples/hwtest
|
|
|
|
)
|
|
|
|
|
|
|
|
set(config_extra_builtin_cmds
|
|
|
|
serdis
|
|
|
|
sercon
|
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(sercon)
|
|
|
|
set_target_properties(sercon PROPERTIES
|
2016-04-14 14:36:36 -03:00
|
|
|
PRIORITY "SCHED_PRIORITY_DEFAULT"
|
|
|
|
MAIN "sercon"
|
|
|
|
STACK_MAIN "2048")
|
2015-10-21 17:22:55 -03:00
|
|
|
|
|
|
|
add_custom_target(serdis)
|
|
|
|
set_target_properties(serdis PROPERTIES
|
2016-04-14 14:36:36 -03:00
|
|
|
PRIORITY "SCHED_PRIORITY_DEFAULT"
|
|
|
|
MAIN "serdis"
|
|
|
|
STACK_MAIN "2048")
|