ST / ST_Events-old

Dependents:   HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more

This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.

Note, you must import this library with import name: events!!!

Revision:
6804:0161ed64aa06
Parent:
6803:3ebc5419b948
Child:
6826:e17692595e2b
--- a/tools/toolchains/gcc.py	Wed Jun 15 16:28:22 2016 +0200
+++ b/tools/toolchains/gcc.py	Mon Jul 04 21:51:21 2016 +0200
@@ -48,12 +48,6 @@
 
         if target.core == "Cortex-M0+":
             cpu = "cortex-m0plus"
-        elif target.core == "Cortex-M4F":
-            cpu = "cortex-m4"
-        elif target.core == "Cortex-M7F":
-            cpu = "cortex-m7"
-        elif target.core == "Cortex-M7F_DP":
-            cpu = "cortex-m7"
         else:
             cpu = target.core.lower()
 
@@ -61,15 +55,15 @@
         if target.core.startswith("Cortex"):
             self.cpu.append("-mthumb")
 
-        if target.core == "Cortex-M4F":
+        if target.core == "Cortex-M4" and target.fpu == "single":
             self.cpu.append("-mfpu=fpv4-sp-d16")
             self.cpu.append("-mfloat-abi=softfp")
 
-        elif target.core == "Cortex-M7F":
+        elif target.core == "Cortex-M7" and target.fpu == "single":
             self.cpu.append("-mfpu=fpv5-sp-d16")
             self.cpu.append("-mfloat-abi=softfp")
 
-        elif target.core == "Cortex-M7F_DP":
+        elif target.core == "Cortex-M7" and target.fpu == "double":
             self.cpu.append("-mfpu=fpv5-d16")
             self.cpu.append("-mfloat-abi=softfp")