aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Kirienko <pavel.kirienko@gmail.com>2014-07-12 17:34:36 +0400
committerPavel Kirienko <pavel.kirienko@gmail.com>2014-07-12 17:34:36 +0400
commite64a28e736224da5d1db8e3477eeeffc0b3b1f6c (patch)
tree56bfe3ede43a133ad367c45695120c6e38336790
parent6814ddccffd6f9f5a208ad87ffb5aa4045ba8543 (diff)
downloadpx4-firmware-e64a28e736224da5d1db8e3477eeeffc0b3b1f6c.tar.gz
px4-firmware-e64a28e736224da5d1db8e3477eeeffc0b3b1f6c.tar.bz2
px4-firmware-e64a28e736224da5d1db8e3477eeeffc0b3b1f6c.zip
Building UAVCAN without run-time checks. This saves 9.5KB of flash and reduces CPU usage.
-rw-r--r--src/modules/uavcan/module.mk10
m---------uavcan0
2 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/uavcan/module.mk b/src/modules/uavcan/module.mk
index 2c75944d4..1ef6f0cfa 100644
--- a/src/modules/uavcan/module.mk
+++ b/src/modules/uavcan/module.mk
@@ -40,9 +40,9 @@ MODULE_COMMAND = uavcan
MAXOPTIMIZATION = -Os
-SRCS += uavcan_main.cpp \
- uavcan_clock.cpp \
- esc_controller.cpp \
+SRCS += uavcan_main.cpp \
+ uavcan_clock.cpp \
+ esc_controller.cpp \
gnss_receiver.cpp
#
@@ -53,7 +53,7 @@ SRCS += $(LIBUAVCAN_SRC)
INCLUDE_DIRS += $(LIBUAVCAN_INC)
# Since actual compiler mode is C++11, the library will default to UAVCAN_CPP11, but it will fail to compile
# because this platform lacks most of the standard library and STL. Hence we need to force C++03 mode.
-override EXTRADEFINES := $(EXTRADEFINES) -DUAVCAN_CPP_VERSION=UAVCAN_CPP03
+override EXTRADEFINES := $(EXTRADEFINES) -DUAVCAN_CPP_VERSION=UAVCAN_CPP03 -DUAVCAN_NO_ASSERTIONS
#
# libuavcan drivers for STM32
@@ -68,7 +68,7 @@ override EXTRADEFINES := $(EXTRADEFINES) -DUAVCAN_STM32_NUTTX -DUAVCAN_STM32_NUM
# TODO: Add make target for this, or invoke dsdlc manually.
# The second option assumes that the generated headers shall be saved
# under the version control, which may be undesirable.
-# The first option requires python3 and python3-mako for the sources to be built.
+# The first option requires any Python and the Python Mako library for the sources to be built.
#
$(info $(shell $(LIBUAVCAN_DSDLC) $(UAVCAN_DSDL_DIR)))
INCLUDE_DIRS += dsdlc_generated
diff --git a/uavcan b/uavcan
-Subproject f66c1a7de3076ff956bdf159dc3a166cbffe608
+Subproject af065e9ca9e3ba9100c125d3ab739313d0500ca