aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/boards/px4fmu-v2/module.mk
blob: f3f522624ca8b11bc8183ab29e50b69cc9911d21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Board-specific startup code for the PX4FMUv2
#

SRCS		 = px4fmu_can.c \
		   px4fmu2_init.c \
		   px4fmu_pwm_servo.c \
		   px4fmu_spi.c \
		   px4fmu_usb.c \
		   px4fmu2_led.c \
		   ../../../modules/systemlib/up_cxxinitialize.c


ENABLE_CXXINITIALIZE=$(call check_nuttx_config ,"CONFIG_HAVE_CXX 1", $(NUTTX_CONFIG_H))
ENABLE_CXXINITIALIZE+=$(call check_nuttx_config ,"CONFIG_HAVE_CXXINITIALIZE 1", $(NUTTX_CONFIG_H))
ifeq ("$(ENABLE_CXXINITIALIZE)",$(nuttx_config_2true))
SRCS		 +=	   ../../../modules/systemlib/up_cxxinitialize.c
endif

MAXOPTIMIZATION	 = -Os