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
+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)