mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Merge pull request #10287 from mikeller/change_f722_optimisation
Changed optimisation on F7X2 targets to '-O2' to save flash space.
This commit is contained in:
commit
20852146cf
1 changed files with 3 additions and 0 deletions
|
@ -150,6 +150,9 @@ LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f722.ld
|
|||
endif
|
||||
STARTUP_SRC = startup_stm32f722xx.s
|
||||
MCU_FLASH_SIZE := 512
|
||||
# Override the OPTIMISE_SPEED compiler setting to save flash space on these 512KB targets.
|
||||
# Performance is only slightly affected but around 50 kB of flash are saved.
|
||||
OPTIMISE_SPEED = -O2
|
||||
else
|
||||
$(error Unknown MCU for F7 target)
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue