Konstantin Oblaukhov 5 lat temu
rodzic
commit
5b7456d604

+ 1 - 1
cmake/FindCMSIS.cmake

@@ -1,7 +1,7 @@
 if(NOT CMSIS_FIND_COMPONENTS)
     set(CMSIS_FIND_COMPONENTS 
         STM32F0 STM32G0 STM32L0 STM32F1 STM32L1 STM32F2 STM32F3 STM32F4 STM32G4 
-        STM32L4
+        STM32L4 STM32F7
     )
 endif()
 

+ 2 - 0
cmake/stm32/common.cmake

@@ -155,4 +155,6 @@ include(stm32/f3)
 include(stm32/f4)
 include(stm32/g4)
 include(stm32/l4)
+include(stm32/f7)
+
 

+ 25 - 0
cmake/stm32/f7.cmake

@@ -0,0 +1,25 @@
+set(STM32_F7_TYPES 
+    F756xx F746xx F745xx F765xx F767xx F769xx F777xx F779xx
+    F722xx F723xx F732xx F733xx F730xx F750xx
+)
+set(STM32_F7_TYPE_MATCH 
+    "F756.." "F746.." "F745.." "F765.." "F767.." "F769.." "F777.." "F77[89].."
+    "F722.." "F723.." "F732.." "F733.." "F730.." "F750.."
+)
+set(STM32_F7_RAM_SIZES
+    320K 320K 320K 512K 512K 512K 512K 512K
+    256K 256K 256K 256K 256K 320K 
+)
+set(STM32_F7_CCRAM_SIZES 
+      0K   0K   0K   0K   0K   0K   0K   0K
+      0K   0K   0K   0K   0K   0K
+)
+
+stm32_util_create_family_targets(F7)
+
+target_compile_options(STM32::F7 INTERFACE 
+    -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard
+)
+target_link_options(STM32::F7 INTERFACE 
+    -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard
+)

+ 1 - 1
tests/cmsis/CMakeLists.txt

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.8)
 set(CMAKE_TOOLCHAIN_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/stm32_gcc.cmake)
 
 if(NOT TEST_FAMILIES)
-    set(TEST_FAMILIES F0 G0 L0 F1 L1 F2 F3 F4 G4 L4)
+    set(TEST_FAMILIES F0 G0 L0 F1 L1 F2 F3 F4 G4 L4 F7)
 endif()
 
 project(cmsis-test C ASM)