Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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!!!
Diff: tools/toolchains/gcc.py
- Revision:
- 6962:bf39d414c367
- Parent:
- 6826:e17692595e2b
- Child:
- 6980:b26b840b75aa
- Child:
- 6968:2fbeeee37c69
--- a/tools/toolchains/gcc.py Fri Jul 08 13:07:38 2016 +0100
+++ b/tools/toolchains/gcc.py Fri Jul 08 16:16:12 2016 +0100
@@ -48,6 +48,12 @@
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-M7FD":
+ cpu = "cortex-m7"
else:
cpu = target.core.lower()
@@ -55,17 +61,18 @@
if target.core.startswith("Cortex"):
self.cpu.append("-mthumb")
- if target.core == "Cortex-M4" and target.fpu == "single":
+ # FPU handling, M7 possibly to have double FPU
+ if target.core == "Cortex-M4F":
self.cpu.append("-mfpu=fpv4-sp-d16")
self.cpu.append("-mfloat-abi=softfp")
+ elif target.core == "Cortex-M7F":
+ self.cpu.append("-mfpu=fpv5-sp-d16")
+ self.cpu.append("-mfloat-abi=softfp")
+ elif target.core == "Cortex-M7FD":
+ self.cpu.append("-mfpu=fpv5-d16")
+ self.cpu.append("-mfloat-abi=softfp")
- 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-M7" and target.fpu == "double":
- self.cpu.append("-mfpu=fpv5-d16")
- self.cpu.append("-mfloat-abi=softfp")
if target.core == "Cortex-A9":
self.cpu.append("-mthumb-interwork")