diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 13:51:33 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 13:51:33 +0100 |
commit | c0f34dff2605381afacbec2bc1eba6b648daddd2 (patch) | |
tree | c6051254b968b4aa31bd1a52e6a981127a9d5978 /src | |
parent | 3d2a5bae51763e5a542506383c9d97f95fc7d1ef (diff) | |
download | px4-firmware-c0f34dff2605381afacbec2bc1eba6b648daddd2.tar.gz px4-firmware-c0f34dff2605381afacbec2bc1eba6b648daddd2.tar.bz2 px4-firmware-c0f34dff2605381afacbec2bc1eba6b648daddd2.zip |
STM32 drivers: Optimize for size
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/stm32/adc/module.mk | 2 | ||||
-rw-r--r-- | src/drivers/stm32/module.mk | 2 | ||||
-rw-r--r-- | src/drivers/stm32/tone_alarm/module.mk | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/drivers/stm32/adc/module.mk b/src/drivers/stm32/adc/module.mk index 48620feea..38ea490a0 100644 --- a/src/drivers/stm32/adc/module.mk +++ b/src/drivers/stm32/adc/module.mk @@ -40,3 +40,5 @@ MODULE_COMMAND = adc SRCS = adc.cpp INCLUDE_DIRS += $(NUTTX_SRC)/arch/arm/src/stm32 $(NUTTX_SRC)/arch/arm/src/common + +MAXOPTIMIZATION = -Os diff --git a/src/drivers/stm32/module.mk b/src/drivers/stm32/module.mk index bb751c7f6..54428e270 100644 --- a/src/drivers/stm32/module.mk +++ b/src/drivers/stm32/module.mk @@ -41,3 +41,5 @@ SRCS = drv_hrt.c \ drv_pwm_servo.c INCLUDE_DIRS += $(NUTTX_SRC)/arch/arm/src/stm32 $(NUTTX_SRC)/arch/arm/src/common + +MAXOPTIMIZATION = -Os diff --git a/src/drivers/stm32/tone_alarm/module.mk b/src/drivers/stm32/tone_alarm/module.mk index 827cf30b2..25a194ef6 100644 --- a/src/drivers/stm32/tone_alarm/module.mk +++ b/src/drivers/stm32/tone_alarm/module.mk @@ -40,3 +40,5 @@ MODULE_COMMAND = tone_alarm SRCS = tone_alarm.cpp INCLUDE_DIRS += $(NUTTX_SRC)/arch/arm/src/stm32 $(NUTTX_SRC)/arch/arm/src/common + +MAXOPTIMIZATION = -Os |