chore(bw): disable USBJ_EX on all F4 targets with only 512KB flash (#5443)

This commit is contained in:
Raphael Coeffic
2024-08-16 22:17:05 +10:00
committed by GitHub
parent b1fb9bc396
commit d88d7fdad8
2 changed files with 3 additions and 6 deletions
+1 -6
View File
@@ -57,12 +57,7 @@ option(BOOTLOADER "Include Bootloader" ON)
option(FWDRIVE "Attach also firmware drive with USB" OFF)
option(DISABLE_MCUCHECK "Disable MCU check at start" OFF)
option(LUA_MIXER "Enable LUA mixer/model scripts support" ON)
if(PCB STREQUAL X9D+ AND PCBREV STREQUAL 2019)
option(USBJ_EX "Enable USB Joystick Extension" OFF)
else()
option(USBJ_EX "Enable USB Joystick Extension" ON)
endif()
option(USBJ_EX "Enable USB Joystick Extension" ON)
# since we reset all default CMAKE compiler flags for firmware builds, provide an alternate way for user to specify additional flags.
set(FIRMWARE_C_FLAGS "" CACHE STRING "Additional flags for firmware target c compiler (note: all CMAKE_C_FLAGS[_*] are ignored for firmware/bootloader).")
+2
View File
@@ -493,6 +493,8 @@ elseif ((CPU_TYPE_FULL STREQUAL STM32F407xE) OR (CPU_TYPE_FULL STREQUAL STM32F40
if (CPU_TYPE_FULL STREQUAL STM32F407xG)
set(TARGET_FLASH_SIZE 1M)
add_definitions(-DSTM32F407xG)
else()
set(USBJ_EX OFF)
endif()
elseif (CPU_TYPE_FULL STREQUAL STM32F413xG)
set(CPU_TYPE STM32F4)