mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-04 13:55:40 +08:00
82 lines
1.9 KiB
Makefile
82 lines
1.9 KiB
Makefile
# Hey Emacs, this is a -*- makefile -*-
|
|
#
|
|
# lisa_mx_2.0.makefile
|
|
#
|
|
# http://wiki.paparazziuav.org/wiki/Lisa/M_v20
|
|
#
|
|
|
|
BOARD=lisa_mx
|
|
BOARD_VERSION=2.0
|
|
BOARD_CFG=\"boards/$(BOARD)_$(BOARD_VERSION).h\"
|
|
|
|
ARCH=stm32
|
|
ARCH_L=f4
|
|
HARD_FLOAT=yes
|
|
$(TARGET).ARCHDIR = $(ARCH)
|
|
$(TARGET).LDSCRIPT=$(SRC_ARCH)/lisa-mx.ld
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# default flash mode is via usb dfu bootloader (luftboot)
|
|
# other possibilities: DFU-UTIL, SWD, JTAG_BMP, STLINK, SERIAL
|
|
FLASH_MODE ?= SWD
|
|
|
|
HAS_LUFTBOOT ?= 0
|
|
ifeq (,$(findstring $(HAS_LUFTBOOT),0 FALSE))
|
|
$(TARGET).CFLAGS+=-DLUFTBOOT
|
|
$(TARGET).LDFLAGS+=-Wl,-Ttext=0x8004000
|
|
DFU_ADDR = 0x8004000
|
|
DFU_PRODUCT = Lisa/Lia
|
|
endif
|
|
|
|
|
|
#
|
|
# default LED configuration
|
|
#
|
|
RADIO_CONTROL_LED ?= 4
|
|
BARO_LED ?= none
|
|
AHRS_ALIGNER_LED ?= 2
|
|
GPS_LED ?= 3
|
|
SYS_TIME_LED ?= 1
|
|
|
|
|
|
#
|
|
# default uart configuration
|
|
#
|
|
RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT ?= UART1
|
|
RADIO_CONTROL_SPEKTRUM_SECONDARY_PORT ?= UART5
|
|
|
|
MODEM_PORT ?= UART2
|
|
MODEM_BAUD ?= B57600
|
|
|
|
GPS_PORT ?= UART3
|
|
GPS_BAUD ?= B38400
|
|
GPS_PRIMARY_PORT ?= UART3
|
|
GPS_PRIMARY_BAUD ?= B115200
|
|
GPS_SECONDARY_PORT ?= UART1
|
|
GPS_SECONDARY_BAUD ?= B115200
|
|
GPS_PRIMARY_TYPE ?= UBX
|
|
GPS_SECONDARY_TYPE ?= PIKSI
|
|
|
|
#
|
|
# default PPM input is on PA01 (SERVO6)
|
|
#
|
|
RADIO_CONTROL_PPM_PIN ?= PA01
|
|
ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_10 PA10 UART1_RX))
|
|
PPM_CONFIG=1
|
|
else ifeq ($(RADIO_CONTROL_PPM_PIN),$(filter $(RADIO_CONTROL_PPM_PIN),PA_01 PA01 PA1 SERVO6))
|
|
PPM_CONFIG=2
|
|
else
|
|
$(error Unknown RADIO_CONTROL_PPM_PIN, configure it to either PA01 or PA10)
|
|
endif
|
|
|
|
#
|
|
# default actuator configuration
|
|
#
|
|
# you can use different actuators by adding a configure option to your firmware section
|
|
# e.g. <configure name="ACTUATORS" value="actuators_ppm/>
|
|
# and by setting the correct "driver" attribute in servo section
|
|
# e.g. <servo driver="Ppm">
|
|
#
|
|
ACTUATORS ?= actuators_pwm
|