cannode.cmake 1.77 KB


# UAVCAN boot loadable Module ID
set(uavcanblid_sw_version_major 0)
set(uavcanblid_sw_version_minor 1)
add_definitions(
	-DAPP_VERSION_MAJOR=${uavcanblid_sw_version_major}
	-DAPP_VERSION_MINOR=${uavcanblid_sw_version_minor}
)

set(uavcanblid_hw_version_major 1)
set(uavcanblid_hw_version_minor 0)
set(uavcanblid_name "\"org.px4.fmu-v4_cannode\"")

add_definitions(
	-DHW_UAVCAN_NAME=${uavcanblid_name}
	-DHW_VERSION_MAJOR=${uavcanblid_hw_version_major}
	-DHW_VERSION_MINOR=${uavcanblid_hw_version_minor}
)

px4_add_board(
	PLATFORM nuttx
	VENDOR px4
	MODEL fmu-v4
	LABEL cannode
	TOOLCHAIN arm-none-eabi
	ARCHITECTURE cortex-m4
	CONSTRAINED_MEMORY
	ROMFSROOT cannode
	UAVCAN_INTERFACES 1
	SERIAL_PORTS
		GPS1:/dev/ttyS3
		TEL1:/dev/ttyS1
		TEL2:/dev/ttyS2
	DRIVERS
		adc/board_adc
		#barometer # all available barometer drivers
		barometer/ms5611
		bootloaders
		#differential_pressure # all available differential pressure drivers
		distance_sensor # all available distance sensor drivers
		#dshot
		gps
		#imu # all available imu drivers
		#imu/analog_devices/adis16448
		#imu/adis16477
		#imu/adis16497
		imu/invensense/icm20602
		imu/invensense/icm20608g
		imu/invensense/icm20948 # required for ak09916 mag
		imu/invensense/mpu9250
		#lights/rgbled
		#lights/rgbled_ncp5623c
		#magnetometer # all available magnetometer drivers
		#optical_flow # all available optical flow drivers
		#pwm_out
		#safety_button
		#tone_alarm
		uavcannode
	MODULES
		#ekf2
		#load_mon
		sensors
		#temperature_compensation
	SYSTEMCMDS
		#bl_update
		#dmesg
		#dumpfile
		#esc_calib
		#hardfault_log
		i2cdetect
		mft
		#led_control
		#mixer
		#motor_ramp
		#motor_test
		mtd
		#nshterm
		param
		perf
		#pwm
		reboot
		#reflect
		#sd_bench
		system_time
		#shutdown
		top
		#topic_listener
		#tune_control
		ver
		work_queue
)