mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Moved MCU specific defines into 'common_pre.h' if not used in t… (#9117)
Moved MCU specific defines into 'common_pre.h' if not used in the STM32 libraries.
This commit is contained in:
commit
bd240140ec
3 changed files with 5 additions and 1 deletions
|
@ -125,7 +125,9 @@ endif
|
||||||
#Flags
|
#Flags
|
||||||
ARCH_FLAGS = -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fsingle-precision-constant -Wdouble-promotion
|
ARCH_FLAGS = -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fsingle-precision-constant -Wdouble-promotion
|
||||||
|
|
||||||
|
# Flags that are used in the STM32 libraries
|
||||||
DEVICE_FLAGS = -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER
|
DEVICE_FLAGS = -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER
|
||||||
|
|
||||||
ifeq ($(TARGET),$(filter $(TARGET),$(F7X5XI_TARGETS)))
|
ifeq ($(TARGET),$(filter $(TARGET),$(F7X5XI_TARGETS)))
|
||||||
DEVICE_FLAGS += -DSTM32F765xx
|
DEVICE_FLAGS += -DSTM32F765xx
|
||||||
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f765.ld
|
LD_SCRIPT = $(LINKER_DIR)/stm32_flash_f765.ld
|
||||||
|
|
|
@ -149,7 +149,8 @@ endif
|
||||||
#Flags
|
#Flags
|
||||||
ARCH_FLAGS = -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fsingle-precision-constant -Wdouble-promotion
|
ARCH_FLAGS = -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -fsingle-precision-constant -Wdouble-promotion
|
||||||
|
|
||||||
DEVICE_FLAGS = -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER -DUSE_DMA_RAM
|
# Flags that are used in the STM32 libraries
|
||||||
|
DEVICE_FLAGS = -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER
|
||||||
|
|
||||||
#
|
#
|
||||||
# H743xI : 2M FLASH, 1M RAM (H753xI also)
|
# H743xI : 2M FLASH, 1M RAM (H753xI also)
|
||||||
|
|
|
@ -120,6 +120,7 @@
|
||||||
#define USE_DMA_SPEC
|
#define USE_DMA_SPEC
|
||||||
#define USE_TIMER_MGMT
|
#define USE_TIMER_MGMT
|
||||||
#define USE_PERSISTENT_OBJECTS
|
#define USE_PERSISTENT_OBJECTS
|
||||||
|
#define USE_DMA_RAM
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue